Read the statement by Michael Teeuw here.
MMM-PIR-Sensor restart problem
-
With the same error?
-
Yes with the same error…
-
Now i have disconnect the cables from pir sensor and restart my pi. After reboot my pi my Magicmirror start automaticlly normal and after 2 seconds they got again black. That crazy thing is, I press ctrl+w and the blackscreen goes away and the the Magicmirror works “under” the blackscreen well…
-
@trividar try changing the port in the
config.js
from8080
to8888
and reboot. -
@paviro I have now the same error just with 8888.
-
How do you start your Mirror?
-
with autostart (from wiki).
-
It somehow probably starts multiple instances. Disable the auto start and try to get it working manually first.
-
how can I do that?
-
@trividar
pm2 stop mm
check if it’s running
pm2 list
No instances should be running at that point. then start the MM using
npm start
from your MagicMirror folder from a terminal running on your PI (so not via SSH)