Read the statement by Michael Teeuw here.
MMM-PIR-Sensor black screen
-
@Stef with the black screen and a keyboard, press ctrl-shift-i (letter I),
to open the developers console, select the console tab, and scroll up to find errors, red text -
@sdetweil thanks for the headsup - but this does not work… i see the mous coursor though, but that’s it.
I even can’t “cancel” the fullscreen mode of the magic mirror by pressing F11 (usually this brings me back to the desktop) :/ -
I did a little research and stumbled over severall issues on the github page - this one catched my eye, but didn’t brought me any luck…
So, what did i do excatly?
- Install:
cd ~/MagicMirror/modules/ git clone https://github.com/paviro/MMM-PIR-Sensor.git npm install sudo usermod -a -G gpio pi sudo chmod u+s /opt/vc/bin/tvservice && sudo chmod u+s /bin/chvt sudo reboot
- New wiringPI version:
sudo apt-get purge wiringpi hash -r sudo apt-get install git-core cd git clone git://git.drogon.net/wiringPi cd ~/wiringPi git pull origin ./build sudo reboot
- reinstall EPOLL:
cd ~/MagicMirror/modules/ sudo npm install --save-dev electron-rebuild ./node_modules/.bin/electron-rebuild
- recompile Electron:
npm list | grep electron cd ~/MagicMirror/modules/MMM-PIR-Sensor npm rebuild --runtime=electron --target=1.4.5 --disturl=https://atom.io/download/atom-shell --abi=50 sudo reboot
Expectation: It Works now…
Reality: It does not…my Config is:
{ module: 'MMM-PIR-Sensor', config: { sensorPin: 23, powerSaving: true, powerSavingDelay: 120 // 2 Minutes } },
I just excluded this part of my config - and my mirror displays everything again…
Andy ideas left? :)
-
Hey all,
turns out, that the MMM-PIR-Sensor Module is buggy - well, at least for me.
Can’t get it to work, but i found an alternative: MagicMirror-Display-ControllerWorks like a Charme!
Case closed :)
Have a nice weekend!
-
@Stef Hi, yesterday i added two Modules to the Showcase Area. On that monitors GPIO Pins and one which controls the Monitor.
My usecase is exactly like yours. I use an PIR sensor to detect user presence and want the screen to be turned off after a configurable timeout.
If you want to try them:
MMM-Screen-Powersave-Notification
and
MMM-GPIO-Notifications