I am using Raspbian Jessie and I am trying to run a simple buzzer Python script when Motion detects movement. When I run the Python script in terminal it runs fine and I can hear the buzzer output.
This is what I have set in the motion.conf file:
on_event_start python /etc/motion/buzzer.py
I have also tried a bash script but with no success.
I have also ensured that I have made the Python script executable. For reference these are the current permissions set:
-rwxr-xr-x 1 motion motion 336 Apr 2 04:51 buzzer.py
-rwxr-xr-x 1 motion motion 36 Apr 2 06:26 buzzer.sh
-rwxrwxrwx 1 root root 27758 Apr 2 06:25 motion.conf