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.

    Raspberry Pi Zero W for Magic Mirror

    Scheduled Pinned Locked Moved Hardware
    73 Posts 8 Posters 42.7k Views 9 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 @sdetweil
      last edited by

      @davidgagne the install log looks good…

      don’t know what is going on… will have to think on it while I sleep…

      time to rest… til tomorrow

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • D Offline
        davidgagne @sdetweil
        last edited by

        @sdetweil I understand what you’re saying about fixing the Jeopardy module, but I really think that’s secondary to not getting MM to run in the first place (and it not starting as a service on boot). Once I get MM running reliably in the first place I will play around with modules. :-)

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

          How to Get MagicMirror to Run on a Raspberry Pi Zero W Rev 1.1

          Late-May 2024

          Huge thanks to @sdetweil for all his help!


          1. Flash card with Legacy 32-bit.
          2. Connect via ssh to run script:
            bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)"
            

            Answer yes to disable screen saver and use pm2 questions.

          3. Remove chromium with:
            sudo apt-get remove chromium-browser
            sudo apt autoremove
            
          4. Add Firefox with:
            sudo apt-get update
            sudo apt-get install firefox-esr
            
          5. Enable VNC using GUI (Interface Options):

            sudo raspi-config

          6. Connect via TigerVNC (Apple app)
          7. Edit installers/mm.sh via VNC using Pi's baked-in text editor by adding:
            cd ~/MagicMirror
            export external_browser=firefox
            DISPLAY=:0 npm start
            
          8. Execute fix'em-up script:
            bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/fixuppm2.sh)"
            
          9. cd ~/MagicMirror/
            pm2 start MagicMirror
            
          10. sudo reboot

          Note: On my Pi Zero W it takes a solid ten minutes from reboot to actually seeing MM output via HDMI.

          S C plainbrokeP 4 Replies Last reply Reply Quote 1
          • S Offline
            sdetweil @davidgagne
            last edited by sdetweil

            @davidgagne thanks.

            5 and 6 are optional
            as 7 can be done with nano over ssh

               scroll down with keyboard arrow keys
               hit enter to add a line
               type the export line
               ctrl-x to exit nano, yes to save contents
            

            8 and 9 over ssh
            9 pm2 can be run from any folder location

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            D 1 Reply Last reply Reply Quote 0
            • D Offline
              davidgagne @sdetweil
              last edited by

              @sdetweil Is there any reason why this same procedure would not work on a 3B+? I’ve tried with multiple different versions of the OS but it always seems to get stuck on “Updating packages …” and – as far as I can tell – there’s nothing meaningful in install.log. Is this install script unique to the Zero W?

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

                @davidgagne no. the script works of any Debian based os. pi0 is SLOOOOOW…
                but pi 3b+ should be ok. there should be a moving <-> while it’s updating… (haven’t figured out how to make that stand out more)

                the script is doing apt get update, apt upgrade . this could take a while based on how much change since distro was released. over wifi, nothing I can do to speed it up.

                I’ve tested on all the pi models. except the pi 1.
                on odroid, Jetson nano, a chrome box and book running linux and a bunch of x86 distros., and macos Intel and arm.
                I also tested on my arm chromebook, with the extra Ubuntu installed. install worked and server mode worked. no ui

                if there is a problem, I’ll fix it. I’ll setup my 3b later.

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                D 1 Reply Last reply Reply Quote 0
                • D Offline
                  davidgagne @sdetweil
                  last edited by

                  @sdetweil Right. That’s my confusion. I have been able to run the script a dozen (or more) times on the Zero W, but it always fails on the 3B+, which I had assumed would be faster / better than the Zero W.

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

                    @davidgagne always fails?

                    what os? I’d pick the 32 it due to memory size

                    send me the install.log.

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      capedbuffethero @davidgagne
                      last edited by

                      @davidgagne Wow, your summary above is just amazing! This is exactly what I was looking for.

                      Can you comment on why the choice of legacy OS was selected? Is there some kind of tradeoff that is being made here?

                      S D 2 Replies Last reply Reply Quote 1
                      • S Offline
                        sdetweil @capedbuffethero
                        last edited by

                        @capedbuffethero the pi0 is older armv6l processor, it can only run 32 bit mode. the memory is small on pi0,

                        everything that doesn’t fit in memory causes swapping, to the sd card. pi0 has the older slower sd chip.

                        so, use the legacy 32 bit image to reduce the footprint

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 6
                        • 7
                        • 8
                        • 4 / 8
                        • 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