-
Notifications
You must be signed in to change notification settings - Fork 16
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
Run Snow if weather snowy #6
Comments
+1 searching for this feature ^^ |
This is answered here: Basically, you can use MMM-Remote-Control to show & hide the module. You need some device though to check upon the weather & call the HTTP GET addresses. |
Thank you for your hint :) |
I made a solution:
window.onload = function() {
} |
My previous post was flawed, the script to get value of 'description' was running before the openweathermap api changed the value, resulting in it always running hide, even if there is snow. Here is the change made: This was moved from a separate function to be a part of the drawWeather function so it could pull directly from the json data instead of from an .innerHTML value:
Here is the final code: |
Hello, thank you schrammalama for your effort. May I ask you, how I should integrate this code into my MagicMirror? Thank you very much! |
It is an html page, run mm is one workspace then run the page in another workplace, if you run it in the same workplace it will come in front of the mm whenever it refreshes |
also i am working on working the code into the module, once finished i will put it up on the module list page and all you will have to do is install the module https://github.com/schrammalama/MMM-Snow-Automatic |
Not Issue.
Is It possible to run this module only if current weather is snowy ?
The text was updated successfully, but these errors were encountered: