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 287.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 Do not disturb
      sdetweil @bhepler
      last edited by

      @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
      • bheplerB Offline
        bhepler Module Developer
        last edited by

        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 Reply Quote 0
        • S Do not disturb
          sdetweil @bhepler
          last edited by

          @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

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

            @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 Reply Quote 0
            • S Do not disturb
              sdetweil @bhepler
              last edited by

              @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

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

                @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 Reply Quote 0
                • S Do not disturb
                  sdetweil @bhepler
                  last edited by

                  @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 Reply Quote 0
                  • S Do not disturb
                    sdetweil @sdetweil
                    last edited by

                    @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
                    • S Do not disturb
                      sdetweil @bhepler
                      last edited by

                      @bhepler could you retest the installer? just rename your current MagicMirror folder out of the way… thanks

                      course u have pm2 already … never mind

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

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

                        @sdetweil - No worries. I have a spare Pi and a SD card I can use. I’ll get it cranked out tonight. I’ll get you that info.

                        S 1 Reply Last reply Reply Quote 0
                        • S Do not disturb
                          sdetweil @bhepler
                          last edited by

                          @bhepler thanks… i got some new sd cards today, so I will test too.

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

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

                            @sdetweil - Brand new Buster installation on a RPi 3B+. Installation script worked as expected.

                            I had trouble with pm2 on my existing mirror too. I ended up upgrading to the latest pm2 in order to get it to remember to start on boot.

                            At this point, I think your script is handling it properly. Thanks for the quick replies!

                            S 1 Reply Last reply Reply Quote 0
                            • S Do not disturb
                              sdetweil @bhepler
                              last edited by

                              @bhepler oh, there is a script for just pm2 as well.

                              Thx for feedback.

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              1 Reply Last reply Reply Quote 0
                              • N Offline
                                NathTheDude
                                last edited by NathTheDude

                                Hey sam (@sdetweil ),

                                Thanks for this, made my life a lot easier.

                                So, I just did a new build with Buster on a RPI Zero W. All looked good and I have configured mm2 to start on reboot of the Pi. I am start/stop/restart and check the status of mm2 and is looks to be working, the mm2 logs are also good with no error logs.

                                The problem I am facing is that the magicMirror page via chromium seems to try and load (white screen which changes to a pure black screen) however seems to fail/crash and go back to the Raspbian desktop.

                                This happens when I reboot the pi and also when I manually try to start/restart the mm2 service.

                                Anything you think I am missing?

                                Thanks

                                S 1 Reply Last reply Reply Quote 0
                                • S Do not disturb
                                  sdetweil @NathTheDude
                                  last edited by

                                  @NathTheDude if u start the chromium browser from the desktop does it work?

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  1 Reply Last reply Reply Quote 0
                                  • S Do not disturb
                                    sdetweil
                                    last edited by

                                    U may need to increase the swap space. Pi 0 has very little memory.

                                    https://wpitchoune.net/tricks/raspberry_pi3_increase_swap_size.html

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    1 Reply Last reply Reply Quote 0
                                    • N Offline
                                      NathTheDude
                                      last edited by

                                      Thanks @sdetweil , after a couple of reboots this is now working as expected. Not sure what the issue was, I will have to keep an eye on it. Thanks for the link on swap space, I will also look in that direction if I have any more of the same issues.

                                      S 1 Reply Last reply Reply Quote 0
                                      • S Do not disturb
                                        sdetweil @NathTheDude
                                        last edited by

                                        @NathTheDude ok… let me know if there are any other issues…

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        S N 2 Replies Last reply Reply Quote 0
                                        • S Do not disturb
                                          sdetweil @sdetweil
                                          last edited by

                                          @sdetweil this installer script is now the script in 2.10…

                                          I will close/lock this topic in a couple days

                                          Sam

                                          How to add modules

                                          learning how to use browser developers window for css changes

                                          1 Reply Last reply Reply Quote 1
                                          • J Offline
                                            jorgnyg
                                            last edited by

                                            Should I install electron with --arch=armv7l ?

                                            J 1 Reply 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
                                            • 6
                                            • 7
                                            • 8
                                            • 9
                                            • 10
                                            • 11
                                            • 8 / 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