MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-Snow - Yet another Snow Module

    Scheduled Pinned Locked Moved Fun & Games
    39 Posts 18 Posters 40.6k Views 17 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • MichMichM Offline
      MichMich @aluini
      last edited by

      @aluini Try this link: https://github.com/MichMich/MMM-Snow

      aluiniA Andrius okA 2 Replies Last reply Reply Quote 0
      • aluiniA Offline
        aluini @MichMich
        last edited by

        @MichMich better ! 😎

        1 Reply Last reply Reply Quote 0
        • brobergB Offline
          broberg Project Sponsor
          last edited by

          Sweet!

          There should be a seasonal module like this, or maybe an extension for the weather apps (snow when the weather says snow and rain, hail, sunny, cloudy etc etc).

          M 1 Reply Last reply Reply Quote 6
          • M Offline
            McSorley @broberg
            last edited by

            @broberg said in Yet another Snow Module:

            Sweet!

            There should be a seasonal module like this, or maybe an extension for the weather apps (snow when the weather says snow and rain, hail, sunny, cloudy etc etc).

            Would this be possible? Think it would be pretty sweet to have the screen snowing when its snowing outside.

            brobergB J 2 Replies Last reply Reply Quote 0
            • brobergB Offline
              broberg Project Sponsor @McSorley
              last edited by

              @McSorley should be a matter of having the weather module sending a notifaction to the snow module

              1 Reply Last reply Reply Quote 0
              • Andrius okA Offline
                Andrius ok
                last edited by yawns

                Hello, does it work with Raspberry Pi Zero W and Midori browser? I cannot get working.
                Everythin what’s in config file is working but not MMM-Snow

                Here is my config.js

                ...
                                {
                                        module: "MMM-Snow",
                                        position: 'fullscreen',
                                        config: {
                                        // See 'Configuration options' for more information.
                                        }
                                },
                ...
                
                yawnsY 1 Reply Last reply Reply Quote 0
                • yawnsY Offline
                  yawns Moderator @Andrius ok
                  last edited by

                  @Andrius-ok
                  position should be fullscreen_above or fullscreen_below

                  Andrius okA 1 Reply Last reply Reply Quote 1
                  • J Offline
                    jasondreher @McSorley
                    last edited by

                    @McSorley
                    I have done this, worked quite well this weekend. Used HomeAssistant to know when it was snowing and if the description changes to “Snow” then have MM unhide the MMM-Snow module. I used RemoteControl to unhide and hide…

                    Andrius okA 1 Reply Last reply Reply Quote 1
                    • bheplerB Offline
                      bhepler Module Developer
                      last edited by

                      Heh. Love the recent update, @michmich. Thanks for the entertainment.

                      1 Reply Last reply Reply Quote 0
                      • Andrius okA Offline
                        Andrius ok @yawns
                        last edited by

                        @yawns I have tried position: ‘fullscreen_above’, and position: ‘fullscreen_below’, but no luck :(
                        maybe there is any restriction that on Raspberry Pi Zero W is not working? Or there is an issue with Midori browser? Is it needed any plugins to show this snow?

                        Thank You

                        1 Reply Last reply Reply Quote 0
                        • Andrius okA Offline
                          Andrius ok @jasondreher
                          last edited by

                          Hello @jasondreher, could you share yours config.js configuration? It would be a very kind. Thanks You

                          J 1 Reply Last reply Reply Quote 0
                          • J Offline
                            jasondreher @Andrius ok
                            last edited by jasondreher

                            @Andrius-ok
                            You need both MMM-Snow and MMM-Remote-Control, and its not just my config you need. here are the basic steps I took…

                            1. Using home assistant (for me on another pi) https://home-assistant.io/
                            2. Set up a Sensor in configuration.yaml for HomeAssistant for weather underground
                            - platform: wunderground
                              api_key: xxxxxxxxxxxxx
                              monitored_conditions:
                                - alerts
                                - dewpoint_f
                                - temp_f
                                - weather
                            
                            1. Automation in Home Assistant will use sell commands in configuration.yaml to run
                            switch
                                mmsnow:
                                  command_on: 'curl "http://192.XXX.X.XXX:8090/remote?action=SHOW&module=module_0_MMM-Snow"'
                                  command_off: 'curl "http://192.XXX.X.XXX:8090/remote?action=HIDE&module=module_0_MMM-Snow"' 
                            
                            4. Automation in HA calls these when the state changes to "Snow"
                            
                            • alias: “ShowSnow”
                              initial_state: True
                              trigger:
                              platform: state
                              entity_id: sensor.pws_weather
                              to: ‘Snow’
                              action:

                              • service: shell_command.show_snow
                            • alias: “HideSnow”
                              initial_state: True
                              trigger:
                              platform: state
                              entity_id: sensor.pws_weather
                              from: ‘Snow’
                              action:

                              • service: shell_command.hide_snow
                            I use home assistant along with smartthings to automate my lights...
                            I plan to share my entire project soon.
                            Andrius okA N 2 Replies Last reply Reply Quote 2
                            • Andrius okA Offline
                              Andrius ok @jasondreher
                              last edited by

                              @jasondreher said in MMM-Snow - Yet another Snow Module:

                              MMM-Snow

                              cannot make MMM-Snow module to work on Midori :(

                              1 Reply Last reply Reply Quote 0
                              • Andrius okA Offline
                                Andrius ok
                                last edited by

                                Maybe someone can share MMM-Snow config.js configuration? cannot make module to work on Midori. Thanks!

                                1 Reply Last reply Reply Quote 0
                                • Andrius okA Offline
                                  Andrius ok @MichMich
                                  last edited by

                                  Hello @MichMich I have tried position: ‘fullscreen_above’, and position: ‘fullscreen_below’, but no luck :(

                                  maybe there is any restriction that on Raspberry Pi Zero W is not working? Or there is an issue with Midori browser? Is it needed any plugins to show this snow?

                                  Cannot make module to work on Midori

                                  Thank You

                                  strawberry 3.141S 1 Reply Last reply Reply Quote 0
                                  • Sandy2503S Offline
                                    Sandy2503
                                    last edited by Sandy2503

                                    @Andrius ok

                                    here is the Snow Module in my config.js

                                                    {
                                                            module: "clock",
                                                            position: "top_left",
                                                            header: "",
                                                            config: {
                                                                    displaySeconds: false
                                                            }
                                                    },
                                                    {
                                                            module: "MMM-Snow",
                                                            position: "fullscreen_above",
                                                            header: "",
                                                            config: {
                                                                    flakeCount: 25
                                                            }
                                                    },
                                                    {
                                                            module: "calendar_monthly",
                                                            position: "top_left",
                                                            config: {
                                    
                                                            }
                                                    },
                                    
                                    

                                    I hope this can help you

                                    Greetz

                                    1 Reply Last reply Reply Quote 0
                                    • strawberry 3.141S Offline
                                      strawberry 3.141 Project Sponsor Module Developer @Andrius ok
                                      last edited by

                                      @Andrius-ok midori doesnt support es6 thats why a lot of modules dont work on midori, but from a quick scan i couldnt spot a es6 feature. But I could imagine that midori also doesnt support css3 and this module is making havy use of css3

                                      Please create a github issue if you need help, so I can keep track

                                      Andrius okA 1 Reply Last reply Reply Quote 0
                                      • dasbooterD Offline
                                        dasbooter
                                        last edited by dasbooter

                                        Thanks a bunch for this. Its quite jerky for me. I have limited the flake count to 25 in the config. Whats my expectation here on a rasberry pi 3 with default modules plus globe, remote module , and traffic . Wondering if i didnt maybe nerf something in the initial first time install of the magic mirror following a tutorial?

                                        Edit: Found the Answer had to downgrade electron bc I’m using stretch. Took forty minutes to locate an answer on google but worth it! Thanks a bunch for this module and the MM

                                        Mykle1M 1 Reply Last reply Reply Quote 3
                                        • Mykle1M Offline
                                          Mykle1 Project Sponsor Module Developer @dasbooter
                                          last edited by

                                          @dasbooter said in MMM-Snow - Yet another Snow Module:

                                          Found the Answer had to downgrade electron bc I’m using stretch. Took forty minutes to locate an answer on google but worth it!

                                          Please consider posting your findings and the procedure you took to rectify your issue in this topic.

                                          https://forum.magicmirror.builders/topic/4684/electron-cpu-usage/210

                                          It will certainly help someone at some time, as did the other findings in that topic.

                                          Many thanks, mate. :-)

                                          Create a working config
                                          How to add modules

                                          1 Reply Last reply Reply Quote 0
                                          • Andrius okA Offline
                                            Andrius ok @strawberry 3.141
                                            last edited by Andrius ok

                                            Hello @strawberry-3.141 first Happy Holidays! and thank you for your answer. Yes I see now that only working with the Chromium browser on RPi3

                                            After spending a day to find the solution on how to make work MM on Raspberry Pi Zero W with Chromium I found the solution and it works like a charm! :)

                                            I tried many browsers (Midori, Kweb, Epiphany) no one is working correctly with es6 and css3 only Chromium.

                                            There is link on how to make work Chromium on RPi W Zero:
                                            https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=157049

                                            Also on how to start Chromium with root (if someone is needed):
                                            https://www.linkedin.com/pulse/20141028025215-79939846-google-chrome-and-chromium-as-root-on-kali-linux/

                                            There is my start.sh script:
                                            #! /bin/bash
                                            cd ~/MagicMirror
                                            node serveronly &
                                            sleep 45
                                            sudo xbacklight -set 100
                                            sudo xinit /home/pi/startMirror.sh

                                            and startMirror.sh script:
                                            #!/bin/sh
                                            xset -dpms # disable DPMS (Energy Star) features.
                                            xset s off # disable screen saver
                                            xset s noblank # don’t blank the video device
                                            xbacklight -set 100

                                            #Chromium Browser
                                            matchbox-window-manager &
                                            unclutter &
                                            sed -i ‘s/“exited_cleanly”: false/“exited_cleanly”: true/’ ~/.config/chromium/Default/Preference
                                            chromium-browser --start-maximized --noerrdialogs --kiosk --incognito http://localhost:8080

                                            Everything the same config like there (only Chromium browser needed instead Midori):
                                            https://forum.magicmirror.builders/topic/1183/how-i-got-my-magic-mirror-working-on-a-raspberry-pi-0-zero

                                            Maybe for someone it will be usefull on how to start MM on Raspberry Pi Zero W with all features working.

                                            Happy Holidays!

                                            0_1514241955871_MM.JPG

                                            Mykle1M 1 Reply Last reply Reply Quote 2

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post
                                            Enjoying MagicMirror? Please consider a donation!
                                            MagicMirror created by Michael Teeuw.
                                            Forum managed by Sam, technical setup by Karsten.
                                            This forum is using NodeBB as its core | Contributors
                                            Contact | Privacy Policy