I wanted an easy way to store my Nest event history to my local NAS and store more than 60 days of footage. By default it starts by only backing up the last 4 hours of data. You can build your own image if you want your initial fetch to include more than that. Just modify FETCH_RANGE
in minutes.
This module is for personal use only, especially as it uses unpublished APIs. Use it is at your own risk!
- Gets your Google Home devices using HomeGraph
- Retrieves your recent Google Nest events
- Download full-quality Google Nest video clips
- Stores those clips to a local storage directory by
device_name
and into subdirectories with the formatYYYY/MM/DD/*.mp4
- Obtain a Google Master Token with
docker run --rm -it breph/ha-google-home_get-token
. You can use an app password generated from Google App Passwords, make sure you've generated it on the right account - Create a folder on your system for the appdata from this image, and put the
nest.ini
template file inside with the data filled out - If using docker-compose, point the folder that is holding the
nest.ini
to/config
, and your local storage pool or mounted storageand to/videos
- Build it yourself with
docker-compose up -d
, I'll publish an image once I'm more confident in it
Most of the work is credited to the original author TamirMa, I just modified it to sync to local NAS storage instead, and putting it into a Docker container to make it easier to deploy.
Now that the endpoints are available over web, it should be easier to develop for with dev tools (w/o needing to proxy mitm requests)
You can find his original research over here here
He also mentioned the original credits to some other incredible developers:
Much credits for the authors of the glocaltokens module
Thanks also for the authors of the docker ha-google-home_get-token