Read the statement by Michael Teeuw here.
MMM-PIR-Sensor restart problem
-
@MichMich Thanks a lot for your help…that was simple;o)!
Now my MagicMirror won’t start on the monitor;o(
I just get a back screen an i couldn’t do anything, my monitor is still working but just black screen and nothing else. Also I can’t quit the MagicMirror with ctrl+w. I can just get access with shh… an If I try to stop magic mirror with pm2 stop mm it stops but the screen is still black. If I use over ssh my laptop and start with npm start the MagicMirror works well. If i disconnect the PIR sensor (hardware) then everything works well.I got this error if i start pm2 logs mm…
You know what I do wrong? (Sorry for all this noob questions) -
EADDRINUSE:::8080
means there is already an app running on port 8080. Probably the app itself which you already started once. If you can’t figure out how to quit it, simply restart your Pi. This should solve it. -
@MichMich Thanks for your fast replay. I restart my Pi several times, but I have always the same problem. My MagicMirror starts normal and after 2 seconds the screen goes black.
-
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).