Read the statement by Michael Teeuw here.
Help with MMM-SleepWake
-
These are the two lines I updated in motion.conf
# Command to be executed when an event starts. (default: none) # An event starts at first motion detected after a period of no motion defined by event_gap on_event_start value /home/pi/MagicMirror/modules/MMM-SleepWake/external_motion started # Command to be executed when an event ends after a period of no motion # (default: none). The period of no motion is defined by option event_gap. on_event_end value /home/pi/MagicMirror/modules/MMM-SleepWake/external_motion ended
I noticed something else. Last night, before I went to bed, I turned motion off (I was just running it from the command line, not as a service). This morning my display was in power saving mode again (yellow light) and I couldn’t get it to wake up. I had to manually run this command from the command line to get the screen to turn on again :
/opt/vc/bin/tvservice -p && sudo chvt 6 && sudo chvt 7
It’s strange that your module had put my screen to sleep even though there was no motion even to trigger it.
-
@chanster remove the word value from both lines in motion.conf
-
@chanster motion wakes up. timer puts to sleep
-
@chanster u can run the exteral_motion started command from the command line to test getting the commands working.
over ssh too. it’s just a command to tell module there was ‘motion’
-
@sdetweil Thank you !! I’m so stupid. Removing “value” did the trick ! Thank you for this module. Works perfectly.
-
@chanster glad u got it working.
help me fix the doc, what lead u to use value?
-
@sdetweil It was in the sample config file for Motion. It’s a rookie mistake that I should have replaced “value” and not merely append to this line :
# Command to be executed when an event starts. (default: none) # An event starts at first motion detected after a period of no motion defined by event_gap ; on_event_start value # Command to be executed when an event ends after a period of no motion # (default: none). The period of no motion is defined by option event_gap. ; on_event_end value
-
@chanster ok, my module doc gives u the new lines for motion.conf
-
@sdetweil said in Help with MMM-SleepWake:
@chanster ok, my module doc gives u the new lines for motion.conf
Yes, nothing wrong with your docs at all.