- Watches the ring doorbell history for recent 'ding' events
- Downloads latest recording from the camera
- Convert it to an animated gif (ffmpeg required)
- Uploads gif to Google Cloud Storage
- Sends chat event with gif URL to a Botsquad bot
-
Install
ffmpeg
. -
Python deps:
pip install -r requirements.txt
- Also,
config.json
should contain something like:
{
"gcs_bucket": "bucket-name",
"gcs_bucket_prefix": "some-prefix/",
"bot_id": "ea09f8ea-098a0-8fe0a8ea0-98f09a8",
"api_key": "fldsjafoiadsjfoirewjforew"
}
- Furthermore, a
gcs-credentials.json
file must exist in the same directory which contains the service account credentials for writing the gif file to GCS.