GNOME Bugzilla – Bug 672804
[pull request] Add a Yahoo! Weather forecast provider
Last modified: 2012-12-02 18:56:37 UTC
Yahoo! Weather provides weather information for all countries, which is a clear benefit over current US+AU+UK situation. I therefore implemented it (it's a pretty simple format anyway), you can find a branch at https://github.com/gcampax/libgweather/tree/yahoo-weather Caveats: - YW needs a WOEID (WhereOnEarthID), which is not in the Locations.xml database. I added one for Milan for testing, but obviously more are needed. It could be the process can be automated (woeid are generated by the GeoPlanet service), or we could finally move away from Locations.xml and use geocode-glib instead. - YW is free, but only for non commercial use. I tried looking for a public domain service, but I found none, and the wiki has it, UK and AU offices are free for non commercial use too. - Only GWEATHER_FORECAST_LIST is implemented. The other modes are a hack really, and cannot be used to build a decent UI. - Only two days (today + tomorrow) of forecasts are provided. This impacts on weather app designs, as well as the evolution weather calendar, because they expect one week. It must be said, predictions longer than three days are very often inaccurate anyway. Please note: the branch contains some other fixes, so please review and merge them even if you don't want YW.
(In reply to comment #0) > - YW is free, but only for non commercial use. I tried looking for a public > domain service, but I found none yr.no? (bug 563488)
I don't think we want to hit geocode-glib every time we want to look up a new location, but using geocode-glib to populate the locations.xml would be useful.
(In reply to comment #0) > - YW is free, but only for non commercial use. This is a blocker, as it will be an issue for nearly all of our downstreams. If we want to use YW, then we need to talk to Yahoo! about commercial use.
(In reply to comment #3) > (In reply to comment #0) > > - YW is free, but only for non commercial use. > > This is a blocker, as it will be an issue for nearly all of our downstreams. If > we want to use YW, then we need to talk to Yahoo! about commercial use. Commercial use is commercial use of the data given, not using the data "normally" in a commercial setting. I had the same question regarding their "not for commercial use" geocoding service, and was given the answer that using it in Free Software would be fine.
(In reply to comment #0) <snip> > - Only two days (today + tomorrow) of forecasts are provided. This impacts on > weather app designs, as well as the evolution weather calendar, because they > expect one week. It must be said, predictions longer than three days are very > often inaccurate anyway. Is this only for some locations, or all of them? They seem to offer 5 day forecast on other platforms. I personally find it useful, even with the caveats.
(In reply to comment #4) > (In reply to comment #3) > > (In reply to comment #0) > > > - YW is free, but only for non commercial use. > > > > This is a blocker, as it will be an issue for nearly all of our downstreams. If > > we want to use YW, then we need to talk to Yahoo! about commercial use. > > Commercial use is commercial use of the data given, not using the data > "normally" in a commercial setting. I guess I don't really understand how to make the difference between the two. Is this clearly written down somewhere? Alternatively, can was ask our lawyers to evaluate this?
(In reply to comment #6) > > Commercial use is commercial use of the data given, not using the data > > "normally" in a commercial setting. > > I guess I don't really understand how to make the difference between the two. Yeah, like, if the weather app appears in a screenshot of RHEL, then does that constitute commercial use of the data on the part of Red Hat?
(In reply to comment #7) > (In reply to comment #6) > > > Commercial use is commercial use of the data given, not using the data > > > "normally" in a commercial setting. > > > > I guess I don't really understand how to make the difference between the two. > > Yeah, like, if the weather app appears in a screenshot of RHEL, then does that > constitute commercial use of the data on the part of Red Hat? Snarfing the weather data to show it in a web page surrounded by adverts is "commercial use". As to the commercial use of screenshots, I never really understood the need of "copyright approval" to have somebody print screenshots of your application. Anyway, IANAL, but I know that we can use the geocoding from Yahoo within GNOME, just not to build a geocoding service, or make the data ours.
*** Bug 329136 has been marked as a duplicate of this bug. ***
I decided it's not up to me if non commercial is fine or not with a specific application, so I decided to expose the decision to application, with a bitmask of services to enable. This is now implemented in wip/forecasts branch, and soon in master.
This is in master now.