• 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.

Trouble getting it to start

Scheduled Pinned Locked Moved Troubleshooting
23 Posts 5 Posters 15.0k Views 4 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 @in_a_days
    last edited by Jan 17, 2017, 9:11 PM

    @in_a_days

    That is weird! If you are able to launch the mirror software with
    DISPLAY=:0 npm start
    PM2 should definitely work :(

    Don’t forget, you told him to re-flash his SD card. That would have wiped the PM2 installation.

    @PhilsterM9 You’re almost there. Your original mistake was that you told PM2 to run the mm.sh script twice (and then 3 times). Let’s make sure that you have PM2 installed, now that you’ve reflashed your SD card.

    Run this: pm2 status. If you get the table, great. Let us know how many entries are in it. If you get the No command 'pm2' found, did you mean: line, go back to the tutorial and follow the steps again, starting with sudo npm install -g pm2.

    If you do have more than one line in the table when you check PM2 status, you’ll want to remove all of the extraneous ones. pm2 delete 1 and possibly pm2 delete 2 if there are three entries. Get it to where there is only one entry in the list when you run pm2 status. Then save the pm2 state: pm2 save.

    Okay, once you have saved the pm2 configuration, pm2 will make sure that your mirror is running. You don’t need to tell it start ever again. Hopefully. You should be able to reboot your Pi and then run pm2 status and see that the mm process is running all by itself.

    I 1 Reply Last reply Jan 17, 2017, 9:35 PM Reply Quote 1
    • I Offline
      in_a_days @bhepler
      last edited by Jan 17, 2017, 9:35 PM

      @bhepler

      Most definitely! I inferred from

      “even though I did all the pm2 steps”

      that @PhilsterM9 had gone through the pm2 install process after re-flash - but your directions should definitely help cross the finish line.

      What ship would bear me ever back across so wide a Sea?

      1 Reply Last reply Reply Quote 0
      • P Offline
        PhilsterM9 @in_a_days
        last edited by Jan 18, 2017, 3:25 AM

        @in_a_days So I did what @bhepler had written and now works on boot! Now I can’t access the terminal to add some configurations? How do I get around this?

        J I 2 Replies Last reply Jan 18, 2017, 3:52 AM Reply Quote 0
        • J Offline
          johaness_00 @PhilsterM9
          last edited by Jan 18, 2017, 3:52 AM

          @PhilsterM9 press the alt key. It will bring up the menu. Hit file, quit then open terminal and enter pm2 stop mm. Sometimes it takes more than once to get it typed in and hit enter before mm starts up again

          1 Reply Last reply Reply Quote 0
          • I Offline
            in_a_days @PhilsterM9
            last edited by in_a_days Jan 18, 2017, 4:02 AM Jan 18, 2017, 3:54 AM

            @PhilsterM9

            If you have a keyboard plugged into your Pi you should be able to use the ‘Windows’ key to pull the start menu up on top of MM, from which you can select Accessories > Terminal. Not sure what the equivalent key would be for a non-Windows system keyboard. You can also Alt + F4 to close the MM program - but you’ll have to act fast because the pm2 software is going to automatically re-load it. Either method should allow you to get into the Terminal.

            After that, as previously suggested

            pm2 stop mm

            will shut down the MM program and stop it from re-loading until your next boot up.

            I suspect most people prefer to access their Terminal over SSH from a different system. It’s pretty easy to enable on your Pi, and though the process varies depending on your OS, it’s pretty easy to figure out. I can give some pointers if you can’t figure it out from available documentation.

            What ship would bear me ever back across so wide a Sea?

            P 2 Replies Last reply Jan 18, 2017, 4:00 AM Reply Quote 0
            • P Offline
              PhilsterM9 @in_a_days
              last edited by Jan 18, 2017, 4:00 AM

              @in_a_days Thank you Thank you Thank you Thank you Thank you

              1 Reply Last reply Reply Quote 0
              • P Offline
                PhilsterM9 @in_a_days
                last edited by Jan 18, 2017, 4:22 AM

                @in_a_days How do I change some of these settings (It looks confusing to me and I’m not sure if there is more to change than just the city name in weather for example)

                B 1 Reply Last reply Jan 19, 2017, 4:22 PM Reply Quote 0
                • B Offline
                  bhepler Module Developer @PhilsterM9
                  last edited by Jan 19, 2017, 4:22 PM

                  @PhilsterM9 You change the settings by modifying the config.js file. Traditionally, you use the nano editor by typing nano ~/MagicMirror/config/config.js.

                  If you go to the GitHub page for MagicMirror, there’s an entire section on configuration.

                  1 Reply Last reply Reply Quote 0
                  • 1
                  • 2
                  • 3
                  • 2 / 3
                  2 / 3
                  • First post
                    20/23
                    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