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.8k 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.
    • R Offline
      randombullet @Kobie
      last edited by

      @Kobie So even after I did all of my steps and there were no error I rebooted and came back to the terminal screen. I midori apparently didn’t launch. Also, after I did

      sudo cp config/config.js.sample config/config.js
      

      I was presented with a blank document. Is it supposed to have anything?

      K bheplerB 2 Replies Last reply Reply Quote 0
      • K Offline
        Kobie @randombullet
        last edited by

        @randombullet I’m afraid I don’t think I can help much. I simply followed all the steps above and it worked for me. Perhaps you missed a step, but it would be hard to say what. Perhaps the easiest thing to do is to re-flash the jessi-lite image and go through the steps again :(

        1 Reply Last reply Reply Quote 0
        • bheplerB Offline
          bhepler Module Developer @randombullet
          last edited by

          @randombullet I think your problem is with the sudo command. You shouldn’t need sudo to copy the config.js file. Check the permissions on the the config.js file. Make sure the npm process can read it.

          1 Reply Last reply Reply Quote 0
          • B Offline
            Burner911 @Kobie
            last edited by

            @Kobie @Wieber Good news! Found out my mail module wasn’t connecting properly with my 2-step verification enabled. After switching to a “less secure app password” my mail app loaded correctly and no longer continued to stall and chew up resources in the background. As a result I was able to remotely connect once again and the scheduler works!

            W 1 Reply Last reply Reply Quote 0
            • S Offline
              SebTota
              last edited by

              I followed all your steps… took me 4 tries to actually succeed (my very first Pi project ever)… but i get an error. It boots into MagicMirror2 but it says "please create a config file. See README for more information. " I went on GitHub and read the README file but no matter what i type in i cant find the config file. Please help me out. Huge thanks!!!

              W 1 Reply Last reply Reply Quote 0
              • W Offline
                Wieber @SebTota
                last edited by

                @SebTota Your MM2 is actually working, so you did not mess up :D
                You just have to configure your MM in order to boot it properly. If you go to the /MagicMirror/Config/config.js.sample file you can add all the information your mirror needs (e.g. a link to a weather api, an RSS feed for news etc) you can safe the file with ‘crtl+x’, then change the file name to config.js (just remove the ‘.sample’ bit) and press ‘y’ (this is of the top of my head, but i’m sure you can figure it out, you just have to safe the file under a different file) and reboot!

                You don’t actually have to put in your personal edits (weather, calendar etc) for it to boot normally, it just needs an ‘config.js’ file for it to stop showing the message.

                Good luck!

                1 Reply Last reply Reply Quote 0
                • W Offline
                  Wieber @Burner911
                  last edited by

                  @Burner911 Great to hear it’s all working now :D

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    SebTota
                    last edited by

                    What the heck!! I got the error message. Reset the pi. Got the message again. Gave up, then when i saw you comment I said id give it another try. I boot it up and it works. I dont know if you have some magical powers your not telling anyone about, but man I love you right now.

                    W 1 Reply Last reply Reply Quote 0
                    • W Offline
                      Wieber @SebTota
                      last edited by

                      @SebTota I might have received a letter from Hogwarts once, but I would have to kill you if I told you ;)
                      Have fun with your mirror!

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        SebTota
                        last edited by SebTota

                        @Wieber Not to bother you much more but i still have one more question. When i try to access the MM like you said to change the config file i get an error.

                        pi@raspberrypi:~ $ /MagicMirror/Config/config.js.sample
                        -bash: /MagicMirror/Config/config.js.sample: No such file or directory

                        any idea?

                        W 1 Reply Last reply Reply Quote 0
                        • W Offline
                          Wieber @SebTota
                          last edited by

                          @SebTota Uuhm, can’t check right now, but if I recall correctly the directory is /home/MagicMirror/Config/config.js.sample . It’s probably due to an error I made somewhere along the line (not installing in the preferred directory)

                          S 1 Reply Last reply Reply Quote 0
                          • S Offline
                            SebTota @Wieber
                            last edited by

                            @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 Reply Quote 0
                            • W Offline
                              Wieber @SebTota
                              last edited by Wieber

                              @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 Reply Quote 0
                              • S Offline
                                SebTota @Wieber
                                last edited by

                                This post is deleted!
                                1 Reply Last reply Reply Quote 0
                                • S Offline
                                  SebTota @Wieber
                                  last edited by

                                  This post is deleted!
                                  1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    SebTota
                                    last edited by

                                    This post is deleted!
                                    1 Reply Last reply Reply Quote 0
                                    • S Offline
                                      SebTota
                                      last edited by

                                      This post is deleted!
                                      1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        SebTota
                                        last edited by

                                        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.

                                        bheplerB 1 Reply Last reply Reply Quote 0
                                        • bheplerB Offline
                                          bhepler Module Developer @SebTota
                                          last edited by

                                          @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

                                            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 bheplerB 2 Replies Last reply Reply Quote 0

                                            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
                                            • 3
                                            • 4
                                            • 5
                                            • 10
                                            • 11
                                            • 2 / 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