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.

    Installing on a Pi Zero

    Scheduled Pinned Locked Moved Troubleshooting
    175 Posts 33 Posters 249.6k Views 33 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
      sdetweil @ebolisa
      last edited by

      @ebolisa i would rebuild the sd card and start again

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      ebolisaE 1 Reply Last reply Reply Quote 0
      • ebolisaE Offline
        ebolisa @sdetweil
        last edited by

        @sdetweil I agree but which OS should I use? The lite one?

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @ebolisa
          last edited by

          @ebolisa full desktop

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          ebolisaE 1 Reply Last reply Reply Quote 0
          • ebolisaE Offline
            ebolisa @sdetweil
            last edited by

            @sdetweil Thank you! Finally got it going. I had to change the SD card.

            Now I can finally replace my P4 with the P0. The P4, along with the display, are causing heat related problems so, P0 to the rescue.

            Just FYI, I cannot hide the cursor and sudo apt-get install unclutter didn’t help.

            S 2 Replies Last reply Reply Quote 0
            • S Offline
              sdetweil @ebolisa
              last edited by sdetweil

              @ebolisa in css/main.css body should have cursor:none

              you are running chromium-browser, not electron, but should have been the same

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @ebolisa
                last edited by

                @ebolisa pi0 doesnt have a lot of power, so beware running too much…

                check swap space usage

                free -m

                to see if it needs to be made bigger

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                ebolisaE 1 Reply Last reply Reply Quote 0
                • ebolisaE Offline
                  ebolisa @sdetweil
                  last edited by

                  @sdetweil Yes, I set swap to 1024. It’s slow but it works.
                  Thanks again!!

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    RushHour99
                    last edited by

                    @sdetweil , I went through a fresh SD card install for a Pi Zero W. raspbian and then the raspberry.sh script via your github page. I believe everything completed without error.

                    However when Magic Mirror launches on reboot, I get a blank page indicating:

                    This site can’t be reached
                    localhost refused to connect

                    Any idea what to do to troubleshoot?

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @RushHour99
                      last edited by

                      @rushhour99 is this with extra modules or just the base?

                      can u show the output of

                      pm2 logs --lines=100
                      

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      R 1 Reply Last reply Reply Quote 0
                      • R Offline
                        RushHour99 @sdetweil
                        last edited by RushHour99

                        @sdetweil said in Installing on a Pi Zero:

                        pm2 logs --lines=100

                        This just the Magic Mirror base. I haven’t added any extra modules.

                        Unfortunately I cannot paste the pm2 logs output. When I try it gets caught in some sort of spam filter and won’t let me post.

                        S 1 Reply Last reply Reply Quote 0
                        • S Offline
                          sdetweil @RushHour99
                          last edited by sdetweil

                          @rushhour99 u can email to me… same userid on gmail

                          also attach /home/pi/install.log

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          R 1 Reply Last reply Reply Quote 0
                          • R Offline
                            RushHour99 @sdetweil
                            last edited by

                            @sdetweil Thanks, error log emailed. Ive done this process before without error ~9 months ago. Maybe the rasbian version or magic mirror version has changed recently that is now causing the problem.

                            S 2 Replies Last reply Reply Quote 0
                            • S Offline
                              sdetweil @RushHour99
                              last edited by

                              @rushhour99 there is a new MM version every 2 months…

                              I test on my own pi 0 .

                              haven’t seen a problem like this

                              sent email back, can u send install.log

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              1 Reply Last reply Reply Quote 0
                              • S Offline
                                sdetweil @RushHour99
                                last edited by sdetweil

                                @rushhour99 do this

                                sudo npm i -g npm@6
                                

                                this will downgrade npm to v6

                                then

                                cd ~/MagicMirror
                                rm -rf node_modules
                                rm package-lock.json
                                npm install --only=prod
                                

                                and check if the config.js file exists

                                ls ~/MagicMirror/config/config,js -laF
                                

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                R 1 Reply Last reply Reply Quote 0
                                • R Offline
                                  RushHour99 @sdetweil
                                  last edited by

                                  @sdetweil said in Installing on a Pi Zero:

                                  sudo npm -i npm@6

                                  I got an error. Thanks for helping out, this is a new build so I don’t mind if it gets messed up and I need to start over.

                                  $ sudo npm -i npm@6
                                  npm ERR! code ENOENT
                                  npm ERR! syscall open
                                  npm ERR! path /home/pi/package.json
                                  npm ERR! errno -2
                                  npm ERR! enoent ENOENT: no such file or directory, open ‘/home/pi/package.json’
                                  npm ERR! enoent This is related to npm not being able to find a file.
                                  npm ERR! enoent

                                  npm ERR! A complete log of this run can be found in:
                                  npm ERR! /root/.npm/_logs/2021-08-03T22_48_17_691Z-debug.log

                                  S 1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    sdetweil @RushHour99
                                    last edited by

                                    @rushhour99 typo, sorry

                                    sudo npm i -g npm@6
                                    

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    R 1 Reply Last reply Reply Quote 0
                                    • R Offline
                                      RushHour99 @sdetweil
                                      last edited by

                                      @sdetweil Thanks!

                                      I copied the config.js.sample to config.js before running the downgrade commands.

                                      After downgrading and rebooting, the Magic Mirror showed up on my Pi 0 with the default configuration.

                                      S 1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        sdetweil @RushHour99
                                        last edited by

                                        @rushhour99 great, thanks for the update

                                        I pushed a change to the installer to prevent npm going to v7.

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        1 Reply Last reply Reply Quote 0
                                        • L Offline
                                          laurafox08
                                          last edited by

                                          I recently purchased a pi0, and installed MagicMirror successfully. However when I go to install more modules, it starts to fail (ie. become very unstable). Other than just ‘upgrading’ to a Pi3/4, is there any reason why I couldn’t host the mirror on my website and just use the browser to display the data?

                                          S 1 Reply Last reply Reply Quote 0
                                          • S Offline
                                            sdetweil @laurafox08
                                            last edited by

                                            @laurafox08 said in Installing on a Pi Zero:

                                            why I couldn’t host the mirror on my website

                                            what do u mean?

                                            this is a programmed app… its not just a web page.

                                            did u increase the swap space… pi0 doesn’t have much memory…

                                            and its under powered, so it can’t do everything that a pi3 or 4 could do…

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            L 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
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 9
                                            • 9 / 9
                                            • 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