mboskamp / MMM-PIR

This MagicMirror module monitors a PIR sensor and turns on/off your display. You can even run custom scripts and control it via Telegram.
16 stars 6 forks source link

Turn screen of using relay #9

Open ghost opened 5 years ago

ghost commented 5 years ago

Can the module be used to turn off a screen via relay, connected over another GPIO port? I added a relay, but I think the screen is only turned off killing the HDMI signal...

CaptainDario commented 4 years ago

Yes, this is possible. You can change the ~/MagicMirror/modules/MMM-PIR/callbackScripts/default/turnOn.sh and turnOff.sh to toggle the relay as well as the HDMI output (or only one).

Take a look at this guide I am currently working on. I used this module to turn off HDMI and a relay.