TypeError: undefined is not an object (evaluating 'data.current.
Any ideas for fixing?
2024-08-02 14:46:14: Error on line 244:46: TypeError: undefined is not an object (evaluating 'data.current.sunset')
The API used, is not longer working anymore, because it now needs and subscription.
Would be nice, if getting updated to another weather api.
You get 1000 calls per day for free, when subscribing for OpenWeather's One Call 3.0. I want to be sure, that it should be enough for little widgets like this? (Even with six hours of daily screentime and checking phone every few minutes?)
Update 1: I subscribed to their new API and set the daily limits to match the free plan. Then changed the api.url in the script, even generated a new API key (although seems not necessary), but I can't get it to work. Still getting that same error TheParrot mentioned...
Update 2: It's working again. Just needed more time than I thought to reflect the update. Will give another update about the API limit in a few days. Should be enough, though.
The limits of OpenWeather's new free plan seem not a problem for running this widget.