@sdetweil Sam! You are in hospital :face_with_head-bandage:
So you have to focus on yourself!
Wish you all the best and fast recovery!
Hope you are back soon!
Read the statement by Michael Teeuw here.
Posts
-
RE: new update/upgrade script, ready for testing
-
RE: new update/upgrade script, ready for testing
@sdetweil said in new update/upgrade script, ready for testing:
npm run server
I get this:
pi@RasPiZeroW:~ $ cd MagicMirror/ pi@RasPiZeroW:~/MagicMirror $ npm run server > magicmirror@2.12.0 server /home/pi/MagicMirror > node ./serveronly internal/modules/cjs/loader.js:638 throw err; ^ Error: Cannot find module 'proxy-addr' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object.<anonymous> (/home/pi/MagicMirror/node_modules/express/lib/utils.js:22:17) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! magicmirror@2.12.0 server: `node ./serveronly` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the magicmirror@2.12.0 server script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2020-07-03T13_58_48_248Z-debug.log -
RE: new update/upgrade script, ready for testing
@sdetweil said in new update/upgrade script, ready for testing:
space in front of the ./,
That is also not helpful
@sdetweil said in new update/upgrade script, ready for testing:
stop everything
How to stop everything?
Is this enough?pm2 stop 0 -
RE: new update/upgrade script, ready for testing
@sdetweil it dose not work
if I change to
"start": " ./run-start.sh",also as
"start": "DISPLAY=\"${DISPLAY:=:0}\" ./run-start.sh",I get an web explorer showing an error
ERR_CONNECTION_REFUSEDlocalhos refused connection.
-
RE: new update/upgrade script, ready for testing
here is
pi@RasPiZeroW:~/MagicMirror $ pm2 logs --lines=100 [TAILING] Tailing last 100 lines for [all] processes (change the value with --lines option) /home/pi/.pm2/pm2.log last 100 lines: PM2 | 2020-07-03T13:25:00: PM2 log: App [MagicMirror:0] exited with code [1] via signal [SIGINT] PM2 | 2020-07-03T13:25:00: PM2 log: App [MagicMirror:0] starting in -fork mode- PM2 | 2020-07-03T13:25:01: PM2 log: App [MagicMirror:0] online : : PM2 | 2020-07-03T13:28:36: PM2 log: [Watch] Stop watching MagicMirror PM2 | 2020-07-03T13:28:36: PM2 log: Stopping app:MagicMirror id:0 PM2 | 2020-07-03T13:28:37: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT] PM2 | 2020-07-03T13:28:37: PM2 log: pid=29676 msg=process killed/home/pi/.pm2/logs/MagicMirror-out.log last 100 lines: 0|MagicMir | 0|MagicMir | > magicmirror@2.12.0 start /home/pi/MagicMirror 0|MagicMir | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js 0|MagicMir | 0|MagicMir | : :/home/pi/.pm2/logs/MagicMirror-error.log last 100 lines: 0|MagicMir | npm ERR! errno ENOENT 0|MagicMir | npm ERR! magicmirror@2.12.0 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js` 0|MagicMir | npm ERR! spawn ENOENT 0|MagicMir | npm ERR! 0|MagicMir | npm ERR! Failed at the magicmirror@2.12.0 start script. 0|MagicMir | npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 0|MagicMir | 0|MagicMir | npm ERR! A complete log of this run can be found in: 0|MagicMir | npm ERR! /home/pi/.npm/_logs/2020-07-03T11_27_39_492Z-debug.log 0|MagicMir | sh: 1: ./node_modules/.bin/electron: not found 0|MagicMir | npm ERR! code ELIFECYCLE 0|MagicMir | npm ERR! syscall spawn 0|MagicMir | npm ERR! file sh 0|MagicMir | npm ERR! errno ENOENT 0|MagicMir | npm ERR! magicmirror@2.12.0 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js` 0|MagicMir | npm ERR! spawn ENOENT 0|MagicMir | npm ERR! 0|MagicMir | npm ERR! Failed at the magicmirror@2.12.0 start script. 0|MagicMir | npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 0|MagicMir | : : 0|MagicMir | 0|MagicMir | npm ERR! A complete log of this run can be found in: 0|MagicMir | npm ERR! /home/pi/.npm/_logs/2020-07-03T11_28_26_351Z-debug.log -
RE: new update/upgrade script, ready for testing
@sdetweil
Hi Sam! I run your update script an my Pi0
Seems it works fine :ok_hand: but my screen show up only the standard Raspian Desktop :crying_face:pm2 restart MagicMirrorlooks good
[PM2] Applying action restartProcessId on app [MagicMirror](ids: 0) [PM2] [MagicMirror](0) ✓ ┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐ │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │ ├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤ │ 0 │ MagicMirror │ default │ 2.12.0 │ fork │ 19770 │ 0s │ 122… │ online │ 0% │ 2.5mb │ pi │ enabled │ └─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘what is I’m doing wrong?
Many thanks!!!
-
RE: updated installer script available for testing
:thumbs_up: you are right, Sam!
-
different screen resolution
Hi guys,
I startet right now with my experimental MagicMirror.
I took an old LCD, an Pi0 and brought up my configuration of an alright running MM.Now, as I have different screen resolution I have to tune my custom.css and perhaps the modules in use.
My question is:
Is there a possibility, that MM swiches on the base of the connected screen
a. different costum.css (expl. custom.4x3-1024x768, custom.XxY-1680x105, …) or
b. different sections within a custom.cssThat would give a possibility maintaining only one (set of) custom.css, don’t matter the display connectet to MM
Additional I would like to do same with config.js on base of connectes screen.
Any ideas?
-
RE: updated installer script available for testing
-
RE: updated installer script available for testing
@sdetweil Hey Sam
After a longer while absense, I just took your installation script for a new installation on an Pi0.
It worked staright foreward :flexed_biceps:You made such a great job:ok_hand:! Many thanks!
One short question came just up.
I get a message on my Mirror, that Chromium can’t get updated.
As I have no keybord connected I don’t know how to update and get rid of this message-window -
RE: Additional information in calendar (default module)
Many thanks for your replies!
I will try it out over net week and will report back. -
RE: Additional information in calendar (default module)
Many thanks for your replies!
I will try it out over net week and will report back. -
Additional information in calendar (default module)
All,
I use default calendar to display the garbage removal times for the different as Bio, Paper, Waste…What I need additional, is per week or month additional static information, which floor is responsible to get the trash barrel in front of the street.
Exp.:
carlendarweek 1 - floor1
carlendarweek 2 - floor2
carlendarweek 3 - floor1
:
or:
January - floor1
February - floor2
: -
RE: fail to update Todoist
@sdetweil you are right - thanks again.
That was the workaround cleaning up the header which shows the undefined in front of the city ;) -
RE: fail to update Todoist
:smiling_face_with_sunglasses: how to get it makred as solved?
-
RE: fail to update Todoist
Thanks that works fine :smiling_face_with_open_mouth_closed_eyes:
Other strange thing, meanwhile I got asked to update whole MM and I did.
I had 2.10.0 run and got these output :confounded_face: upgrading from version 2.9.0 to 2.10.1bash -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 saving custom.css upgrading from version 2.9.0 to 2.10.1 fetching latest revisions there are 4 local files that are different than the master repo modules/default/weatherforecast/weatherforecast.js package-lock.json vendor/package-lock.json vendor/vendor.js any *-lock.json files do not need to be saved do you want to save these files for later (Y/n)?y updating MagicMirror runtime, please wait npm WARN deprecated @types/vfile-message@2.0.0: This is a stub types definition. vfile-message provides its own type definitions, so you do not need this installed. > core-js@2.6.11 postinstall /home/pi/MagicMirror/node_modules/core-js > node -e "try{require('./postinstall')}catch(e){}" Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: > https://opencollective.com/core-js > https://www.patreon.com/zloirock Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) > console-stamp@0.2.9 postinstall /home/pi/MagicMirror/node_modules/console-stamp > node ./msg.js Attention Console-stamp version 3.0.0 Release Candidate is out. Install by using the tag '@next'. NB: Breaking changes. For more details goto: https://www.npmjs.com/package/console-stamp/v/next > electron@3.1.13 postinstall /home/pi/MagicMirror/node_modules/electron > node install.js Downloading tmp-13054-1-SHASUMS256.txt-3.1.13 [============================================>] 100.0% of 4.79 kB (4.79 kB/s) > magicmirror@2.10.1 install /home/pi/MagicMirror > cd vendor && npm install npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) removed 3 packages and audited 220 packages in 18.516s found 5 vulnerabilities (4 low, 1 high) run `npm audit fix` to fix them, or `npm audit` for details > magicmirror@2.10.1 postinstall /home/pi/MagicMirror > sh untrack-css.sh && sh installers/postinstall/postinstall.sh && npm run install-fonts MagicMirror installation successful! > magicmirror@2.10.1 install-fonts /home/pi/MagicMirror > cd fonts && npm install audited 1 package in 13.139s found 0 vulnerabilities npm WARN grunt-stylelint@0.13.0 requires a peer of stylelint@^12.0.0 but none is installed. You must install peer dependencies yourself. added 196 packages from 191 contributors, removed 248 packages, updated 268 packages and audited 2766 packages in 1036.068s found 0 vulnerabilities processing dependency changes for active modules with package.json files processing for module MMM-Carousel please wait ---------------------------------- audited 859 packages in 28.488s found 6 vulnerabilities (1 moderate, 5 high) run `npm audit fix` to fix them, or `npm audit` for details processing complete for module MMM-Carousel processing for module MMM-Todoist please wait ---------------------------------- audited 63 packages in 5.206s found 0 vulnerabilities processing complete for module MMM-Todoist processing for module MMM-PublicTransportHafas please wait ---------------------------------- audited 41 packages in 3.315s found 0 vulnerabilities processing complete for module MMM-PublicTransportHafas processing for module MMM-PublicTransportHafas please wait ---------------------------------- audited 41 packages in 3.798s found 0 vulnerabilities processing complete for module MMM-PublicTransportHafas processing for module MMM-PublicTransportHafas please wait ---------------------------------- audited 41 packages in 3s found 0 vulnerabilities processing complete for module MMM-PublicTransportHafas restoring custom.css we stashed a set of files that appear changed from the latest repo versions. you should review them see installers/stashed_files for the list you can use git checkout stash@{0} -- filename to extract one file from the stash or git stash pop to restore them all WARNING.. WARNING.. either will overlay the file just installed by the update WARNING..Over all I can close this thread
@sdetweil Thanks fpor your fast help
-
fail to update Todoist
All, my mirror ask for update Todoist so trying
cd MagicMirror/modules/MMM-Todoist/ git pull && npm installand I get the failure
Aktualisiere 0b27f87..f9bedb8 error: Ihre lokalen Änderungen in den folgenden Dateien würden durch den Merge überschrieben werden: package-lock.json Bitte committen oder stashen Sie Ihre Änderungen, bevor Sie mergen. Abbruchmeans my local changes in package-lock.json would be overwritten in case of update.
I can’t remember to change anything :confounded_face:How to fix it please?
-
RE: Update troubles. Again.
-
RE: new update/upgrade script, ready for testing
@sdetweil said in new update/upgrade script, ready for testing:
the 1st post of this topic has the commands
it works :thumbs_up:
Many thanks AGAIN Sam! -
RE: new update/upgrade script, ready for testing
@sdetweil said in new update/upgrade script, ready for testing:
See
https://forum.magicmirror.builders/topic/10859/new-update-upgrade-script-ready-for-testingSam, your link is looping or I’m wrong.
Can you please provide the link to the right script again? Sorry I’m confused and not able to update the MM.