1

I'm using motion in a Raspberry Pi and need export the coordinates of the center of the moving object (the %K and %L) because I want to use it in a python program. But I can't even make the on_motion_detected work.

I'm testing it with a python script that runs ok outside motion, but not inside:

on_motion_detected python /home/pi/prog/hello.py

I already gave permission for the file with: sudo chmod +x /home/pi/prog/hello.py

someone know what's wrong?

  • 1
    you should specify full path for python as well, may easily find it with which python (something like /usr/bin/python would be the answer) – lenik May 8 '14 at 3:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.