• 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 to MANUALLY install MM on your Pi. For absolute beginners.

Scheduled Pinned Locked Moved Troubleshooting
27 Posts 5 Posters 16.8k Views 5 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
    Mykle1 Project Sponsor Module Developer
    last edited by Mykle1 Oct 14, 2017, 1:29 AM Oct 14, 2017, 1:27 AM

    How to MANUALLY install MM on your Pi. For absolute beginners.

    I’m going to walk you through this. Why? Well, someone always helped me when I was new.
    What better way to repay them? By helping others, that’s how.

    Raspbian is already installed?

    This tutorial assumes that you’ve already set up your Pi correctly

    Why a manual install?

    • The automatic installation script failed or did not complete

    • You upgraded from an earlier version of MM and now your mirror doesn’t work

    • Troubleshooting often takes longer than this

    • You want to learn a new or different way to install MM

    • You always listen to my suggestions

    You won’t lose your current installation

    You’ll be renaming your current MM folder so nothing will be lost

    Let’s get to it

    • Rename your current MagicMirror folder. (e.g MagicMirror-OLD)

    • Go to https://github.com/MichMich/MagicMirror in your browser

    • Click on the green Clone or Download button on the right side of the window

    • Click on Download ZIP. Now you have a MagicMirror-master.zip file

    • Double Click the MagicMirror-master.zip file. Inside is the MagicMirror-master folder.

    • Move the MagicMirror-master folder to your /home/pi folder. (Where your MagicMirror-OLD is)

    • Rename the MagicMirror-master folder to MagicMirror.

    • Then in your terminal, cd into the MagicMirror directory and run npm install.

    • When that finishes, run npm start, also in the MagicMirror directory.

    • At this point the mirror should run but you’ll likely get a “Create a config” message.

    Don’t worry, you’re almost there

    • Create a working config. If you don’t know how you should go to the following link.

    https://forum.magicmirror.builders/topic/4528/how-to-create-a-working-config-for-absolute-beginners

    • Once you’ve created a working config, open your terminal

    • cd into the MagicMirror directory and run npm start. That should get your mirror running.

    • Then you can copy your modules, 1 by 1, into the new MagicMirror/modules folder

    • Copy the entries from your old config.js file, 1 by 1 into your new config.js file.

    • Test run after each copy

    Can’t I just copy everything over all at once?

    You can, but if something fails in the process, you’ll be back to troubleshooting again. It’s
    a whole lot safer doing it 1 by 1 and running the mirror after each addition as a test.

    Backup your config.js file

    Each time you add a module and its config.js entry, run the mirror. If it works, backup your
    config.js file. If it doesn’t work, you know it’s the addition you just made. If you make
    bulk additions and it fails, you’ll hear yourself say, “I should have listened to Mykle!”

    Peace

    Create a working config
    How to add modules

    1 Reply Last reply Reply Quote 3
    • F Offline
      fox
      last edited by Oct 15, 2017, 5:31 PM

      @Mykle1 said in How to MANUALLY install MM on your Pi. For absolute beginners.:

      Backup your config.js file

      Thank you very much for this Tut. I’ll give it a try. And thank you for linking it here

      Issues With MMM-WatchDog known?

      https://forum.magicmirror.builders/post/29827

      Useful for PIR-Sensor: https://forum.magicmirror.builders/post/21299

      M 1 Reply Last reply Oct 15, 2017, 10:36 PM Reply Quote 1
      • M Offline
        Mykle1 Project Sponsor Module Developer @fox
        last edited by Oct 15, 2017, 10:36 PM

        @fox said in How to MANUALLY install MM on your Pi. For absolute beginners.:

        I’ll give it a try.

        You’re welcome. Let me know how you make out.

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • F Offline
          fox
          last edited by fox Oct 17, 2017, 6:45 PM Oct 17, 2017, 6:32 PM

          Hi @Mykle1 i get this error when i make

          npm start
          

          Error:

          Whoops! There was an uncaught exception...
          { Error: listen EADDRINUSE 0.0.0.0:8080
              at Object.exports._errnoException (util.js:1050:11)
              at exports._exceptionWithHostPort (util.js:1073:20)
              at Server.setupListenHandle [as _listen2] (net.js:1263:14)
              at listenInCluster (net.js:1304:12)
              at doListen (net.js:1428:7)
              at _combinedTickCallback (internal/process/next_tick.js:83:11)
              at process._tickCallback (internal/process/next_tick.js:104:9)
              at Module.runMain (module.js:607:11)
              at run (bootstrap_node.js:431:7)
              at startup (bootstrap_node.js:155:9)
            code: 'EADDRINUSE',
            errno: 'EADDRINUSE',
            syscall: 'listen',
            address: '0.0.0.0',
            port: 8080 }
          
          

          edit:
          with

          sudo netstat -lnptu
          

          i saw that electron.js is already using the port. But i have a blank screen and nothing is shown. Also rebooted a couple of times.

          Issues With MMM-WatchDog known?

          https://forum.magicmirror.builders/post/29827

          Useful for PIR-Sensor: https://forum.magicmirror.builders/post/21299

          M 1 Reply Last reply Oct 17, 2017, 8:15 PM Reply Quote 0
          • M Offline
            Mykle1 Project Sponsor Module Developer @fox
            last edited by Mykle1 Oct 17, 2017, 8:15 PM Oct 17, 2017, 8:15 PM

            @fox said in How to MANUALLY install MM on your Pi. For absolute beginners.:

            i saw that electron.js is already using the port. But i have a blank screen and nothing is shown. Also rebooted a couple of times.

            Hmm, make sure you only have 1 terminal open when you run npm start from the pi@user/MagicMirror directory. Also, make sure the address: "0.0.0.0", entry in your config is OUTSIDE the whitelist. If you’re running pm2 make sure that is not launching an instance of MM. Otherwise, is there anything else that you changed after the install?

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • N Offline
              noorm91
              last edited by Oct 17, 2017, 8:24 PM

              How do you apply after each module you try out? Is there a way or do you have to reboot every time?

              M 1 Reply Last reply Oct 17, 2017, 8:29 PM Reply Quote 0
              • M Offline
                Mykle1 Project Sponsor Module Developer @noorm91
                last edited by Oct 17, 2017, 8:29 PM

                @noorm91 said in How to MANUALLY install MM on your Pi. For absolute beginners.:

                How do you apply after each module you try out? Is there a way or do you have to reboot every time?

                You don’t have to reboot the Pi to launch MM after adding a module. Assuming you quit MM before you added the module, you simply launch MM as you normally would

                Create a working config
                How to add modules

                N 1 Reply Last reply Oct 17, 2017, 8:40 PM Reply Quote 0
                • N Offline
                  noorm91 @Mykle1
                  last edited by Oct 17, 2017, 8:40 PM

                  @Mykle1
                  The MM autostarts when booting up the Pi, what’s the command you use to apply/run the config.js right after you save it?

                  M 1 Reply Last reply Oct 17, 2017, 9:04 PM Reply Quote 0
                  • M Offline
                    Mykle1 Project Sponsor Module Developer @noorm91
                    last edited by Oct 17, 2017, 9:04 PM

                    @noorm91 said in How to MANUALLY install MM on your Pi. For absolute beginners.:

                    The MM autostarts when booting up the Pi, what’s the command you use to apply/run the config.js right after you save it?

                    When the mirror is running, press your Alt key to drop down a menu bar. Choose Minimize from the Window menu. Assuming pm2 is autostarting for you, open a terminal and type pm2 stop mm to quit MM.

                    You can start MM after saving your config in the terminal by typing pm2 start mm, or if MM is still running, from the drop down menu, View, Reload

                    Create a working config
                    How to add modules

                    1 Reply Last reply Reply Quote 1
                    • F Offline
                      fox
                      last edited by Oct 19, 2017, 5:43 PM

                      The problem was the module watchdog !
                      Also with fresh install it throws errors with the newest update.

                      Fixed for me. Thank you @Mykle1 !!!

                      Issues With MMM-WatchDog known?

                      https://forum.magicmirror.builders/post/29827

                      Useful for PIR-Sensor: https://forum.magicmirror.builders/post/21299

                      M 1 Reply Last reply Oct 19, 2017, 7:46 PM Reply Quote 2
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      1 / 3
                      • First post
                        1/27
                        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