Skip to content
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.
/ MMM-Ring Public archive

Module for MagicMirror that adds video feed of Ring Doorbell events

License

Notifications You must be signed in to change notification settings

DustinBryant/MMM-Ring

Repository files navigation

DEPRICATED - original creator no longer has a Ring device and can not maintain this code base as a result

MMM-Ring

This is a module for the MagicMirror².

Whenever someone rings your doorbell by pressing the button on your ring device, or when motion is detected a video will appear wherever the module is placed within MM. Whenever there is no video being displayed nothing else is shown in its place.

Caveats:

  • Must have an active Ring subscription
  • Only displays the earliest stream sent to it with no way to view multiple streams.
  • There is a slight unavoidable delay (couple seconds) with the videos.
  • In your ring app, all of these events will show as answered rings or answered motion. This may get fixed in the future.
  • You will not be able to interact, talk with, or hear the person on the other end through MM.
  • The RingAPI being used is unofficial which means there could be potential issues if Ring ever decides to make changes.
  • Though it will work most of the time, there are slight chances a video may not get picked up/streamed properly. This is due partly because of using an unoffical API and sometimes hls (video component used for streaming) picks up the stream too early or faults for other reasons.

Installation

  1. Install ffmpeg if it isn't already installed. You need to install ffmpeg-for-homebridge to support audio.
sudo curl -Lf# https://github.com/homebridge/ffmpeg-for-homebridge/releases/latest/download/ffmpeg-raspbian-armv6l.tar.gz | sudo tar xzf - -C / --no-same-owner

  1. Using the terminal, navigate to your MagicMirror/modules folder
  2. Execute: git clone https://github.com/DustinBryant/MMM-Ring.git
  3. Navigate to this new folder cd MMM-Ring
  4. Execute: npm install

Using the module

To use this module, add the following configuration block to the modules array in the config/config.js file:

		{
			module: "MMM-Ring",
			position: "middle_center",
			config: {
				ring2faRefreshToken: "<YOUR REFRESH TOKEN>"
			}
		},

General configuration options

Option Description
ring2faRefreshToken (Required) Look at the Refresh Tokens) wiki entry for how to set this up.
ringMinutesToStreamVideo (Optional) How long a ding event video stream should last before ending. MAX 5 minutes!

Type: int(minutes)
Default: 1.5
ringVideoWidth (Optional) Width of the video display.

Type: string(px)
Default: "600"
ringStreamMotion (Optional) Displays stream if there is motion, not just a ring. If more than one motion event or doorbell press happens within the "ringMinutesToStreamVideo" length of time it will prioitize the first event that was triggered. Motion can also not be triggered more than once within 65 seconds.

Type: boolean(true/false)
Default: false
muted (Optional) Mute video stream.

Type: boolean(true/false)
Default: "false"

Dependencies

(installed via npm install in the installation instructions above)

Thanks

Huge thanks to dgreif on github for doing the reverse engineering to figure out how to get a video stream from a ring event (see ring-client-api dependency)). Without it, this module wouldn't be possible!

About

Module for MagicMirror that adds video feed of Ring Doorbell events

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •