Comments (2)
Wunderground's API returns three URLs
forecast_url: http://www.wunderground.com/US/MD/Columbia.html
history_url: http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=KMDCOLUM3
ob_url: http://www.wunderground.com/cgi-bin/findweather/getForecast?query=39.196098,-76.796097
The desklet uses the forecast_url, on the assumption that most users are more interested in the future weather than the past weather. Unfortunately the API does not return a URL for the forecast for the PWS. Obviously in this case it would be relatively trivial to construct the URL you are after, but unfortunately the way in which WU constructs URLs is not consistent across countries, and does not appear to be documented. The structure of URLs for my local PWS of IWARWICK37 differs markedly, for example. The desklet therefore needs to rely on the URLs reported by the API. It's unlikely that this issue will be resolved unless
- WU change their API and start reporting the station URL
- You (or someone) can find a consistent and reliable way to construct the necessary URL from data available to the desklet (essentially the station ID, and the URLs reported by WU's API)
- You can convince me that it makes more sense to use the history URL than the forecast URL, which doesn't appear to be what you're requesting. However, it is only one click from the PWS history to the PWS forecast, and that behaviour appears to be consistent.
from cinnamon-spices-desklets.
Wow, what a horrible API! I tried everything I could think of, but I agree that there's no easy way to get the PWS URL using the API. Even the 3 URLs that are returned point to 3 different PWSs! The current behaviour is definitely sufficient. Thanks for looking into it.
from cinnamon-spices-desklets.
Related Issues (20)
- Weather Desklet ([email protected]) missing icon HOT 1
- Google Calendar: Does not update automatically HOT 1
- kdecdesklet@joejoetv didn't work HOT 5
- xkcd@rjanja didn't work
- quoteOfTheDay@tinnu: Multiple parameters for fortune not working
- diskspace@schorschii - Wrong text alignment after resume from standby HOT 10
- Note (notes@schorschii): With Mounted cloud drive, will not find text files after reboot or logout/in. HOT 2
- General Improvement for Desklets / Desklet Settings: Show on primary monitor only
- Why is every variable name a single letter? HOT 1
- yfquotes@thegli Error: Yahoo Finance service not available! HOT 20
- yfquotes@thegli: Website you hardcoded is not valid anymore
- [email protected] doesn't start on Mint 21.2 Cinnamon 5.8.4 HOT 2
- simple-system-monitor@ariel fail to load after last update HOT 17
- Command Result Desklet Feature Request: Make output color sensitive HOT 2
- Small but noticeable freeze in system-monitor-graph@rcassani HOT 3
- Custom label not working? HOT 4
- diskspace@schorschii - desklet is causing stutter HOT 5
- [Bug] [email protected] - Author @slgobinath HOT 2
- [Bug] - [email protected] - Author @Cobinja - micro freezes HOT 1
- diskspace@schorshii showing wrong used space and percentage HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cinnamon-spices-desklets.