Problems running python script from motion
7
votes
4
answers
4244
views
I'm trying to set up the raspberry pi with my webcam as a motion detecting cctv that uploads the videos to google drive using [Jeremy Blythe's script](http://jeremyblythe.blogspot.co.uk/2012/06/motion-google-drive-uploader-and.html)
I have motion working correctly and the python script runs when I test it from the terminal.
However the script doesn't run when I add it to the on_movie_end option in motion.conf.
The script I am using in the file is
On_Movie_End /etc/motion/uploader.py /etc/motion/uploader.cfg %f
I have also tried getting the on_movie_end to run a bash script that runs the python script and this doesn't work either. I am new to linux though so not entirely sure I have it correct.
The script is:
#!/bin/bash
VIDEO=$1
/etc/motion/uploader.py /etc/motion/uploader.cfg VIDEO
In motion.conf
/etc/motion/uploaderscript.sh %f
Asked by DanBrum
(71 rep)
Dec 21, 2012, 10:38 AM
Last activity: Mar 3, 2022, 11:45 PM
Last activity: Mar 3, 2022, 11:45 PM