gbak / stoker-web

Automatically exported from code.google.com/p/stoker-web
2 stars 1 forks source link

weather not showing #31

Open Runaround opened 8 years ago

Runaround commented 8 years ago

The app isn't showing current weather conditions again.

gbak commented 8 years ago

Yes, I saw this a few weeks ago. The yahoo API had likely changed, I'll have to look at it.

gbak commented 8 years ago

At some point Yahoo had changed the weather API. It's a bit of a hack, but the weather can be pulled correctly by changing the stokerweb.properties file.

Fist you must append text to your weather_zipcode and then replace the weather_url string.

Here is an example:

# Your local zip code to pull weather information.
weather_zipcode=30024)&format=json

# These should not change, it is important that there are no spaces after the trailing '='
weather_url=https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D