ThRasp
Posts: 2
Joined: Mon Jul 07, 2014 7:03 pm

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

Fri Jul 25, 2014 2:50 pm

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!!!

cpc464
Posts: 239
Joined: Tue Jul 08, 2014 5:10 pm
Contact: Website

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

Thu Jul 31, 2014 1:34 pm

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.
Unix engineer since 1989

ThRasp
Posts: 2
Joined: Mon Jul 07, 2014 7:03 pm

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

Thu Jul 31, 2014 2:50 pm

Thanks!!

It's working!!! :D

Return to “Raspberry Pi OS”