Dropbox-Uploader Script - Raspberry Pi Forums
hi all,
have configure raspberry pi 2 model b work small camera trap amphibians , reptiles. setup basic: raspberry pi 2 model b, raspberry camera, power bank (15000 mah), solar panel (16 w). on software side, camera running motion-mmal, dropbox-uploader, apache web server, , dropbox-uploader. works wonderfully, including motion-mmal starting @ boot, except python script run automatically dropbox-uploader.
in theory uploader should upload images , clean folder these ones located. make sure each time runs, not copy same files, command -s added. script should upload pictures , delete files once; does, run script many times number of pictures in folder. so, if there 40 pictures, upload 40, re-run, skipping existing files, , each cycle delets 1 picture of folder. on aforementioned example, run 40 times, uploading 40 pictures, before deleting pictures. if command -s eliminated script, "update" each picture , run many times number of pictures.
other problem, lines such path="tmp/motion" indicate path using word , not whole path, don´t work. example, cmd = "/home/pi/dropbox-uploader/dropbox_uploader.sh upload path + file_name" doesn´t work (file name has been defined no avail).
since path definition doesn´t work, option cmd = "/home/pi/dropbox-uploader/dropbox_uploader.sh upload /tmp/motion .", in case works, creates folder in dropbox called motion.
last, no least, script needs run x amount of time trhough cron, uploads new pictures. there has not been possible way make such script run in cron.
appreciated!
have configure raspberry pi 2 model b work small camera trap amphibians , reptiles. setup basic: raspberry pi 2 model b, raspberry camera, power bank (15000 mah), solar panel (16 w). on software side, camera running motion-mmal, dropbox-uploader, apache web server, , dropbox-uploader. works wonderfully, including motion-mmal starting @ boot, except python script run automatically dropbox-uploader.
in theory uploader should upload images , clean folder these ones located. make sure each time runs, not copy same files, command -s added. script should upload pictures , delete files once; does, run script many times number of pictures in folder. so, if there 40 pictures, upload 40, re-run, skipping existing files, , each cycle delets 1 picture of folder. on aforementioned example, run 40 times, uploading 40 pictures, before deleting pictures. if command -s eliminated script, "update" each picture , run many times number of pictures.
other problem, lines such path="tmp/motion" indicate path using word , not whole path, don´t work. example, cmd = "/home/pi/dropbox-uploader/dropbox_uploader.sh upload path + file_name" doesn´t work (file name has been defined no avail).
since path definition doesn´t work, option cmd = "/home/pi/dropbox-uploader/dropbox_uploader.sh upload /tmp/motion .", in case works, creates folder in dropbox called motion.
last, no least, script needs run x amount of time trhough cron, uploads new pictures. there has not been possible way make such script run in cron.
appreciated!
raspberrypi
Comments
Post a Comment