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

How to update.

Scheduled Pinned Locked Moved Tutorials
35 Posts 21 Posters 89.9k Views 20 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.
  • P Offline
    Phate @MichMich
    last edited by Jul 15, 2016, 5:41 PM

    @MichMich

    Lol sorry. Wasn’t trying to be. More point out my inepetness. Lol

    Linux is still somewhat new to me. Always looking up some command or other.

    1 Reply Last reply Reply Quote 0
    • M Offline
      MichMich Admin
      last edited by Jul 15, 2016, 6:21 PM

      Sorry, I meant that I didnt want to be mister smartypants. 😁

      K 1 Reply Last reply Jul 15, 2016, 6:45 PM Reply Quote 1
      • K Offline
        KirAsh4 Moderator @MichMich
        last edited by Jul 15, 2016, 6:45 PM

        @MichMich, but … you are! :)

        A Life? Cool! Where can I download one of those from?

        1 Reply Last reply Reply Quote 2
        • ? Offline
          A Former User @MichMich
          last edited by Oct 24, 2016, 6:40 AM

          @MichMich said in How to update.:

          Not to be mister smartypants … but it’s mentioned in the Readme … ;)
          https://github.com/MichMich/MagicMirror#updating-you-magicmirror

          finally a link to the readme :P

          B 1 Reply Last reply Oct 25, 2016, 4:31 PM Reply Quote 0
          • B Offline
            bhepler Module Developer @Guest
            last edited by Oct 25, 2016, 4:31 PM

            @wjdw87 The readme.md is also downloaded with the MirrorMirror code when you run the installation command. You’ll find it on your Pi at ~/MagicMirror/README.md.

            ? 1 Reply Last reply Oct 25, 2016, 4:36 PM Reply Quote 0
            • ? Offline
              A Former User @bhepler
              last edited by Oct 25, 2016, 4:36 PM

              @bhepler said in How to update.:

              @wjdw87 The readme.md is also downloaded with the MirrorMirror code when you run the installation command. You’ll find it on your Pi at ~/MagicMirror/README.md.

              thanks

              1 Reply Last reply Reply Quote 0
              • B Offline
                Binog
                last edited by Feb 12, 2017, 4:38 PM

                But is there a way (a sh-script) to update MM and all (!) of the installed (different) modules in a batch. I now do have to go through all the directories recursively. That takes lots of time and is quite annoying. Any idea?
                Thx Jimmy

                1 Reply Last reply Reply Quote 0
                • I Offline
                  izanbard
                  last edited by izanbard Feb 14, 2017, 10:29 AM Feb 14, 2017, 10:22 AM

                  I use this script, which comes with no guarantee:

                   #!/usr/bin/env bash
                  
                  cd /home/pi/MagicMirror
                  echo "######### CHECKING MAGIC MIRROR ##########"
                  git fetch
                  if [ $(git rev-parse HEAD) != $(git rev-parse @{u}) ]
                  then
                      echo "######### UPGRADING MAGIC MIRROR #########"
                      git pull
                      npm install
                  else
                      echo "######## NO UPGRADE REQUIRED #########"
                  fi
                  echo ""
                  
                  cd modules
                  
                  for directory in *; do
                      if [[ -d ${directory} && ${directory} != "node_modules" && ${directory} != "default" ]]; then
                          echo "######### CHECKING ${directory} ##########"
                          cd ${directory}
                          git fetch
                          if [ $(git rev-parse HEAD) != $(git rev-parse @{u}) ]; then
                              echo "######### UPGRADING ${directory} #########"
                              git pull
                              if [[ -e "package.json" && -f "package.json" ]]; then
                                  npm install
                              fi
                          else
                              echo "######## NO UPGRADE REQUIRED #########"
                          fi
                          echo ""
                          cd ..
                      fi
                  done
                  
                  S J R U 6 Replies Last reply Feb 14, 2017, 5:16 PM Reply Quote 4
                  • S Offline
                    Snille Module Developer @izanbard
                    last edited by Feb 14, 2017, 5:16 PM

                    @izanbard Thank you for this! :)

                    If you cant find it, make it and share it!
                    Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      Binog
                      last edited by Feb 14, 2017, 5:49 PM

                      Thank You, awesome !

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 1 / 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