/MagicMirror $ npm start
magicmirror@2.20.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js
/tmp/start-adaafac7.sh: 1: /tmp/start-adaafac7.sh: ./node_modules/.bin/electron: not found
pi@raspberrypi:~/MagicMirror $
/MagicMirror $ npm start
magicmirror@2.20.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js
/tmp/start-adaafac7.sh: 1: /tmp/start-adaafac7.sh: ./node_modules/.bin/electron: not found
pi@raspberrypi:~/MagicMirror $
pi@raspberrypi:~/MagicMirror $ npm stop all
npm ERR! Missing script: “stop”
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2022-08-05T23_00_11_817Z-debug-0.log
pi@raspberrypi:~/MagicMirror $
I don’t think I did anything to cause it but all of a sudden when I do pm2 start MagicMirror it says that pm2 has started MagicMirror but that is as far as it gets. The panel says status is online and memory using 2.6mb but the mirror never starts. I’ve rebooted, I’ve shutdown and started from scratch and nothing seems to help… I tried to do a search on not starting but must not have asked the right question.
Anyone ever have this problem?
Dennis
@N6NG I get an error from the line that looks like this.
on_event_start /home/pi/MagicMirror/modules/MMM-SleepWake/external_motion started
which is line 47 which shows this error.
[ERROR] Line 47 column 19: Parsing error: Unexpected token /
That’s the / in front of the home/pi/MagicMirror…
Can’t see why that would be a problem.
@N6NG I also don’t understand how this would keep the Monitor from turning off after 15 minutes? I need to turn off the auto off somehow.
@N6NG I have the MMM-SleepWake installed. I have the config.js installed. Now I have to tie it to the MMM-PIR-Sensor-Lite module.
I’ve got the 2lines in the config.js
But what is in place of the /external_motion start and end from the PIR module?
on_event_start /home/pi/MagicMirror/modules/MMM-SleepWake/external_motion started
on_event_end /home/pi/MagicMirror/modules/MMM-SleepWake/external_motion ended