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

updated installer script available for testing

Scheduled Pinned Locked Moved Solved Troubleshooting
211 Posts 18 Posters 211.2k Views 19 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
    swvalenti Project Sponsor
    last edited by Nov 23, 2019, 6:52 PM

    Thanks Sam

    1 Reply Last reply Reply Quote 0
    • B Offline
      bhepler Module Developer
      last edited by Nov 25, 2019, 1:07 AM

      Huh. I just tried it on a fresh Buster install on a RPI 3B+ and PM2 failed to install correctly. It seems to be a permissions issue.

      S 1 Reply Last reply Nov 25, 2019, 1:20 AM Reply Quote 0
      • S Away
        sdetweil @bhepler
        last edited by Nov 25, 2019, 1:20 AM

        @bhepler show me the log please

        ~/install.log

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • B Offline
          bhepler Module Developer
          last edited by Nov 25, 2019, 1:40 AM

          It’s not terribly illuminating.

          install and setup pm2
          pm2 not installed, installing
          pm2 install result
          get the pm2 platform specific startup command
          startup command =
          pm2 startup command done
          configure the pm2 config file for MagicMirror
          start MagicMirror via pm2 now
          save MagicMirror pm2 config now
          disable screensaver via lxsession
          
          S 1 Reply Last reply Nov 25, 2019, 1:43 AM Reply Quote 0
          • S Away
            sdetweil @bhepler
            last edited by Nov 25, 2019, 1:43 AM

            @bhepler hang on, I’ll be back home in a few minutes.

            Can u do

            pm2 startup

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            B 1 Reply Last reply Nov 25, 2019, 1:47 AM Reply Quote 0
            • B Offline
              bhepler Module Developer @sdetweil
              last edited by bhepler Nov 25, 2019, 1:47 AM Nov 25, 2019, 1:47 AM

              @sdetweil I already went through the installation procedure to get pm2 installed. That required the npm command to install pm2.

              After the initial script run, pm2 start MagicMirror returned a “bash: pm2: command not found” error. Once I got pm2 installed, getting the script monitored by pm2 was easy enough. At a guess, it’s a problem with using sudo to install pm2, but I’m afraid I don’t have the exact error message.

              S 1 Reply Last reply Nov 25, 2019, 1:52 AM Reply Quote 0
              • S Away
                sdetweil @bhepler
                last edited by Nov 25, 2019, 1:52 AM

                @bhepler what did u have to do for the pm2 install?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                B 1 Reply Last reply Nov 25, 2019, 1:55 AM Reply Quote 0
                • B Offline
                  bhepler Module Developer @sdetweil
                  last edited by Nov 25, 2019, 1:55 AM

                  @sdetweil - I pulled this from the official GitHub page: sudo npm install -g pm2. Once I ran that, I just changed to the ~/MagicMirrors/installers folder and told pm2 to run/maintain it: pm2 start mm.sh

                  S 2 Replies Last reply Nov 25, 2019, 2:01 AM Reply Quote 0
                  • S Away
                    sdetweil @bhepler
                    last edited by Nov 25, 2019, 2:01 AM

                    @bhepler weird… that is that the script does between the two log entries

                    	echo pm2 not installed, installing >>$logfile	
                    	result=$(npm install $up -g pm2)
                    	echo pm2 install result $result >>$logfile
                    

                    $up is for the mac

                    bet it needed sudo…

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    S 1 Reply Last reply Nov 25, 2019, 2:05 AM Reply Quote 0
                    • S Away
                      sdetweil @sdetweil
                      last edited by Nov 25, 2019, 2:05 AM

                      @bhepler

                      I also added to catch the stderr output to the log too

                      	echo pm2 not installed, installing >>$logfile	
                      	result=$(sudo npm install $up -g pm2 2>&1)
                      	echo pm2 install result $result >>$logfile
                      

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 13
                      • 14
                      • 15
                      • 16
                      • 17
                      • 21
                      • 22
                      • 15 / 22
                      15 / 22
                      • First post
                        144/211
                        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