Skip to content

arjan/ring-doorbel-botsquad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doorbel to Botsquad

  • 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

Installation

  1. Install ffmpeg.

  2. Python deps:

  pip install -r requirements.txt
  1. 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"
}

  1. 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.

About

Poll a ring doorbell and broadcast a giphy to a chatbot

Resources

Stars

Watchers

Forks

Languages