I have motion setup on a Raspberry Pi in rasbian-wheezy. Most of the motion.conf
file works (I can view a live feed and it writes videos to the correct locations). However, I seem to be incapable of running anything from the on_motion_detected
option.
Here's the original section:
#Command to be executed when a motion frame is detected (default: none)
; on_motion_detected value
and what I changed it too:
# Command to be executed when a motion frame is detected (default: none)
on_motion_detected /home/path/to/motionscr
motionscr
is a script I wrote which works fine in a terminal using the exact same command. I also ran chmod +x /home/path/to/motionscr
I can't find any documentation on the proper syntax for this option if I'm somehow writing it wrong.
I have already read this question and this article