Read the statement by Michael Teeuw here.
How to update.
-
How to Update V 2.0.3
Thanks so much -
From your terminal:
cd ~\MagicMirror git pull -
Iām glad Iām not the only one that needs it spelt out for meā¦
Glad you asked first lol
-
Not to be mister smartypants ⦠but itās mentioned in the Readme ⦠;)
https://github.com/MichMich/MagicMirror#updating-you-magicmirror -
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.
-
Sorry, I meant that I didnt want to be mister smartypants. š
-
@MichMich, but ⦠you are! :)
-
@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-magicmirrorfinally a link to the readme :P
-
@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. -
@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
-
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 -
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 -
@izanbard Thank you for this! :)
-
Thank You, awesome !
-
This post is deleted! -
@izanbard Hello, added a restart of the mirror (via pm2) if an npm install has been done and also added āāproductionā to the npm install command. Sometimes the module-developer have lotās of extra stuff added in the package list just for developing. :)
Iām currently now running this script via CRON every night. :)#!/usr/bin/env bash updated=false cd /home/pi/MagicMirror echo "Checking for MagicMirror updates." git fetch if [ $(git rev-parse HEAD) != $(git rev-parse @{u}) ] then echo "Found, updating..." git pull npm install updated=true echo "Update done." else echo "No update needed." fi echo "" cd modules for directory in *; do if [[ -d ${directory} && ${directory} != "node_modules" && ${directory} != "default" ]]; then echo "Checking for ${directory} updates." cd ${directory} git fetch if [ $(git rev-parse HEAD) != $(git rev-parse @{u}) ]; then echo "Found, updating ${directory}..." git pull if [[ -e "package.json" && -f "package.json" ]]; then echo "package.joson changed for ${directory}, installing..." npm install --production updated=true echo "Update done." fi else echo "No update needed." fi echo "" cd .. fi done if $updated; then echo "Restart of MM needed, restarting now." pm2 restart mm fi echo "All done. :)" -
@izanbard Thank you!!
-
thank u!
-
pi@akpi:~/MagicMirror $ sudo git pull && npm install
Updating 8010e62ā¦5c41e24
error: Your local changes to the following files would be overwritten by merge:
css/main.css
Please, commit your changes or stash them before you can merge.
Aborting
Any ideas⦠-
This post is deleted!
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