motion to detect motions with a webcam. I try to run a command when a motion is detected.
/etc/motion/motion.conf, I set the option
on_picture_save like this:
on_picture_save date | mail -s "Webcam alert" firstname.lastname@example.org
This sends me a mail when a picture is saved. It works perfectly. Now I would like to run a command when a motion starts. For example:
on_event_start touch /home/pi/test
But it does not work. I don't understand why... How to use the