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

weather.js data.main undefined #1

Closed
theMackabu opened this issue Nov 21, 2020 · 3 comments
Closed

weather.js data.main undefined #1

theMackabu opened this issue Nov 21, 2020 · 3 comments

Comments

@theMackabu
Copy link

image
current weather with api key will not function as data.main on line 60 is undefined

image

@theMackabu
Copy link
Author

line in question celcius = Math.round(parseFloat(data.main.temp)-273.15);

@sadparadiseinhell
Copy link
Owner

Everything worked fine with my old key, but when I generated a new one, I got the same error as yours.
But after ~20 minutes everything started working again.
The problem was that the key was not activated immediately, you need to wait a little.

rsz_5fb9014a6aad0

@theMackabu
Copy link
Author

Ok, thanks

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

2 participants