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 Offline
      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 Offline
        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 Offline
            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 Offline
                  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