I Thought He Came With You is Robert Ellison’s blog about software, marketing, politics, photography and time lapse.

Capture DropCam (Nest Cam) frames to Google Drive

Updated on Saturday, May 25, 2019

Capture DropCam frames to Google Drive

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.

Comments

Stephen Smele
Thanks for the handy GB filling tip.
Kyle Held

Worked like a charm. Thanks!

Brett Jackson

Works! Just tried my old drop cam. At least I can get some free usage out of it!

robert ryan

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.

RT Ryan

Robert Ellison

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.

Gary Fosmo

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.

Thanks Gary

Robert Ellison

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.

Clint

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?

Fraser

Suddenly stopped working for me as well. Any fixes or work arounds possible?

Clint Hendricks

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

nexusapi-us1.camera.home.nest.com/get_image?uuid=12345&height=1280&public=ABCDE

*my use does not need the callback information - but I would imagine you could leave that in

Fraser

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!

Fraser

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.

:(

Wrybread

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!

Cleve

This works for me for saving timed snapshots into a Google Drive folder. What script are you all using to make a time lapse?

Add Comment

All comments are moderated. Your email address is used to display a Gravatar and optionally for notification of new comments and to sign up for the newsletter.