Read the statement by Michael Teeuw here.
Cron Job Question
-
@sdetweil said in Cron Job Question:
@plainbroke autoreconfig?
u don’t have to build motion, they have binaries (on every platform I’ve tried so far)
my script (launched by something outside mm)
creates an empty file in a known folder for each motion eventdetected
endedmy module node_helper watches for those files to be created, and then sends notification to my module side to signal sleep or wake depending on the config.
the default folder is ‘motion’ inside the MMM-SleepWake folder
the script locates the running mm instance, and uses it’s path to locate the module folder and this it’s motion folder
the script assumes the path includes the username mm is running under and that username is used to set file permissions, so the module can remove them after processing the detection
So if I send a empty file ended to the motion folder in MMM-SleepWake that triggers the timer in config.js to blank screen?
and then in the morning send empty file detected to the same motion folder in MMM-SleepWake it should turn the modules back on.
Have I got this correct in my head or am I still wondering at sea? -
@plainbroke yes, but just call my script with
ended
(motion stopped)
started
(motion started)same as my doc says for the motion config
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