tag:blogger.com,1999:blog-9344444.post2282828231443490052..comments2023-11-27T06:19:12.204-05:00Comments on Jeremy's Blog: Motion Google Drive Uploader and Emailerjerblyhttp://www.blogger.com/profile/03046368186007640865noreply@blogger.comBlogger37125tag:blogger.com,1999:blog-9344444.post-49521032049662562812013-04-12T19:14:43.989-04:002013-04-12T19:14:43.989-04:00Hi, I have never used python or linux before and w...Hi, I have never used python or linux before and was wondering if you could explain exactly where to plug in the filenames/paths. I have tried a millions combos and am very frustrated.<br /><br />any help is greatly appreciated.<br />Tricia Dhttps://www.blogger.com/profile/11436895559525923659noreply@blogger.comtag:blogger.com,1999:blog-9344444.post-2920064232862826902013-03-03T16:01:31.872-05:002013-03-03T16:01:31.872-05:00I am using the ip camera to ftp the images to pi t...I am using the ip camera to ftp the images to pi then upload it to drive. I can manually upload the images one by one but not when I use motion.cfg. I got both scripts and the jpgs are in one directory.<br />SKAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-9344444.post-30319058841478523132013-02-23T14:59:32.664-05:002013-02-23T14:59:32.664-05:00for wheezy:
python not python2
pip not pip2
change...for wheezy:<br />python not python2<br />pip not pip2<br />change first line of script (interpreter) to python2.7<br />and works like a charmAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-9344444.post-67440732472492072032013-02-07T14:49:54.243-05:002013-02-07T14:49:54.243-05:00Not just for Pi lol. What a great post! Thanks Jer...Not just for Pi lol. What a great post! Thanks Jeremy as this has helped me set up my motion setup with 4 webcams sending just the ones I need to Google Drive in photos. Great Post !Derek Bolthausennoreply@blogger.comtag:blogger.com,1999:blog-9344444.post-2005205641672730992013-01-23T03:11:58.602-05:002013-01-23T03:11:58.602-05:00Very good!! Thanks!Very good!! Thanks!Anonymoushttps://www.blogger.com/profile/07871979401680176421noreply@blogger.comtag:blogger.com,1999:blog-9344444.post-21790691028676164632013-01-13T13:41:12.599-05:002013-01-13T13:41:12.599-05:00Thanks for the scrip.I have the same problem as my...Thanks for the scrip.I have the same problem as my previous poster, please help.Patricknoreply@blogger.comtag:blogger.com,1999:blog-9344444.post-9644546662419989302012-12-20T17:17:36.232-05:002012-12-20T17:17:36.232-05:00Thanks for this script!
The uploader works when r...Thanks for this script!<br /><br />The uploader works when running the script manually but not when the video has finished recording. I am using the exact same paths in both, except instead of ending with the filename in the config file I end with %f<br /><br />Any ideas?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9344444.post-63956213006617083882012-11-02T01:47:53.686-04:002012-11-02T01:47:53.686-04:00To add the ?convert=false while still posting to a...To add the ?convert=false while still posting to a collection, make @southscanner's changes, then <br />replace <br /><br />doc = self.client.CreateResource(doc, media=media, collection=folder_resource)<br /><br />with<br /><br />create_uri = folder_resource.get_resumable_create_media_link().href + '?convert=false'<br /> doc = self.client.CreateResource(doc, create_uri=mrothhttps://www.blogger.com/profile/13337273682230133017noreply@blogger.comtag:blogger.com,1999:blog-9344444.post-58110029909387381832012-11-02T00:59:19.770-04:002012-11-02T00:59:19.770-04:00This comment has been removed by the author.mrothhttps://www.blogger.com/profile/13337273682230133017noreply@blogger.comtag:blogger.com,1999:blog-9344444.post-50218020087708078612012-10-24T07:21:27.949-04:002012-10-24T07:21:27.949-04:00My jpegs are still coming in at 1kb, and as a .gdo...My jpegs are still coming in at 1kb, and as a .gdoc document. I can't figure out how to add the "?convert=false"Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9344444.post-22438567670261650162012-10-22T20:55:29.112-04:002012-10-22T20:55:29.112-04:00All working very well. I modified to upload jpegs ...All working very well. I modified to upload jpegs instead of avi's:<br /><br /> doc = gdata.docs.data.Resource(type='image', title=os.path.basename(video_file_path))<br /> media = gdata.data.MediaSource()<br /> media.SetFileHandle(video_file_path, 'image/jpeg')<br /><br /><br />One question though, I then thought I'd add the URL to the mail but the southscannerhttps://www.blogger.com/profile/01482147324190239427noreply@blogger.comtag:blogger.com,1999:blog-9344444.post-68432057320769570762012-10-22T08:17:41.196-04:002012-10-22T08:17:41.196-04:00Great script, Thanks!
But could it be made to upl...Great script, Thanks!<br /><br />But could it be made to upload JPEG images instead? I've changed the MIME and type="images", however it seems Google tries to convert the image on upload. The URL needs to have '?convert=false' added at the end when uploading, but I can't figure out how. Any help?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9344444.post-24671606406610896022012-09-28T12:49:51.627-04:002012-09-28T12:49:51.627-04:00Hi, thank you for the great articles, I've suc...Hi, thank you for the great articles, I've successfully managed to get motion working on a fixed IP address and get to a point where i have the two scripts in directories on my RPi.<br /><br />I'm however having trouble with running and testing the 'uploader.py' script. I keep getting an error saying '-bash ./uploader.py: No such file or directory' <br /><br />I've ddrivernoreply@blogger.comtag:blogger.com,1999:blog-9344444.post-33257956085306672332012-09-13T03:30:21.617-04:002012-09-13T03:30:21.617-04:00Hi,
Thanks for the script/blog post(s) - all very...Hi,<br /><br />Thanks for the script/blog post(s) - all very useful.<br /><br />Just wanted to highlight a minor-minor bug (sorry!) that might help other people...<br /><br />self.client.client_login(self.sender, ...<br /><br />should be<br /><br />self.client.client_login(self.username, ...<br /><br />That way it will log in with the username and not the sender e-mail address (in the case they Kenny Millingtonhttps://www.blogger.com/profile/03036520552274077607noreply@blogger.comtag:blogger.com,1999:blog-9344444.post-39970665987458298152012-09-10T17:34:00.506-04:002012-09-10T17:34:00.506-04:00Jeremy, run some examples from gdata-docs and work...Jeremy, run some examples from gdata-docs and work ok, think they don't support GetAllResources any more.. but not a python programer. thxnCValdesShttps://www.blogger.com/profile/05779577972566560847noreply@blogger.comtag:blogger.com,1999:blog-9344444.post-85792550667428156202012-09-10T07:29:07.015-04:002012-09-10T07:29:07.015-04:00@cvaldess - I haven't seen that error before b...@cvaldess - I haven't seen that error before but I suspect it is something to do with the gdata install. You could try doing some other basic gdata things from the google tutorials to see if it's working. jerblyhttps://www.blogger.com/profile/03046368186007640865noreply@blogger.comtag:blogger.com,1999:blog-9344444.post-7704233077483484722012-09-10T00:56:13.709-04:002012-09-10T00:56:13.709-04:00Ignore my earlier comments. It does take a bit of ...Ignore my earlier comments. It does take a bit of time to send the message when the motion is running. It actually doe send the message.mohsinnoreply@blogger.comtag:blogger.com,1999:blog-9344444.post-7577810014360072762012-09-08T23:09:19.551-04:002012-09-08T23:09:19.551-04:00Also I only get the following trace when I press c...Also I only get the following trace when I press control+c after which it sends the file.<br /><br />Executing external command '/home/mohsin/Downloads/uploader.py /home/mohsin/Downloads/uploader.conf /tmp/motion/01-20120909040044.avi<br /><br />And I dont see this kind of trace while the motion is running.<br /><br />Thanks,<br />Mohsinmohsinnoreply@blogger.comtag:blogger.com,1999:blog-9344444.post-66250565578586765112012-09-08T22:59:19.835-04:002012-09-08T22:59:19.835-04:00Hi Jeremy,
Thanks for the great post. ...Hi Jeremy,<br /> Thanks for the great post. I am got everything running but stuck on the last step. I can send force the upoloader to copy the video manually. <br /><br />But it does not work when the motion is running. It only uploads the vipdeo when I stop the motion by pressing control+c<br /><br />Any clues ?<br /><br />Thanks<br />Mohsinmohsinnoreply@blogger.comtag:blogger.com,1999:blog-9344444.post-7197958414085532762012-09-08T13:16:57.679-04:002012-09-08T13:16:57.679-04:00Hi Jeremy
Just got Error: ['DocsClient' o...Hi Jeremy<br /><br />Just got Error: ['DocsClient' object has no attribute 'GetAllResources']<br /><br />ubuntu server 12.04 LTS<br />python 2.7.3-0ubuntu2<br />python-gdata 2.0.14-2<br /><br />any solution??<br /><br />thanksCValdesShttps://www.blogger.com/profile/05779577972566560847noreply@blogger.comtag:blogger.com,1999:blog-9344444.post-3383338634552608242012-08-31T07:14:23.562-04:002012-08-31T07:14:23.562-04:00Jeremy, please ignore my previous comment, have fi...Jeremy, please ignore my previous comment, have fixed it - IT WORKS !!<br /><br />Many thanks for your efforts.<br />A.J.Bevanhttps://www.blogger.com/profile/13464543123006295316noreply@blogger.comtag:blogger.com,1999:blog-9344444.post-54596809209687694262012-08-31T06:42:17.267-04:002012-08-31T06:42:17.267-04:00Very nice work Jeremy. I have completed most of th...Very nice work Jeremy. I have completed most of this setup, except the video upload. When testing the script as you describe it works well. However when adding into motion.conf I see that we are not specifying the full path and video name to upload. Filename I can understand, but where does your script get the path to where motion stores the video files?<br />I see the variable "A.J.Bevanhttps://www.blogger.com/profile/13464543123006295316noreply@blogger.comtag:blogger.com,1999:blog-9344444.post-78805913719322538172012-08-28T05:21:28.545-04:002012-08-28T05:21:28.545-04:00Tanks for that excellent work! But i still have a ...Tanks for that excellent work! But i still have a litle problem...<br /><br />When i execute the python script, i get an error:<br /><br />Error: ['DocsClient' object has no attribute 'GetAllResources']<br /><br />Can anyone help me?<br /><br />Greetings from germany phate127 <br /><br />Try using the later version of gdata. I got this error with 2.0.14, but 2.0.17 solved it.Magic919https://www.blogger.com/profile/15106806433704641429noreply@blogger.comtag:blogger.com,1999:blog-9344444.post-84021110731357490182012-08-08T10:41:15.889-04:002012-08-08T10:41:15.889-04:00Thanks for the quick response Jeremy - that clarif...Thanks for the quick response Jeremy - that clarifies it for me! Great tutorials.Lewishttps://www.blogger.com/profile/10274095441854411441noreply@blogger.comtag:blogger.com,1999:blog-9344444.post-86650228288795353122012-08-08T09:17:00.887-04:002012-08-08T09:17:00.887-04:00@lewis I just use nano. I always connect in over s...@lewis I just use nano. I always connect in over ssh using PuTTY to do everything on the pi. It means less to install and more resources available. I also use svn to keep the code safe and then I can write it on my laptop and update on the pi.jerblyhttps://www.blogger.com/profile/03046368186007640865noreply@blogger.com