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-Button white screen

    Scheduled Pinned Locked Moved Troubleshooting
    23 Posts 9 Posters 17.7k Views 8 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.
    • S Offline
      shgmongohh
      last edited by

      Solved the problem…

      I hat forgotten to install onoff (pi@raspberrypi:~/MagicMirror $ npm install onoff
      )

      1 Reply Last reply Reply Quote 0
      • KirAsh4K Offline
        KirAsh4 Moderator
        last edited by

        That tells me you didn’t read the instructions, because step 2, under Installation, it specifically says to run 'npm install' which would’ve taken care of installing onoff for you. I find it helps when I follow the author’s instructions.

        https://github.com/PtrBld/MMM-Button#installation

        A Life? Cool! Where can I download one of those from?

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          shgmongohh @KirAsh4
          last edited by

          @KirAsh4

          I read the instruction and I executed the nmp install in the MagicMirror folder and thought that onoff would be installed automaticly.
          But I had to execute npm install onoff extra in the MagicMirror folder to get the module run.

          Maybe there should a step 3, that tells you to execute npm install onoff .

          Sebastian

          1 Reply Last reply Reply Quote 0
          • KirAsh4K Offline
            KirAsh4 Moderator
            last edited by

            No, the instructions, as written, are accurate. You missed the last bit of Step 1:

            1. Navigate into your MagicMirror’s modules folder and execute git clone https://github.com/ptrbld/MMM-Button.git.**`A new folder will appear navigate into it.`**
            2. Execute npm install to install the node dependencies.

            Had you done that last bit, you would be executing the next step from within the button module folder, not within the MagicMirror folder.

            A Life? Cool! Where can I download one of those from?

            S 1 Reply Last reply Reply Quote 1
            • S Offline
              shgmongohh @KirAsh4
              last edited by

              @KirAsh4
              Ahhh, okay, that´s an explanation why I have sometimes problems with some modules.

              Thank you.

              1 Reply Last reply Reply Quote 0
              • KirAsh4K Offline
                KirAsh4 Moderator
                last edited by

                It can be a confusing, sometimes damn near frustrating landscape to maneuver. Glad you got it to work though.

                A Life? Cool! Where can I download one of those from?

                1 Reply Last reply Reply Quote 0
                • S Offline
                  schubi
                  last edited by schubi

                  Hello, i have the same problem. I also get a white-screen. My error-log:

                  $ tail -f /home/pi/.pm2/logs/mm-error-0.log

                  at Error (native)
                  at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:178:20)
                  at Object.Module._extensions..node (module.js:583:18)
                  at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:178:20)
                  at Module.load (module.js:473:32)
                  at tryModuleLoad (module.js:432:12)
                  at Function.Module._load (module.js:424:3)
                  at Module.require (module.js:483:17)
                  at require (internal/module.js:20:19)
                  at bindings (/home/pi/MagicMirror/modules/MMM-Button/node_modules/bindings/bindings.js:76:44)
                  

                  Any Ideas? Thanks!
                  I’ve done everything which was postet in this topic…

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    dicker182
                    last edited by

                    I have the same problem. Also did everything from this thread.

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      Babene1 Project Sponsor
                      last edited by

                      i have the same problem.

                      N 1 Reply Last reply Reply Quote 0
                      • N Offline
                        Nonamexp @Babene1
                        last edited by

                        @Babene1 try this

                        cd ~/MagicMirror/modules/MMM-Button
                        sudo npm rebuild --runtime=electron --target=1.4.6 --disturl=https://atom.io/download/atom-shell --abi=50

                        1 Reply Last reply Reply Quote 0
                        • B Offline
                          Babene1 Project Sponsor
                          last edited by

                          now it woks, thank you very much.

                          Have I made a mistake here?
                          Or what is the reason?

                          1 Reply Last reply Reply Quote 0
                          • F Offline
                            FlorianRD
                            last edited by

                            I have the same problem. I did perform “nmp install” and “npm install onoff” in the MMM-Button folder.
                            And the fix from Nonamexp. But the screen after a reboot is white. :-(

                            pi@raspberrypi:~ $ tail -f /home/pi/.pm2/logs/mm-error-0.log
                                at Error (native)
                                at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:168:20)
                                at Object.Module._extensions..node (module.js:583:18)
                                at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:168:20)
                                at Module.load (module.js:473:32)
                                at tryModuleLoad (module.js:432:12)
                                at Function.Module._load (module.js:424:3)
                                at Module.require (module.js:483:17)
                                at require (internal/module.js:20:19)
                                at bindings (/home/pi/MagicMirror/modules/MMM-Button/node_modules/bindings/bindings.js:76:44)
                            
                            
                            N 1 Reply Last reply Reply Quote 0
                            • N Offline
                              Nonamexp @FlorianRD
                              last edited by

                              @FlorianRD after The Update do you have the raspberry pi restart?

                              1 Reply Last reply Reply Quote 0
                              • F Offline
                                FlorianRD
                                last edited by

                                Yes, even many times.

                                1 Reply Last reply Reply Quote 0
                                • F Offline
                                  FlorianRD
                                  last edited by

                                  This post is deleted!
                                  1 Reply Last reply Reply Quote 0
                                  • F Offline
                                    FlorianRD
                                    last edited by

                                    This post is deleted!
                                    1 Reply Last reply Reply Quote 0
                                    • F Offline
                                      FlorianRD
                                      last edited by

                                      He guys. Another error log after raspberry startup. Maybe helps?

                                      pi@raspberrypi:~ $ npm start dev
                                      npm ERR! Linux 4.4.26-v7+
                                      npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start" "dev"
                                      npm ERR! node v6.9.1
                                      npm ERR! npm  v3.10.8
                                      npm ERR! path /home/pi/package.json
                                      npm ERR! code ENOENT
                                      npm ERR! errno -2
                                      npm ERR! syscall open
                                      
                                      npm ERR! enoent ENOENT: no such file or directory, open '/home/pi/package.json'
                                      npm ERR! enoent ENOENT: no such file or directory, open '/home/pi/package.json'
                                      npm ERR! enoent This is most likely not a problem with npm itself
                                      npm ERR! enoent and is related to npm not being able to find a file.
                                      npm ERR! enoent
                                      
                                      npm ERR! Please include the following file with any support request:
                                      npm ERR!     /home/pi/npm-debug.log
                                      
                                      
                                      yawnsY 1 Reply Last reply Reply Quote 0
                                      • yawnsY Offline
                                        yawns Moderator @FlorianRD
                                        last edited by

                                        @FlorianRD
                                        you are in the wrong directory.

                                        cd MagicMirror
                                        npm start dev
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • F Offline
                                          FlorianRD
                                          last edited by

                                          Okay, next try…

                                          npm ERR! Linux 4.4.26-v7+
                                          npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start" "dev"
                                          npm ERR! node v7.4.0
                                          npm ERR! npm  v4.0.5
                                          npm ERR! code ELIFECYCLE
                                          npm ERR! magicmirror@2.0.0 start: `electron js/electron.js "dev"`
                                          npm ERR! Exit status 1
                                          npm ERR!
                                          npm ERR! Failed at the magicmirror@2.0.0 start script 'electron js/electron.js "dev"'.
                                          npm ERR! Make sure you have the latest version of node.js and npm installed.
                                          npm ERR! If you do, this is most likely a problem with the magicmirror package,
                                          npm ERR! not with npm itself.
                                          npm ERR! Tell the author that this fails on your system:
                                          npm ERR!     electron js/electron.js "dev"
                                          npm ERR! You can get information on how to open an issue for this project with:
                                          npm ERR!     npm bugs magicmirror
                                          npm ERR! Or if that isn't available, you can get their info via:
                                          npm ERR!     npm owner ls magicmirror
                                          npm ERR! There is likely additional logging output above.
                                          
                                          npm ERR! Please include the following file with any support request:
                                          npm ERR!     /home/pi/MagicMirror/npm-debug.log
                                          
                                          
                                          1 Reply Last reply Reply Quote 0

                                          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