Read the statement by Michael Teeuw here.
Update MMM
-
HI all I’m getting the following message on my MM screen “MagicMirror2 update available” then underneath “The current installation is 2994 comments behind on the master branch”
Anyone know how to resolve this issue?
-
@Peter-Leemon run my update script from here
-
@sdetweil run the first script?
-
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… -
@sdetweil said in Update MMM:
bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)”
sorry a noob here do i run this in terminal?
-
@Peter-Leemon yes, stop MM first of course
-
when I paste bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh) i get no such file or directory
-
@Peter-Leemon dang forum, change the " to wrong character… copy/paste it again
need the trailing quote too
-
pi@raspberrypi:~ $ bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)”
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.logupgrading from version 2.10.1 to 2.11.0
fetching latest revisions
there are 3 local files that are different than the master repomodules/default/calendar/calendar.js
modules/default/compliments/compliments.js
package-lock.jsonany *-lock.json files do not need to be saved
do you want to save these files for later (Y/n)?y
processing dependency changes for active modules with package.json filesprocessing for module MMM-NOAA3 please wait
skipped processing for MMM-NOAA3, doing test run
processing complete for module MMM-NOAA3processing for module MMM-EARTH please wait
skipped processing for MMM-EARTH, doing test run
processing complete for module MMM-EARTHprocessing for module MMM-GooglePhotos please wait
skipped processing for MMM-GooglePhotos, doing test run
processing complete for module MMM-GooglePhotostest run, restoring files stashed
pi@raspberrypi:~ $Is this correct?
-
@Peter-Leemon said in Update MMM:
doing test run = true
yes, now add ‘apply’’
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)" applyBUT
there are 3 local files that are different than the master repo
modules/default/calendar/calendar.js
modules/default/compliments/compliments.js
package-lock.jsonany *-lock.json files do not need to be saved
I assume u might want to save those changed files…
-
yes that worked thank you, just have figure out how to update google photos to update now.
-
have just done a git pull and npm install in MMM-GooglePhotos module now the MM has a black screen everything else is working just no images showing
? -
@Peter-Leemon did u npm install in the GooglePhotos folder?
Open the developers window, ctrl-shift-i on the keyboard, then select the console tab and scroll up to see any errors
-
is that in MagicMirror/modules/MMM-GooglePhotos or just in pi@raspberrypi folder?
-
@Peter-Leemon said in Update MMM:
MagicMirror/modules/MMM-GooglePhotos
the dev window is on the MM screen itself…
or start MM with npm start dev and then select the console tab on the MM screen
-
I’ve also noticed the Calendar doesnt update any events added either in apple calendar or google calendar
-
@Peter-Leemon i will have to check that tomorrow… I haven’t done any testing except to update my install and update scripts for v 2.11.
-
Thank you atm I’m doing a backup of the SD card as separate and i might put an pre updated copy back on and run that until then.
Thank you
-
hello! I have the same problem. I am going to test the command to check. Updat in progress. I will see if it’s okay after updating. Thanks for your help!
-
doesn t work… already black screen… I have PIR Sensor too
I did this :
login as: pi pi@192.168.1.18's password: Linux raspberrypi 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Apr 2 09:55:59 2020 from 192.168.1.11 pi@raspberrypi:~ $ cd MagicMirror/ pi@raspberrypi:~/MagicMirror $ cd $MIRROR_APP_PATH/ && git checkout modules/node_modules/node_helper/index.js fatal: ni ceci ni aucun de ses répertoires parents n'est un dépôt git : .git pi@raspberrypi:/ $ git checkout modules/node_modules/node_helper/index.js fatal: ni ceci ni aucun de ses répertoires parents n'est un dépôt git : .git pi@raspberrypi:/ $ pi@raspberrypi:/ $ login as: pi pi@192.168.1.18's password: Linux raspberrypi 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Apr 2 10:20:36 2020 pi@raspberrypi:~ $ pi@raspberrypi:~ $ cd MagicMirror/ pi@raspberrypi:~/MagicMirror $ npm stop npm ERR! missing script: stop npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2020-04-02T08_23_06_473Z-debug.log pi@raspberrypi:~/MagicMirror $ pm2 stop mm [PM2][ERROR] Process or Namespace mm not found pi@raspberrypi:~/MagicMirror $ pm2 stop error: missing required argument `id|name|namespace|all|json|stdin' pi@raspberrypi:~/MagicMirror $ pm2 stop MagicMirror [PM2] Applying action stopProcessId on app [MagicMirror](ids: 0) [PM2] [MagicMirror](0) ✓ ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐ │ id │ name │ mode │ ↺ │ status │ cpu │ memory │ ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤ │ 0 │ MagicMirror │ fork │ 0 │ stopped │ 0% │ 0b │ └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘ pi@raspberrypi:~/MagicMirror $ bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)” #: “#!/bin/bash: Aucun fichier ou dossier de ce type pi@raspberrypi:~/MagicMirror $ cd .. pi@raspberrypi:~ $ bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)” #: “#!/bin/bash: Aucun fichier ou dossier de ce type pi@raspberrypi:~ $ bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)" $$\ $$\ $$\ $$\ $$\ $$\ $$$$$$\ $$$\ $$$ | \__| $$$\ $$$ |\__| $$ __$$\ $$$$\ $$$$ | $$$$$$\ $$$$$$\ $$\ $$$$$$$\ $$$$\ $$$$ |$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ \__/ $$ | $$\$$\$$ $$ | \____$$\ $$ __$$\ $$ |$$ _____|$$\$$\$$ $$ |$$ |$$ __$$\ $$ __$$\ $$ __$$\ $$ __$$\ $$$$$$ | $$ \$$$ $$ | $$$$$$$ |$$ / $$ |$$ |$$ / $$ \$$$ $$ |$$ |$$ | \__|$$ | \__|$$ / $$ |$$ | \__|$$ ____/ $$ |\$ /$$ |$$ __$$ |$$ | $$ |$$ |$$ | $$ |\$ /$$ |$$ |$$ | $$ | $$ | $$ |$$ | $$ | $$ | \_/ $$ |\$$$$$$$ |\$$$$$$$ |$$ |\$$$$$$$\ $$ | \_/ $$ |$$ |$$ | $$ | \$$$$$$ |$$ | $$$$$$$$\ \__| \__| \_______| \____$$ |\__| \_______|\__| \__|\__|\__| \__| \______/ \__| \________| $$\ $$ | \$$$$$$ | \______/ install log being saved to /home/pi/install.log Updating packages ... Installing helper tools ... Check current Node installation ... Node currently installed. Checking version number. Minimum Node version: v10.1.0 Installed Node version: v10.15.2 No Node.js upgrade necessary. Check current NPM installation ... NPM currently installed. Checking version number. Minimum npm version: V6.0.0 Installed npm version: V6.13.6 No npm upgrade necessary. It seems like MagicMirror is already installed. To prevent overwriting, the installer will be aborted. Please rename the ~/MagicMirror folder and try again. If you want to upgrade your installation run upgrade-script from the ~/MagicMirror/installers directory. pi@raspberrypi:~ $ bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" 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.11.0 to 2.11.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)?y processing dependency changes for active modules with package.json files processing for module MMM-Selfieshot please wait ---------------------------------- skipped processing for MMM-Selfieshot, doing test run processing complete for module MMM-Selfieshot processing for module MMM-Strava please wait ---------------------------------- skipped processing for MMM-Strava, doing test run processing complete for module MMM-Strava processing for module MMM-PIR-Sensor please wait ---------------------------------- skipped processing for MMM-PIR-Sensor, doing test run processing complete for module MMM-PIR-Sensor processing for module MMM-Spotify please wait ---------------------------------- skipped processing for MMM-Spotify, doing test run processing complete for module MMM-Spotify processing for module MMM-Hotword please wait ---------------------------------- skipped processing for MMM-Hotword, doing test run processing complete for module MMM-Hotword processing for module MMM-AssistantMk2 please wait ---------------------------------- skipped processing for MMM-AssistantMk2, doing test run processing complete for module MMM-AssistantMk2 test run, restoring files stashed pi@raspberrypi:~ $ bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" apply the log will be /home/pi/MagicMirror/installers/upgrade.log No LSB modules are available. doing test run = false update log will be in /home/pi/MagicMirror/installers/upgrade.log local version 2.11.0 already same as master 2.11.0 pi@raspberrypi:~ $ npm start npm ERR! code ENOENT npm ERR! syscall open npm ERR! path /home/pi/package.json npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, open '/home/pi/package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2020-04-02T09_03_45_797Z-debug.log pi@raspberrypi:~ $ sudo reboot pi@raspberrypi:~ $ login as: pi pi@192.168.1.18's password: Linux raspberrypi 4.19.97-v7+ #1294 SMP Thu Jan 30 13:15:58 GMT 2020 armv7l The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Apr 2 11:04:36 2020 pi@raspberrypi:~ $ bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/screensaveroff.sh)" server does not have extension for -dpms option pi@raspberrypi:~ $ pi@raspberrypi:~ $ fixuppm2.sh -bash: fixuppm2.sh : commande introuvable pi@raspberrypi:~ $ pm2 stop mm ^C pi@raspberrypi:~ $ pm2 stop MagicMirror [PM2] Applying action stopProcessId on app [MagicMirror](ids: 0) [PM2] [MagicMirror](0) ✓ ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐ │ id │ name │ mode │ ↺ │ status │ cpu │ memory │ ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤ │ 0 │ MagicMirror │ fork │ 0 │ stopped │ 0% │ 0b │ └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘ pi@raspberrypi:~ $ bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/screensaveroff.sh)" pi@raspberrypi:~ $ pi@raspberrypi:~ $ fixuppm2.sh -bash: fixuppm2.sh : commande introuvable pi@raspberrypi:~ $ bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/screensaveroff.sh)" pi@raspberrypi:~ $ bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/fixuppm2.sh)" the log will be saved in /home/pi/MagicMirror/installers/pm2_setup.log removed 207 packages in 17.491s npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/pm2/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) [PM2][ERROR] File /home/pi/MagicMirror/installers/pm2_MagicMirror.json not found [PM2] Saving current process list... [PM2][WARN] PM2 is not managing any process, skipping save... [PM2][WARN] To force saving use: pm2 save --force pi@raspberrypi:~ $ sudo reboot
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