A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
J
Best posts made by James
-
RE: MMM-PIR-Sensor - White Screen
@paviro maybe 99% sure. FYI what I did yesterday as follows:
- Format & rewrite the sd card,
- Boot and run
sudo apt-get update & upgrade & reboot
, - Install MagicMirror2 with the bash command,
git
MMM-PIR-Sensor in modules folder and runnpm install
in MMM-PIR-Sensor folder as well as useradd command,- Add code in
config.js
with
{ module: 'MMM-PIR-Sensor', config: { sensorPIN: 4 } },
- After rebooting, run MM with pm2 and shows “White Screen”, I checked the pm2 error log shows something like “Expected 49, got 48” as before,
- Run
npm rebuild --runtime=electron --target=1.3.4 --disturl=https://atom.io/download/atom-shell --abi=49
in the MMM-PIR-Sensor folder, - Run
pm2 restart mm
and it works.
I found there is another issue when a rebooting finished and MM runs automaticly with pm2, MMM-PIR-Sensor will not work(screen always on) until the sensor captured a motion.