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.

    How I got my Magic Mirror working on a Raspberry Pi 0 (zero)

    Scheduled Pinned Locked Moved Tutorials
    raspberry pipi0zeropizeropi1
    204 Posts 47 Posters 609.9k Views 47 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.
    • N Offline
      noorm91
      last edited by yawns

      Any clue on what is trying to start and not functioning alright here?

      Starting MagicMirror: v2.1.0
      Loading config ...
      Loading module helpers ...
      No helper found for module: alert.
      Initializing new module helper ...
      No helper found for module: clock.
      No helper found for module: compliments.
      No helper found for module: currentweather.
      No helper found for module: weatherforecast.
      Initializing new module helper ...
      All module helpers loaded.
      Starting server op port 8080 ...
      Server started ...
      Connecting socket for: updatenotification
      Connecting socket for: newsfeed
      Starting module: newsfeed
      Sockets connected & modules started ...
      
      Ready to go! Please point your browser to: http://localhost:8080
      Whoops! There was an uncaught exception...
      { [Error: listen EADDRINUSE :::8080]
        code: 'EADDRINUSE',
        errno: 'EADDRINUSE',
        syscall: 'listen',
        address: '::',
        port: 8080 }
      MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      
      (EE)
      Fatal server error:
      (EE) Server is already active for display 0
              If this server is no longer running, remove /tmp/.X0-lock
              and start again.
      (EE)
      (EE)
      Please consult the The X.Org Foundation support
               at http://wiki.x.org
       for help.
      (EE)
      XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
            after 7 requests (7 known processed) with 0 events remaining.
      
      bheplerB 1 Reply Last reply Reply Quote 0
      • bheplerB Offline
        bhepler Module Developer @noorm91
        last edited by

        @noorm91 said in How I got my Magic Mirror working on a Raspberry Pi 0 (zero):

        Ready to go! Please point your browser to: http://localhost:8080
        Whoops! There was an uncaught exception…
        { [Error: listen EADDRINUSE
        :::
        8080]

        This usually means that you already have a process trying to serve up web pages on port 8080. In my experience, this happens when you do not terminate your previous attempt to run the MM process and start up another one. The new one also tries to serve up pages on port 8080 and you get that error.

        You can use ps ax | grep node to see if node is running when you attempt to start your mirror. If it is, node is already serving up pages, so you will want to stop whatever process is running first. Alternately, if you are running a web server on port 8080 already, you can switch the port of the MM process in the config.js file.

        1 Reply Last reply Reply Quote 0
        • MarWindM Offline
          MarWind
          last edited by

          So did anyone get MM2 on a Pi Zero W with Raspian Stretch lite running?
          Or is it better to stay with Jessie?

          ~ride bikes and boards not always on top~

          H 1 Reply Last reply Reply Quote 0
          • H Offline
            Hawking @MarWind
            last edited by

            @MarWind
            I still didn’t get it to work using Midori in combination with Raspian Stretch Lite.
            On this distribution, I could only get it to work using Epiphany or Chromium. However, their performance is much slower than Midori (which worked fine in Jessie Lite). I can’t tell if this is due to some general changes in Stretch or in the newer versions of Midori.

            1 Reply Last reply Reply Quote 0
            • N Offline
              noorm91
              last edited by

              How did you install Chromium on rpi 0 ?

              H 1 Reply Last reply Reply Quote 0
              • MarWindM Offline
                MarWind
                last edited by MarWind

                @hawking, thanks for your answer!

                I’ll do some more testing:

                *So my main issue will be now the update of mm2 :-(
                I’m running an working image on the pi zero w with npm 2.14 and node 4.2.1 for month’s now.
                But after updating MM2 last week with git pull && npm install it’s broken :-(
                *

                ~ride bikes and boards not always on top~

                1 Reply Last reply Reply Quote 0
                • H Offline
                  Hawking @noorm91
                  last edited by

                  @noorm91
                  I simply did

                  sudo apt-get install chromium-browser
                  

                  and the start is by

                  chromium-browser --incognito --kiosk http://localhost:8080
                  

                  I don’t know if this is a new possibility in Stretch light or is also possible in Jessie Lite (I know that there were some issues in the past). However, as I said, the performance is slow and not stable (I see that the free amount of memory gets low and the system freezes every few hours). Therefore I would prefer to use still Midori, whoch worked fine for me in Jessie. However, using Midori with Stretch I simply get a black screen. I don’t know if this is due to an error in my installation, due to changes from Jessie to Stretch, due to changes in the Midori browser, due to changes in MM (I tried to install an older version, which didn’t help) or yet another reason.

                  1 Reply Last reply Reply Quote 1
                  • P Offline
                    Parth Bhandari
                    last edited by

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      Parth Bhandari @Kobie
                      last edited by

                      @Kobie said in How I got my Magic Mirror working on a Raspberry Pi 0 (zero):

                      sudo npm install

                      Thanks. I was stuck on the 6th step.

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

                        @Parth-Bhandari check this thread https://forum.magicmirror.builders/post/32731

                        L 1 Reply Last reply Reply Quote 0
                        • L Offline
                          lasharor @Andrius ok
                          last edited by lasharor

                          Couldn’t get this to work at all on the new distro:

                          (chromium-browser:1470): Gtk-WARNING **: cannot open display:

                          I’ll check if the image works for me.

                          @Andrius-ok would be nice if you could create and upload an image.

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

                            Hi everyone, I did not read all 16 pages of this thread but I successfully setup my MM on a Raspberry Pie Zero W, following this answer https://forum.magicmirror.builders/topic/1183/how-i-got-my-magic-mirror-working-on-a-raspberry-pi-0-zero/8

                            I decided to compile all instructions in a basic bash script since some of these steps can be quite long to execute: https://github.com/PipoloyJo/MMConfig/blob/master/setup-mirror.sh

                            Maybe someone else has already done the same, but I did not found it.

                            Only difference so far is the use of chromium over midori (I got some issues setting it up).

                            Thanks for this thread!

                            L 1 Reply Last reply Reply Quote 2
                            • Andrius okA Offline
                              Andrius ok @lasharor
                              last edited by

                              @lasharor did you using Raspberry Pi Zero W ?

                              L 1 Reply Last reply Reply Quote 0
                              • L Offline
                                lasharor @Andrius ok
                                last edited by

                                @Andrius-ok Yes.

                                Tried the Image also. works fine after upgrading. Was not succesfull upgrading magicmirror however. Trying PipoloyJo solution now.

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

                                  @lasharor ok tomorrow I will share the image

                                  L 1 Reply Last reply Reply Quote 0
                                  • L Offline
                                    lasharor @PipoloyJo
                                    last edited by lasharor

                                    @PipoloyJo So I also tried this. Can you please specify which distro you are using? As this is not working on Jessie.
                                    Also the script should contain apt-get upgrade in the beginning. Otherwise you’ll not be able to download most packages due to incorrect links.

                                    Trying now on stretch.

                                    Edit: having problems with rpi-update (or upgrade), will not download the full image can’t run chrome in sandboxed mode. So tried to run MM by disabling sandboxed mode. End up with working Chrome but blank black screen.

                                    :(

                                    P 1 Reply Last reply Reply Quote 0
                                    • P Offline
                                      PipoloyJo @lasharor
                                      last edited by

                                      @lasharor I am using Raspbian Stretch. I also got issue with rpi-update, but I got MM to work without it.

                                      L 1 Reply Last reply Reply Quote 0
                                      • L Offline
                                        lasharor @PipoloyJo
                                        last edited by lasharor

                                        @PipoloyJo If you don’t update you can’t launch Chromium in sandboxed mode, what are your flags for chrome?

                                        @Andrius-ok Would be great if you could share.

                                        1 Reply Last reply Reply Quote 0
                                        • L Offline
                                          lasharor @Andrius ok
                                          last edited by

                                          @Andrius-ok said in How I got my Magic Mirror working on a Raspberry Pi 0 (zero):

                                          @lasharor ok tomorrow I will share the image

                                          Have you forgotten :(?

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

                                            Hi @lasharor , my apologies. Yes I have forgotten, very sorry was on long vacation.
                                            So there is my MM image with Chromium for Raspberry Pi Zero W

                                            https://www.dropbox.com/sh/kdo5q1pxjluca49/AACvP81YjZik6R90BHZNiSZ5a?dl=0

                                            note: you have to configure WiFi by yoursefl and also all modules to work properly in Yours language.

                                            B P 2 Replies Last reply Reply Quote 1

                                            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
                                            • 6
                                            • 7
                                            • 8
                                            • 9
                                            • 10
                                            • 11
                                            • 8 / 11
                                            • 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