• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 477.1k 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.
  • B Offline
    bhepler Module Developer @noorm91
    last edited by Oct 20, 2017, 9:45 PM

    @noorm91 npm start is the command to start the Magic Mirror application and display the interface on the screen.

    N 1 Reply Last reply Oct 20, 2017, 9:51 PM Reply Quote 0
    • N Offline
      noorm91 @bhepler
      last edited by Oct 20, 2017, 9:51 PM

      @bhepler
      I can’t seem to start MM with npm start, tried through SSH and directly on rpi with keyboard.

      pi@raspberrypi:~/MagicMirror $ DISPLAY=:0 nohup npm start &
      [1] 890
      pi@raspberrypi:~/MagicMirror $ nohup: ignoring input and appending output to ‘nohup.out’
      ^C
      [1]+ Exit 1 DISPLAY=:0 nohup npm start

      pi@raspberrypi:~/MagicMirror $
      pi@raspberrypi:~/MagicMirror $ npm start

      magicmirror@2.1.0 start /home/pi/MagicMirror
      electron js/electron.js

      /home/pi/MagicMirror/node_modules/electron/dist/electron: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory

      npm ERR! Linux 4.4.34+
      npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “start”
      npm ERR! node v4.2.1
      npm ERR! npm v2.14.7
      npm ERR! file sh
      npm ERR! code ELIFECYCLE
      npm ERR! errno ENOENT
      npm ERR! syscall spawn
      npm ERR! magicmirror@2.1.0 start: electron js/electron.js
      npm ERR! spawn ENOENT
      npm ERR!
      npm ERR! Failed at the magicmirror@2.1.0 start script ‘electron js/electron.js’.
      npm ERR! 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
      npm ERR! 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

      H 1 Reply Last reply Oct 21, 2017, 9:59 AM Reply Quote 0
      • H Offline
        Hawking @noorm91
        last edited by Oct 21, 2017, 9:59 AM

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

        @bhepler
        I can’t seem to start MM with npm start

        Thats what I expected for the Pi Zero. Did you try the method described in the first post of this thread in the section “Setting up boot scripts”?

        1 Reply Last reply Reply Quote 0
        • D Offline
          Doubleve
          last edited by Oct 21, 2017, 4:08 PM

          I took everything back with the first post everything works !!!

          H 1 Reply Last reply Oct 22, 2017, 1:39 AM Reply Quote 1
          • H Offline
            Hawking @Doubleve
            last edited by Oct 22, 2017, 1:39 AM

            @Doubleve
            Can you tell me which Linux distribution (lsb_release -a), node version ( node -v ) and version of MM you are using?

            1 Reply Last reply Reply Quote 0
            • D Offline
              delusional112
              last edited by Nov 5, 2017, 8:05 AM

              Hi guys, I saw someone asked before, isn’t there anyone who has a working image for MM2 on a Pi Zero. I tried a lot of things before, cant get it to work. Now, I don’t have a lot of time to experiment with it, school and work are killing me. My mirror is lying around, unused. Please help me out here,
              Thanks!!

              N 1 Reply Last reply Nov 5, 2017, 4:41 PM Reply Quote 0
              • N Offline
                noorm91 @delusional112
                last edited by Nov 5, 2017, 4:41 PM

                @delusional112
                Here is an image, it has a couple of errors that needs fixing but the magicmirror starts at least.
                If you have any solutions please keep us informed…this image is made by Sebtota.
                https://mega.nz/#!XlIU3QjI!QSdvAE3yXp1oMsdRGNte6lt4SncgvfozSDU7xhxtbbM

                Here is the topic I found the image at.
                https://forum.magicmirror.builders/topic/1183/how-i-got-my-magic-mirror-working-on-a-raspberry-pi-0-zero/85?page=9

                1 Reply Last reply Reply Quote 0
                • N Offline
                  noorm91
                  last edited by yawns Nov 8, 2017, 7:22 PM Nov 5, 2017, 5:22 PM

                  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.
                  
                  B 1 Reply Last reply Nov 8, 2017, 4:43 PM Reply Quote 0
                  • B Offline
                    bhepler Module Developer @noorm91
                    last edited by Nov 8, 2017, 4:43 PM

                    @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 Nov 29, 2017, 8:34 PM

                      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 Nov 29, 2017, 11:01 PM Reply Quote 0
                      • 1
                      • 2
                      • 12
                      • 13
                      • 14
                      • 15
                      • 16
                      • 20
                      • 21
                      • 14 / 21
                      • 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