felixhageloh / weather-widget

A weather widget for Übersicht
64 stars 32 forks source link

TypeError: undefined is not an object (evaluating 'weather.temperature') #46

Open cheezepuffologist opened 5 years ago

cheezepuffologist commented 5 years ago

Just updated to get the new code not using Yahoo's API, but I am getting a white box over the widget. When I open up the debugger tool this is what I see: image The only modification I made is changing the default city and state. Any ideas?

Titousensei commented 5 years ago

You can change the color from #fff to something else, like #f0f, to be able to read the error message. Also, now you need to enter API keys for weather and geoip.

cheezepuffologist commented 5 years ago

The error is reading "undefined is not an object (evaluating 'weather.temperature')"

Titousensei commented 5 years ago

Did you add your API keys to the options or get-weather? This is now necessary.

cheezepuffologist commented 5 years ago

Oh I figured out what I was doing wrong. I placed the whole URL address for the API keys instead of just the keys. Thanks for the help and pointing me in the right directions!

roadglide03 commented 5 years ago

Just started seeing this today 04/05/19. Was working fine and I double checked the API keys.

the-sweet commented 5 years ago

I'm just guessing here, but the get-weather file refers to "forecastApiKey" instead of "weatherApiKey." Could that be it? Also, is there a way to input latitude and longitude, if Dark Sky doesn't like just city and state/region data?