• 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 512.7k 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.
  • M Offline
    Mar @SebTota
    last edited by Jan 28, 2017, 7:05 PM

    @SebTota Will do but first…
    If i make a backup of my memory card and i mess up what im doing now can i just copy the backup back on with finder/explorer and be right back where i was?

    thanks @SebTota

    S 1 Reply Last reply Jan 28, 2017, 7:12 PM Reply Quote 0
    • S Offline
      SebTota @Mar
      last edited by Jan 28, 2017, 7:12 PM

      @Mar you can’t just copy and paste the drive. Download win32diskimager and read the SD card to a new .ISO file on your pc

      1 Reply Last reply Reply Quote 1
      • B Offline
        bmarofsky @Wieber
        last edited by morozgrafix Jan 30, 2017, 6:39 PM Jan 28, 2017, 9:59 PM

        This post is deleted!
        W 1 Reply Last reply Jan 30, 2017, 11:26 PM Reply Quote 0
        • M Offline
          Mar
          last edited by Mar Jan 30, 2017, 2:38 PM Jan 30, 2017, 1:49 PM

          So I had a few errors along the way and had to install some libraries etc and managed to get past a bunch of errors. (libgconf-2-4 and libxss1 for anyone who ends up here!)

          But now im at the point where midori loads but has a connection refused page. When I ssh in i can put the command “node serveronly” and it starts up and has a nice log going, or I can use the “DISPLAY=:0 npm start” and it seems all fine with the following lines and no more errors:

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

          just not sure whats happening as midori is showing connection refused…maybe the startup script “startMagicMirror” is not actually executing the node serveronly command???

          Any help would be appreciated.

          Update: Ok so running the “node serveronly” command from ssh and then pointing my laptop browser to the rpi:8080 loads up the MM. But Midori on the Pi is still showing that connection refused. Also…i followed the guide fully so why is the serveronly command not executed by the startup script we put in init.d?
          Also is there a way for me to see this node serveronly log on the MM screen (say i dont start midori and leave it on the command line?)

          W B 2 Replies Last reply Jan 30, 2017, 11:21 PM Reply Quote 0
          • M Offline
            Mar @SebTota
            last edited by Mar Jan 30, 2017, 2:37 PM Jan 30, 2017, 2:31 PM

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • M Offline
              Mar
              last edited by Jan 30, 2017, 6:14 PM

              So I’ve managed to get MM to start using PM2 and can access the page via my laptop.

              Only problem I have now is I cant get Midori to auto start, I’m using the same commands from the startmidori script in the mm.sh script for pm2.

              S 1 Reply Last reply Jan 30, 2017, 7:47 PM Reply Quote 0
              • S Offline
                SebTota @Mar
                last edited by Jan 30, 2017, 7:47 PM

                @Mar if you want I can share my image with you so all you have to do is download my image into your SD card

                M 1 Reply Last reply Jan 30, 2017, 11:00 PM Reply Quote 0
                • M Offline
                  Mar @SebTota
                  last edited by Jan 30, 2017, 11:00 PM

                  @SebTota that would be absolutely amazing… i’ve spent days trying to get this working. I was being pretty persistent wanting to figure this out myself but its just getting to be a little too much time wasted.

                  I’d appreciate it very much if you could. Thanks.

                  S 1 Reply Last reply Jan 31, 2017, 1:20 AM Reply Quote 0
                  • W Offline
                    Wieber @Mar
                    last edited by Wieber Jan 30, 2017, 11:22 PM Jan 30, 2017, 11:21 PM

                    @Mar Going out on a limb here: Are you sure you got the names of your scripts and their locations right?
                    You’re talking about ‘startMagicMirror’ which could either refer to what I called ‘/home/pi/start.sh’ and ‘/home/pi/startMidori’.

                    In the response you’re getting from your Pi it is referring to Electron, the browsing environment used in the default MM2 system, but which sadly doesn’t work on the Pi Zero. Running MM2 in server only mode would eliminate the whole of Electron I think.
                    Possible solutions from the top of my mind would be to check your names and paths, and to make sure the ‘start.sh’ script is an executable by using the ‘chmod a+x /home/pi/start.sh’ command, again, names and paths could differ.

                    This MIGHT also solve the connection refused issue, but I doubt it, for that we might need some more info ;)

                    Edit: On a side note, I thought I had commented on your question like yesterday, but silly me didn’t press the ‘submit’ button, sorry!

                    M 1 Reply Last reply Jan 31, 2017, 12:33 AM Reply Quote 0
                    • W Offline
                      Wieber @bmarofsky
                      last edited by Jan 30, 2017, 11:26 PM

                      @bmarofsky I don’t recall such errors when I finally did things right to be honest.
                      Like the error states, it might be because you’re behind a proxy or a firewall, in which case you should look further on the interweb for help, cause I can’t help you with that!

                      If you aren’t however, I would recommend trying to update NPM to a newer version, as this topic on another forum says it helped for some people.

                      B 1 Reply Last reply Jan 31, 2017, 12:38 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 7
                      • 8
                      • 20
                      • 21
                      • 6 / 21
                      6 / 21
                      • First post
                        57/204
                        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