Re: Weather Underground API
Michael J Rubinsky <[email protected]> Sun, 17 Mar 2019 19:03:45 +0000
| Newsgroups | gmane.comp.horde.user |
|---|---|
| Message-ID | <20190317190345.Horde.WpJYMCsMH7cOcrfXcKKrwEy@tarn.theupstairsroom.com> |
Quoting Michael J Rubinsky <[email protected]>: > Quoting Arjen de Korte <[email protected]>: > >> Citeren Michael J Rubinsky <[email protected]>: >> >>> Quoting Arjen de Korte <[email protected]>: >>> >>>> If you've used the Weather Underground API for displaying weather >>>> info and wonder why it no longer works: >>>> >>>> >>>> https://apicommunity.wunderground.com/weatherapi/topics/end-of-feb-wu-api-update >>>> >>>> There doesn't seem to be an option for a free API key anymore, so >>>> this probably needs an update in the the Horde configuration as >>>> well. >>> >>> Ugh. We should just remove support for WU completely. It's not >>> only no longer free, but it's completely gone. Replaced by a >>> completely different API specifically for owners of personal >>> weather stations, with less focus on forecasting. The non-free API >>> is the parent company's, The Weather Company, expensive >>> subscription service. Not a fit for Horde. Either way, the >>> existing WU driver is useless. >>> >>> Looks like the other driver I wrote for World Weather Online has >>> also done away with their free service. >>> >>> Looks like it's time to once again change out Horde's weather >>> service drivers. Sigh. >> >> https://openweathermap.org/ might be an option. They have free API >> keys with reasonable limits. > > Yeah, we actually already have an older Owm driver in > Horde_Service_Weather, but it, too, is outdated. I'll probably try > to get that one at least minimally working, as well as the existing > WWO driver, since the subscription price on that one is cheap. I was > also looking at darksky.net as an option. Ah. Now I remember why I never added that driver to the Horde config as an option. There is no way to search a location using that API. You need to either know the "id" of the city you are looking for (they have a list of id => city mappings you can download), or basically hope that the results you get are for the city you typed in, when the city name is not unique for your country. To make matters worse, the results from the API only give back the city name and lat/long, not the city/state/province etc... so you don't even know you are may be looking at the wrong city if you don't use their ID. Looks like we'll need some Horde_Map geocoding to go along with this. >>> >>>> -- >>>> Horde mailing list >>>> Frequently Asked Questions: http://horde.org/faq/ >>>> To unsubscribe, mail: [email protected] >> >> >> >> -- >> Horde mailing list >> Frequently Asked Questions: http://horde.org/faq/ >> To unsubscribe, mail: [email protected] > > > > -- > mike > The Horde Project > http://www.horde.org > https://www.facebook.com/hordeproject > https://www.twitter.com/hordeproject -- mike The Horde Project http://www.horde.org https://www.facebook.com/hordeproject https://www.twitter.com/hordeproject -- Horde mailing list Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected]
(unnamed)
(application/pgp-keys, 9.1 KB) - not displayed
signature.asc
(application/pgp-signature, 821 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4 iQIcBAABAgAGBQJcjpoRAAoJEJGSgkbRsxbbNHUP/icpXkxs0FL4idBcFWuyDxI7 pCOT8PUrGhp9EKz0ztybAQj+Gb+NUggLyPCMMFaANhQgul06XhqeFcatgY0mEaYL //NcNW8YfFDeVyxwYRPEK2ONwDrVvWR1wutZwpzOFd+zoioCVt3iICLaA/Stb7Qy Bt+7sPwPkP6xST7F0uot5wf3SVKX1oFukA0Im+G6MC+ZWDIq9JtfO6LONhvMGrZU yB+AXLCLqt4aKnTtznQHnmkgLmQcJyewzqGcMDKjixCc6zoImNKngFh1/13Gme2F MlMyAShzdZuEqyK69OKO504cwiRApEmIMuC3hKcm2C8CNhSvQvBLlVG0OAk9CGDF oGio98QviUrY42lborEjcnG0ij6rx0fA1HaskdEDxOTPWRJSwjLJeFf7ikoLGoms zytnlXVIRFrrS+2GglXyF+rtD4WFbq/rh5fngal27HEsgOUBY4sEINmQ6lLSlXbR zM2sIgseNngaHEAu4v9PqyuDvcKrh7RYmXrx8iDuCgwr/pBvy5YChRdgK865Tcai TNwRuUUe8kKwz/7JzYHXdPpjRAuHwc4gl9SW20/ZEwz+OpsxgAT7rXPEOEWq5pI+ V1bu5bG72p1F6IR5SVBE5RKmi3d23QovsSJUMMGlmkScds2S2fjh6QkXuWy8VOt6 viMDXO9N0T0REa9NoJdU =b/Ci -----END PGP SIGNATURE-----