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.

    new update/upgrade script, ready for testing

    Scheduled Pinned Locked Moved General Discussion
    328 Posts 27 Posters 659.1k Views 24 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
      satsatt
      last edited by

      pi@raspberrypi:~/MagicMirror $ locale
      LANG=de_DE.UTF-8
      LANGUAGE=de_DE.UTF-8
      LC_CTYPE="de_DE.UTF-8"
      LC_NUMERIC="de_DE.UTF-8"
      LC_TIME="de_DE.UTF-8"
      LC_COLLATE="de_DE.UTF-8"
      LC_MONETARY="de_DE.UTF-8"
      LC_MESSAGES="de_DE.UTF-8"
      LC_PAPER="de_DE.UTF-8"
      LC_NAME="de_DE.UTF-8"
      LC_ADDRESS="de_DE.UTF-8"
      LC_TELEPHONE="de_DE.UTF-8"
      LC_MEASUREMENT="de_DE.UTF-8"
      LC_IDENTIFICATION="de_DE.UTF-8"
      LC_ALL=de_DE.UTF-8
      
      
      1 Reply Last reply Reply Quote 0
      • S Offline
        satsatt
        last edited by

        you want git status in english i suppose?

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @satsatt
          last edited by

          @satsatt yes, working on that…

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • S Offline
            satsatt
            last edited by

            I try
            "your branch is regarding to origin/master 2639 commits back and can brought forward
            use git pull to make your local branch actual

            registered changes for Commit
            ( use git reset for deleting from Staging-Area )

            changed: package-lock.json
            changed: vendor/package-lock.json

            files not in version:
            ( use git add for preparing files to commit )

            installers/dumpactivemodules.js

            "

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @satsatt
              last edited by

              @satsatt ok, was gonna ask for this

              alias git='LANGUAGE=en_US.UTF-8 git"
              git status
              unalias git

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • S Offline
                satsatt
                last edited by

                @sdetweil said in new update/upgrade script, ready for testing:

                unalias git

                uh not ok

                pi@raspberrypi:~/MagicMirror $ alias git='LANGUAGE=en_US.UTF-8 git"
                > git status
                > unalias git
                > 
                
                
                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @satsatt
                  last edited by

                  @satsatt sorry, bad paste

                  alias git='LANGUAGE=en_US.UTF-8 git'
                  git status
                  unalias git
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    satsatt
                    last edited by

                    @sdetweil said in new update/upgrade script, ready for testing:

                    git status

                    pi@raspberrypi:~/MagicMirror $ git status
                    On branch master
                    Your branch is behind 'origin/master' by 2639 commits, and can be fast-forwarded.
                      (use "git pull" to update your local branch)
                    Changes to be committed:
                      (use "git reset HEAD <file>..." to unstage)
                    
                    	modified:   package-lock.json
                    	modified:   vendor/package-lock.json
                    
                    Untracked files:
                      (use "git add <file>..." to include in what will be committed)
                    
                    	installers/dumpactivemodules.js
                    
                    
                    
                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @satsatt
                      last edited by

                      @satsatt great!.. thank you… can u try the update script again

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        satsatt
                        last edited by

                        pi@raspberrypi:~/MagicMirror $ bash -c “$(curl -sL https://www.dropbox.com/s/lxzwyzohg61sppu/upgrade-script.sh?dl=0)” apply
                        doing test run = false
                        update log will be in /home/pi/MagicMirror/installers/upgrade.log
                        saving custom.css
                        apply: Zeile 88: alias: git: Nicht gefunden.
                        upgrading from version 2.6.0 to 2.8.0
                        fetching latest revisions

                        error: Ihre lokalen Änderungen in den folgenden Dateien würden durch den Merge
                        überschrieben werden:
                        package-lock.json
                        vendor/package-lock.json
                        Bitte committen oder stashen Sie Ihre Änderungen, bevor sie mergen.
                        Abbruch
                        there were merge errors
                        you should examine and resolve them
                        using the command git log --oneline --decorate
                        de57daa (grafted, HEAD -> master, tag: v2.6.0) Merge pull request #1498 from MichMich/develop
                        restoring custom.css
                        apply: Zeile 256: [: ~=: Zweistelliger (binärer) Operator erwartet.

                        1 Reply Last reply Reply Quote 0
                        • S Offline
                          satsatt
                          last edited by

                          sorry need to be away from terminal for 10h - thank’s alot

                          S 1 Reply Last reply Reply Quote 0
                          • S Offline
                            sdetweil @satsatt
                            last edited by sdetweil

                            @satsatt ok, when u have time , try the script again… thanks SO much for your help

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            1 Reply Last reply Reply Quote 0
                            • BKeyportB Offline
                              BKeyport Module Developer
                              last edited by

                              Love this concept - question though - from what I’ve read (bits and pieces admittedly), it looks like it only handles the main software - could this be expanded to traverse your module directories and update them, so it could be run, say nightly, to check for and apply updates to everything?

                              The "E" in "Javascript" stands for "Easy"

                              S 1 Reply Last reply Reply Quote 0
                              • R Offline
                                rabbit83ka
                                last edited by

                                Hi, great work! I Just used the script to update to 2.9.0 - the only thing I had to do manually was a

                                git reset --hard
                                

                                before running the script (and afterwards restoring my backup of custom.css).

                                S 1 Reply Last reply Reply Quote 0
                                • S Offline
                                  sdetweil @BKeyport
                                  last edited by

                                  @BKeyport it could… it does traverse the modules already, but it currently only does the npm install part (to update to the current runtime dependencies) … but I could extend it easily to check for module updates (like the updatenotifier default module does) , and apply those

                                  i am trying to get this tested so we can get it into the base (and off of my dropbox)

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  BKeyportB 1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    sdetweil @rabbit83ka
                                    last edited by sdetweil

                                    @rabbit83ka u should not have had to do the git reset --hard… please tell me why?

                                    and my script saves and restores custom.css too

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

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

                                      I just gave this a try on my house mirror. I didn’t apply and received the following output:

                                      doing test run = true
                                      update log will be in /home/pi/MagicMirror/installers/upgrade.log
                                      saving custom.css
                                      bash: line 92: [: !=: unary operator expected
                                      upgrading from version 2.8.0 to 2.9.0
                                      fetching latest revisions
                                      there are 1 local files that are different than the master repo
                                      
                                         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 package-lock.json, doing test run
                                      
                                      processing dependency changes for active modules with package.json files
                                      processing for module MMM-MovieListings . please wait
                                      ----------------------------------
                                      skipped processing for MMM-MovieListings, doing test run
                                      processing for module MMM-Ring . please wait
                                      ----------------------------------
                                      skipped processing for MMM-Ring, doing test run
                                      processing for module MMM-DarkSkyForecast . please wait
                                      ----------------------------------
                                      skipped processing for MMM-DarkSkyForecast, doing test run
                                      restoring custom.css
                                      bash: line 260: [: !=: unary operator expected
                                      

                                      This seems wrong. What can I do to help?

                                      S 1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        sdetweil @bhepler
                                        last edited by

                                        @bhepler ok, try again, fixed… assumed locale was set, wasn’t

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

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

                                          @sdetweil I will clearly keep it watched… thanks for the info!

                                          The "E" in "Javascript" stands for "Easy"

                                          1 Reply Last reply Reply Quote 0
                                          • R Offline
                                            rabbit83ka @sdetweil
                                            last edited by

                                            @sdetweil Same error than @satsatt

                                            I had to restore custom.css because the git-reset deleted it (script backed up custom.css correctly).

                                            S 2 Replies 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
                                            • 5
                                            • 16
                                            • 17
                                            • 3 / 17
                                            • 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