Get a video stream from a Ring device.
Install the dependencies:
npm install
Add your Ring credentials to a .env
file:
RING_EMAIL=myemail123@gmail.com
RING_PASSWORD=password123
Replace CAMERA_TO_STREAM
in main.js
with the camera name that you want to stream.
Run the main.js
to get streaming data outputted to a file named output.h264
:
node main.js
Convert output.h264
to an mp4 for viewing:
ffmpeg -i output.h264 output.mp4