Motion - Support Question 2011x 08x 27x 162051

on_movie_start

Question

I have a 2 Camera setup and would like to turn On or OFF using a Simple script the action for on_movie_start.

Below is a portion of a script I currently use which just removes / or adds the ";" commenting out the line for on_movie_start in the thread file, then I have to stop motion and restart it again.

The line plays a DingDong like a Door bell so I can leave the Shop counter and still hear when people come in.

Is there a dynamic way of doing this without stopping motion?

sed -i 's/on_movie_start/;on_movie_start/g' $MOTION/thread1.conf
echo "The door bell is OFF"

sed -i 's/;on_movie_start/on_movie_start/g' $MOTION/thread1.conf
echo "The door bell isON"

mpg321 $OPT/doorbell-2.mp3


Environment

Motion version: 3.2.12
ffmpeg version: SVN-r0.5.1-4:0.5.1-1ubuntu1.1
Libraries: ffmpeg,
Server OS: Mint 10
-- KevinLucas - 27 Aug 2011

Answer

Topic revision: r3 - 06 Sep 2011, FlorinAnton
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.