-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 module forecast not working with openweathermap #1504
Comments
I agree, but it's important that it's not a breaking change. So the old configuration should still work. Feel free to send a PR to the develop branch. |
Also note that we are working on a new weather module which will replace both current weather modules. It's included in the latest release. |
Thanks for your hint! Just one more question: I can not make the forecast work, can you provide a working example or give me a hint, where my error might be? Thank you and have a nice day! This is my code, it works with
|
@fewieden Any idea? |
The problem is that you need to specify another weatherendpoint for openweathermap forecast like More informations here: https://github.com/MichMich/MagicMirror/tree/master/modules/default/weather#openweathermap-options |
If is set the initial load delay to 30 seconds it is delayed by 30 seconds. Be aware of that you need to specify th timeframe in milliseconds like: More informations here: https://github.com/MichMich/MagicMirror/tree/master/modules/default/weather#general-options |
Thanks for your help, still does not work. I dug into the code and found the following: Excerpt of a single set of data in the .json-file from openweather weather forecast (at least for me) looks like this:
Thus, this part needs to be changed like this:
Another issue with the data is, they are provided in a set for three hours. I will make a PR with the adjusted code. |
P. S.: The discussion drifted away in someway, I'll edit the title. |
I have some concerns with strictly using forecast.rain['3h']. I added a comment to your PR |
Hey vincep5, |
thanks so much, I will have to configure my setup to the develop branch one day to assist in testing this new stuff. Here's a snip of 1 day of my forecast. It's contained inside a |
Hi again,
looking into the weather modules I stumbled across the different configuration keys for essentially the same purpose in the currentweather (
degreeLabel
) and the weatherforecast (scale
) modules. I think, it would be more intuitive using the same key for both modules. Personally, I prefer the weatherforcast version.weatherforecast
https://github.com/MichMich/MagicMirror/blob/de57daa3cd881ce1a14b88307bf61e8109879c81/modules/default/weatherforecast/weatherforecast.js#L28
currentweather
https://github.com/MichMich/MagicMirror/blob/de57daa3cd881ce1a14b88307bf61e8109879c81/modules/default/currentweather/currentweather.js#L30
Is this change applicable, as this is a change in the API? I will open a PR, if this change is desired, the implementation should then be postponed to the next major release.
Have a nice day!
The text was updated successfully, but these errors were encountered: