mixj93 / ubersicht-weather-widget

Nice and powerful weather widget for Übersicht
MIT License
13 stars 5 forks source link

undefined is not an object (evaluating 'data.current.feels_like') #3

Open bharrrr opened 3 years ago

bharrrr commented 3 years ago

I am receiving that error referencing row 176: {data.current.feels_like.toFixed(1)}°

mixj93 commented 3 years ago

It seems like there is something wrong getting the weather data, maybe network error or wrong API key.

Can you get response with your own APP key from the following API?https://api.openweathermap.org/data/2.5/onecall?lat=31.1963042&lon=121.605487&appid=${APP_KEY}

aadityapyarla commented 2 years ago

Me too getting similar error: error referencing row 176: {data.current.feels_like.toFixed(1)}°

After checking the url given above, I am getting wrong AppId: {"cod":401, "message": "Invalid API key. Please see http://openweathermap.org/faq#error401 for more info."}

But after rechecking my account in openweather I can't find any difference b/w the entered API_KEY. Don't know why this error is occurring, Also I am not having anyissues regarding my network

mixj93 commented 2 years ago

176

image

Please check your key in Weather.jsx

mixj93 commented 2 years ago

Me too getting similar error: error referencing row 176: {data.current.feels_like.toFixed(1)}°

After checking the url given above, I am getting wrong AppId: {"cod":401, "message": "Invalid API key. Please see http://openweathermap.org/faq#error401 for more info."}

But after rechecking my account in openweather I can't find any difference b/w the entered API_KEY. Don't know why this error is occurring, Also I am not having anyissues regarding my network

My key works fine, maybe try a new key

butaminas commented 2 years ago

Seems like there is a delay until your openweathermap.org API becomes active. I had the same error after initial setup but after several minutes it started working.

gabri83 commented 1 year ago

I have generated a new key, waited one hour and still get that error. It doesn't seem to be working... And yes, the key is active