Open DarkPlayerr opened 1 year ago
I'll take a look at this. I noticed it wasn't working and I'd like to use this weather module.
I'll take a look at this. I noticed it wasn't working and I'd like to use this weather module.
i've seen some kind of recent fork that might've fixed this issue for us
i haven't gotten around to try it yet but the commits seem promising
https://github.com/KristjanESPERANTO/WallberryTheme/commit/9d7172582511d91ec51a0d6511091114ca418f86
I confirmed that PR worked. I had to also setup a subscription with openweathermap to use the new 3.0 API. They allow 1000 free calls per day.
Describe the bug I'm getting the "Error fetching weather: Invalid API key: Please see https://openweathermap.org/faq#error401 for more info." error.
Error Messages Are you getting any error messages? Make sure to check for errors in the javascript console.
npm start dev
I am not running MagicMirror in Docker by the way. Yes, i'm getting some error codes in the dev tools. It seems like the OneCall 2.5 API has been shut down and doesn't work anymore.
Please include your Magic Mirror config.js: You don't have to add the whole file, but at least add the config sections for the modules you're having trouble with. REMEMBER TO REDACT ANY API KEYS
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
I saw two GitHub repo's with the same issue, although they weren't for magicmirror, they also used the same api https://github.com/csparpa/pyowm/issues/404 https://github.com/domoticz/domoticz/issues/5336
I guess instead of doing
https://api.openweathermap.org/data/2.5/onecall?lat=33.44&lon=-94.04&exclude=hourly,daily&appid=
you could dohttps://api.openweathermap.org/data/2.5/weather?lat=33.44&lon=-94.04&exclude=hourly,daily&appid=
but that would require some tweaking in the code that i'm not knowledgable enough to do. I hope this is helpful enough