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 220.5k 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.
    • 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
                      • L Offline
                        laurafox08 @sdetweil
                        last edited by

                        @sdetweil sorry, my terminology isn’t great, this is my first experience doing much coding at all. I got it displaying the default modules, but it struggled to display my google calendar, and wouldn’t show background images at all. So I was wondering if instead of hosting locally on the pi, I could host it on my other computer and just call the data from there. The pi has no issue running Dakboard with background images, calendars etc, so I’m trying to see if I could run the MM in a similar fashion, as I like MM way better.

                        S 1 Reply Last reply Reply Quote 1
                        • 1
                        • 2
                        • 14
                        • 15
                        • 16
                        • 17
                        • 18
                        • 17 / 18
                        • 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