• 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 473.5k 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.
  • S Offline
    SebTota @Wieber
    last edited by Jan 14, 2017, 10:29 PM

    @Wieber I have a feeling that there was a problem installing MagicMirror because my SSH disconnected but I just continued through the steps. Do you think it would help to just run the command again to install the program or is there a way to update it and it would find if there are any files missing?

    W 1 Reply Last reply Jan 14, 2017, 10:35 PM Reply Quote 0
    • W Offline
      Wieber @SebTota
      last edited by Wieber Jan 14, 2017, 10:37 PM Jan 14, 2017, 10:35 PM

      @SebTota Well I think there isn’t really anything wrong with your Mirror, since it shows the default page for when the Config.js is missing.
      What you could do is search for the ‘config.js.sample’ file with the following command:
      find -name “config.js.sample”
      I haven’t used this command myself, but more info on it is found here: https://www.digitalocean.com/community/tutorials/how-to-use-find-and-locate-to-search-for-files-on-a-linux-vps

      Edit: a loss in SSH connection doesn’t necessarily means that your Pi messed anything up, just like your PC can still run when your monitor disconnects. Although a connection loss could have a lot of reasons that would also mess up the Pi ofc ;)

      S 2 Replies Last reply Jan 15, 2017, 12:17 AM Reply Quote 0
      • S Offline
        SebTota @Wieber
        last edited by Jan 15, 2017, 12:17 AM

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • S Offline
          SebTota @Wieber
          last edited by Jan 15, 2017, 12:22 AM

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • S Offline
            SebTota
            last edited by Jan 15, 2017, 12:31 AM

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • S Offline
              SebTota
              last edited by Jan 15, 2017, 2:22 AM

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • S Offline
                SebTota
                last edited by Jan 15, 2017, 2:31 AM

                Alright after some time I figured it out.

                cd MagicMirror
                cd config
                sudo nano config.js
                then the file should open.

                This is for the noobs like me who might need that.

                B 1 Reply Last reply Jan 15, 2017, 3:34 AM Reply Quote 0
                • B Offline
                  bhepler Module Developer @SebTota
                  last edited by Jan 15, 2017, 3:34 AM

                  @SebTota What @Wieber has forgotten to mention is that the config.js.sample file is the default configuration that is included with the mirror software. The mirror software itself is looking for config.js. So the step that is missing is to copy the sample to the end file name. Once you have it copied over, this will become the file that you use to change your mirror’s behavior.

                  You copy the file with this command: cp ~/MagicMirror/config/config.js.sample ~/MagicMirror/config/config.js

                  You can then edit the config.js command as you have already discovered: nano ~/MagicMirror/config/config.js Nano is the editor, config.js is the file you are editing.

                  1 Reply Last reply Reply Quote 0
                  • P Offline
                    piziie
                    last edited by Jan 15, 2017, 3:19 PM

                    Great guide!

                    I have a quick question though. When my pi zero boots, it boots into a command line where i can see the modules are loading. It ends with

                    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 }
                    

                    any ideas what causes this and how it can be fixed?

                    S B 2 Replies Last reply Jan 15, 2017, 3:22 PM Reply Quote 0
                    • S Offline
                      SebTota @piziie
                      last edited by Jan 15, 2017, 3:22 PM

                      @piziie I believe my pi had the same response but after a few seconds it boots into the browser and shoes the mirror and works fine. Is it the same with you?

                      P 1 Reply Last reply Jan 15, 2017, 3:44 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 20
                      • 21
                      • 3 / 21
                      3 / 21
                      • First post
                        27/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