Page 1 of 1

motion.conf (start + run app + restart motion)

Posted: Fri Jul 25, 2014 2:50 pm
by ThRasp
Hi all

How do I set up "motion.conf" so that it detects motion it runs a local video?

The perfect scenario would find a move (stop detect) plays the video (10 seconds) closes the video and then re-start detect motion?

I did some configuration but it is detecting various movements and turning several times the video simultaneously ...

Could someone help me?

Thanks!!!

Re: motion.conf (start + run app + restart motion)

Posted: Thu Jul 31, 2014 1:34 pm
by cpc464
The "on_area_detected" part of the motion.conf file might be what you are looking for. It triggers the script only once during an event.

Alternatively perhaps you could get the to detect if it is already running and exit if so, with "ps" or a lock file.

Re: motion.conf (start + run app + restart motion)

Posted: Thu Jul 31, 2014 2:50 pm
by ThRasp
Thanks!!

It's working!!! :D