Here's an easy way to capture frames from a DropCam to Google Drive. This only works if you have a public feed for your DropCam.
Go to the public page for your DropCam (Settings -> Public -> Short URL Link) and then view source for that page. Near the top you can find the still image URL for your DropCam:
<meta property="og:image" content="https://nexusapi.dropcam.com/get_image?uuid=12345&height=200" />
In Google Drive create a new Apps Script (If you don't already have Apps Script you can find it via Connect more apps...). Paste in the following code:
Replace the uuid parameter in the URL with the uuid from the still image URL for your DropCam. Note that the height parameter in the script has been changed to 1280 to get the largest possible image. A timestamp is being used to add a random cache busting parameter to the still image URL and is also used as the filename for the image.
The script will save the images to a folder called DCFrames - either create this folder in your drive or change this parameter to the desired folder.
Run the script and check that it's working. If everything looks good go to Resources -> Current project's triggers in the Apps Script editor. You can now set up a timer to save a frame as frequently as every minute (which I'm using to collect frames to make a daily time lapse movie). You can also ask Apps Script to send you an email when the script fails.
Updated 2015-07-01: DropCam is now Nest Cam - assuming that Nest keep the API going everything should keep working as above for both types of camera.
Worked like a charm. Thanks!
Works! Just tried my old drop cam. At least I can get some free usage out of it!
Unfortunately I have a relatively new Nest Cam and can't find the UUID or URL for the still image. I don't think Nest Cam now allows an image to be grabbed via a script such as this. Am I correct? Great weather spot but old Ambient Cam has failed but have Nest Cam. Help appreciated.
Just tried with a new nest cam that I hadn't shared before and it worked for me. Go to camera sharing in settings, share publicly, go to the 'share this link' URL, view source and find the og:image meta property. The cam I tested is a Nest Outdoor cam and it doesn't allow a height of 1280 but 1000 works fine. If you have the cam shared send me the URL by email ([email protected]) and I can take a look.
Works great with latest Nest outdoor cam for me. Perfect for timelapse. But is there a way to save to a "static" file to use on something like weather underground? I messed around by saving it to a file name, instead of "timestamp" but google drive just keeps saving multiple files with the same name instead of overwriting the old file.
Hi Gary - could you use the original URL for this? I.e. point Weather Underground at the public URL for the cam? Probably don't need to save to Google Drive if you just want the latest image.
We've been using this for awhile - but today it seems to be broke.
We are getting pages that say "forbidden."
Anyone else having issues?
Suddenly stopped working for me as well. Any fixes or work arounds possible?
I can't take credit for this one - but the fix seems to be............
1) replace dropcam.com with camera.home.nest.com
2) then at the end of the request add &public=
last section of the "live feed" url
So for a
UUID of 12345
and last portion live video url of ABCDE
*my use does not need the callback information - but I would imagine you could leave that in
I'm so glad that there is a fix! Thanks for sharing.
I'm now able to the the image using the URL in a browser, but still get a FORBIDDEN error message through the google script.
At least we're making progress!
Has anyone been able to make it work beyond viewing the still in a browser?
My Google script is still giving me the FORBIDDEN error.
Mine is dead too. I have a timelapse script that's been running for a couple of years, and I can see by the timestamps that it stopped working at 11am on April 9, 2019, California time. Now the image returns some HTML that says "forbidden".
Interestingly it died last year for a couple of months too, so who knows, maybe it's intermittent.
If anyone figured out a fix, please post!
This works for me for saving timed snapshots into a Google Drive folder. What script are you all using to make a time lapse?