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.

    Update MMM

    Scheduled Pinned Locked Moved Solved Troubleshooting
    75 Posts 8 Posters 42.0k Views 9 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 @jims
      last edited by

      @jims said in Update MMM:

      local version 2.11.0 already same as master 2.11.0

      if at the same level u have to use ‘force’ as ‘apply’ will stop if the same level

      pi@raspberrypi:~ $ npm start

      always start MM from the ~/MagicMirror folder, not the users home folder

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • M Offline
        minomit
        last edited by

        no update from version 2.10.1 to 2.11.0
        in the folder:

        pi@raspberrypi:~/MagicMirror $ bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)”
        bash: warning: setlocale: LC_ALL: cannot change locale (it_IT)
        the log will be /home/pi/MagicMirror/installers/upgrade.log
        No LSB modules are available.
        doing test run = true
        update log will be in /home/pi/MagicMirror/installers/upgrade.log

        upgrading from version 2.10.1 to 2.11.0
        fetching latest revisions
        bash: line 396: warning: setlocale: LC_ALL: cannot change locale (it_IT)
        bash: line 396: warning: setlocale: LC_ALL: cannot change locale (it_IT)
        there are 2 local files that are different than the master repo

        modules/default/compliments/compliments.js
        package-lock.json

        any *-lock.json files do not need to be saved
        do you want to save these files for later (Y/n)?n
        skipping restore for modules/default/compliments/compliments.js, doing test run
        skipping restore for package-lock.json, doing test run
        processing dependency changes for active modules with package.json files

        processing for module MMM-network-signal please wait

        skipped processing for MMM-network-signal, doing test run
        processing complete for module MMM-network-signal

        processing for module MMM-GooglePhotos please wait

        skipped processing for MMM-GooglePhotos, doing test run
        processing complete for module MMM-GooglePhotos

        processing for module MMM-COVID19-SPARKLINE please wait

        skipped processing for MMM-COVID19-SPARKLINE, doing test run
        processing complete for module MMM-COVID19-SPARKLINE

        processing for module MMM-NowPlayingOnSpotify please wait

        skipped processing for MMM-NowPlayingOnSpotify, doing test run
        processing complete for module MMM-NowPlayingOnSpotify

        processing for module MMM-AlexaControl please wait

        skipped processing for MMM-AlexaControl, doing test run
        processing complete for module MMM-AlexaControl

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

          @minomit said in Update MMM:

          doing test run = true

          upgrade-script.sh will do the git pull and npm install, and refresh npm setup for any modules that might need it
          it should handle all the work… and give you a trial run of all that…
          
          only applying changes if u request them
          
          give it a try this works on Mac as well
          
          bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)"
          no changes are made to the local repo or the working copy
          
          **if you WANT to actually apply the changes do**
          
          bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" apply
          there is a log file (upgrade.log) in the MagicMirror/installers folder…
          

          I built it to TEST first… and not just blindly apply… give u a chance to figure out what to do…

          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 sdetweil

            @minomit

            notice it highlights a file u might want to look out for

            modules/default/compliments/compliments.js

            did u change this? if so, your changes might be lost

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              minomit @sdetweil
              last edited by

              @sdetweil yes, I tried to put the original file too, same problem

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

                @minomit which ‘same problem’

                if u want the original file back

                cd ~/MagicMirror
                git checkout modules/default/compliments/compliments.js
                

                did u do this

                bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" apply
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • M Offline
                  minomit
                  last edited by

                  ok ok, perfect thanks

                  1 Reply Last reply Reply Quote 0
                  • Z Offline
                    Zinkeler
                    last edited by

                    Hello,
                    after update “npm run start” works, but how can i stop MM ? “npm run stop” did not work.
                    Thx

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

                      @Zinkeler typically is npm start, then ctrl-c will stop it… if you use pm2, them pm2 start 0, and pm2 stop 0

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      Z 1 Reply Last reply Reply Quote 0
                      • Z Offline
                        Zinkeler @sdetweil
                        last edited by

                        @sdetweil thx, it works

                        1 Reply Last reply Reply Quote 1
                        • StoffbeuteluweS Offline
                          Stoffbeuteluwe Project Sponsor @sdetweil
                          last edited by

                          @sdetweil Hi, Sam I used you script …it works fine and very easy to upgrade.
                          Thank you very much for your work :folded_hands_medium-light_skin_tone:

                          thedoorsfanaticT 1 Reply Last reply Reply Quote 2
                          • thedoorsfanaticT Offline
                            thedoorsfanatic @Stoffbeuteluwe
                            last edited by

                            @Stoffbeuteluwe
                            Same for me, keep up the good work @sdetweil!

                            My Smart Mirror YouTube playlist: https://www.youtube.com/playlist?list=PL9Iv_4Mvy6o2tnvdhNBstVWNefgUP9ELp

                            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
                            • 3
                            • 4
                            • 4 / 4
                            • 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