Read the statement by Michael Teeuw here.
How do you switch on / off, wake up yours?
-
I intend to use a PIR sensor “almost hidden” in the frame.
-
Thanks yawns, which module will you be using - MMM-PIR-Sensor?
Out of interest, do you know if it’s possible to set the time the hdmi stays live for, or is it purely based on whether there’s any movement detected? -
I’m using a motion cam behind the mirror with mmal motion software running outside the mm2 as a surveillance cam!
If there is a motion in the front of the mirror the cam turns the mm2 panel on.
After some time without motion the sw will deactivate the panel. -
I just use a cron job to put the screen to sleep at 11pm and turn it back on at 7am. My schedule is routine enough that this works well for me.
crontab -e
00 23 * * * /home/pi/monitor-off.sh >/dev/null # JOB_ID_1 0 7 * * * /home/pi/monitor-on.sh >/dev/null # JOB_ID_2#!/bin/bash vcgencmd display_power 0 # export DISPLAY=:0.0 # xset dpms force off#!/bin/bash vcgencmd display_power 1 # export DISPLAY=:0 # xset dpms force on # xset s reset -
@lolobyte a question :) is the cam on all the time? i´m interested to use the pi cam as a surveillance cam (something like an ip cam) und using a mm module for motion detection (wake up the screen etc.)
-
yea, all ways on.
If the cam recognize some motion in the front, the monitor is starting.After a chosen delay time the monitor is switched off.
-
@arbeyukay I combined the Magic mirror with this feature and have a USB cam to detect any motion in front of mirror, if no motion the monitor is shut down. Works just fine!
https://maxkorlaar.com/post/?i=43&lang=en -
-
I personally use remote control to turn my display on. I also am thinking of using motion detection, but I probably need help. https://forum.magicmirror.builders/topic/52/pir-sensor-put-your-mirror-to-sleep-if-not-used/30
-
@Shockwave
I use the same times but instead of changing the display power I use the built in tvservice app0 23 * * * /opt/vc/bin/tvservice -o
0 6 * * * /opt/vc/bin/tvservice -p -
I’m with cowboysdude,
MMM-ModuleScheduler combined with MMM-Remote-Control.
Scheduler sends MonitorOn and Off’s to Remote.
Works like a dream!
-
I used a similar method to schedule a cron job to control a transistor placed over the push button of my tv. This lets me power the TV on and off instead of using the HDMI CEC method used for computer monitors.
-
I use MMM-ModuleScheduler for my mirror in the bathroom BUT my 32" Control Center I use:
https://github.com/fewieden/MMM-voice
Works like a charm ;)
-
@shockwave said in How do you switch on / off, wake up yours?:
I just use a cron job to put the screen to sleep at 11pm and turn it back on at 7am. My schedule is routine enough that this works well for me.
crontab -e
00 23 * * * /home/pi/monitor-off.sh >/dev/null # JOB_ID_1 0 7 * * * /home/pi/monitor-on.sh >/dev/null # JOB_ID_2#!/bin/bash vcgencmd display_power 0 # export DISPLAY=:0.0 # xset dpms force off#!/bin/bash vcgencmd display_power 1 # export DISPLAY=:0 # xset dpms force on # xset s resetGreat !
I will give it a try
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login