pimoroni / breakout-garden

Documentation, software, and examples for the Breakout Garden ecosystem.
https://shop.pimoroni.com/products/breakout-garden-hat
MIT License
72 stars 14 forks source link

Yahoo weather service, as used in weather example, has been closed down #11

Closed nickbroon closed 5 years ago

nickbroon commented 5 years ago

See https://twitter.com/ydn/status/1079784441344446464 for details.

On Jan. 3, 2019, the http://weather.yahooapis.com and http://query.yahooapis.com for Yahoo Weather API will be retired. Contact yahoo-weather-ydn-api@oath.com for credentials for the free Yahoo Weather API service at https://weather-ydn-yql.media.yahoo.com/forecastrss .

sandyjmacdonald commented 5 years ago

I believe I've got a fix for this that involves a geocode lookup to get lat/lon coordinates and then scraping the relevant bits of info from https://darksky.net/forecast/. I hope to get it implemented in the morning!

nickbroon commented 5 years ago

~~Instead of scraping darksky, perhaps this python library would be more useful? https://github.com/AnthonyBloomer/weather-api It can lookup based on lat/lon or location and is based on the yahoo weather API: https://developer.yahoo.com/weather/documentation.html~~

This python library has the same issue with yahoo API going away. :-(

nickbroon commented 5 years ago

python api for darksky: https://github.com/ZeevG/python-forecast.io

jorgevinagre commented 5 years ago

Any of you have a working sample if this example?

sandyjmacdonald commented 5 years ago

Ok, should be fixed now, as per https://github.com/pimoroni/breakout-garden/pull/15