The recordingUrl state of your ring device in Indigo includes an authentication token to Amazon AWS where the video is stored, but it expires after 1 hour. Thus,
anyone who has the full URL in recordingUrl can see your video, provided they follow the link within an hour of it being generated.
If you want to be alerted to motion by receiving a video emailed to you, you can use the python library FlyingDiver pointed out, as follows:
1. Follow the instructions at
https://github.com/tchellomello/python-ring-doorbell to install the ring_doorbell python library on the mac that runs your Indigo server
2. Set up a Ring doorbell device, per the Indigo Ring plugin's instructions
3. Set up a trigger that triggers when lastMotionTime of your Ring doorbell device Has Any Change, and then have it run two actions when triggered:
3a. Run a Server Action->Execute Script to run the following Python script (change the login credentials, save location, and doorbell id as necessary):
- Code: Select all
from ring_doorbell import Ring
myring = Ring('yourRingAccountEmailHere@somewhere.com', 'yourRingAccountPasswordHere')
doorbell = myring.doorbells[0]
doorbell.recording_download(
doorbell.history(limit=100, kind='motion')[0]['id'],
filename='/Users/yourLocalUserName/Documents/IndigoLastRingVideo/doorbellVideo.mp4',
override=True)
3b. Use the Better Email Plugin (get it from the Plugin Store) to send yourself an email with the video attached (copy paste the path from the script to the attachments setting)