Motion - Feature Request 2010x 05x 09x 202108

Feature Request: support for triggering external scripts

Description

Hi there

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

Jason

-- JasonHaar - 09 May 2010

Follow up

Comments

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

-- YannickDrolet - 13 May 2010
Topic revision: r3 - 25 May 2010, AngelCarpintero
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.