Feature Request: support for triggering external scripts
I thought it would be cool to trigger my screensaver whenever "the computer" noticed I had moved away from my desk, and a camera could do that task.
So how about a feature whereby motion can call an external app whenever motion is detected, and a different app when movement ends? Obviously there'd have to be "fuzziness" as people sit fairly still normally, but maybe it's doable?
I thought calling external apps would be a better option than just a triggering a screensaver, as I'm sure others could come up with better ways of using such a feature - they could want to send emails, trigger a powerpoint (good for kiosk presentations), etc
- 09 May 2010
Have you read all the motion.conf file? This function has already been implemented. See the on_event_start, on_event_end, on_picture_save, on_motion_detected, on_area_detected, on_movie_start, on_movie_end, on_camera_lost parameters.
# 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 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 gap. ; on_event_end value
- 13 May 2010