Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: undefined is not an object (evaluating 'data.current. #22

Open
ParoTheParrot opened this issue Aug 2, 2024 · 3 comments
Open

Comments

@ParoTheParrot
Copy link

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')

@blockiindahood
Copy link

The API used, is not longer working anymore, because it now needs and subscription.

Would be nice, if getting updated to another weather api.

@drikkes
Copy link

drikkes commented Oct 26, 2024

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.

@drikkes
Copy link

drikkes commented Oct 29, 2024

The limits of OpenWeather's new free plan seem not a problem for running this widget.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants