Skip to content

eric-h-st/MMM-BlinkCameraIntegration

Repository files navigation

MMM-BlinkCameraIntegration

Extension for the MagicMirror. Interfaces with the Blink home security cameras, displays snapshots and latest videos.

Next to be added:

  • Support periodic snapshots from the cameras
  • Support configuration of cameras and hubs

Screenshots

Installation

cd ~/MagicMirror/modules
git clone https://github.com/eric-h-st/MMM-BlinkCameraIntegration.git
cd MMM-BlinkCameraIntegration
npm install

Notes:

  • Blink seems to have changed their APIs and thus this module would stop working. Please hold on as I'm trying to solve.

Using the module

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

modules: [
	{
		module: 'MMM-BlinkCameraIntegration',
		position: "middle_center", // recommended 
		config: {
			// See 'Configuration options' for more information.
		}
	}
]

Configuration Options

The following properties can be configured:

Option Description
email Your email, used to login to your Blink account

Possible values: email address string
Default value: null
Note: REQUIRED
password Your password, used to login to your Blink account

Possible values: string
Default value: null
Note: REQUIRED
deviceId Friendly name for your Hub.

Possible values: string
Default value: null
Note: REQUIRED
displaySnapshots Should camera snapshots be displayed?

Possible values: boolean
Default value: true
displayLatestVideoMode What should trigger displaying the newest motion video?

Possible values: number, as follows:
Value to use Name Description
0NONEDo not display motion videos, just emit the BLINK_MOTION_VIDEO notification
1IMMEDIATELYDisplay the latest video once it arrives
2UPON_USERPRESENCEHold the latest video until USER_PRESENCE notification is deteced, to allow for the video to be displayed when the user is in front of the mirror

Default value: 1
motionPollingIntervalInSeconds Interval, in seconds, to poll for new motion videos from Blink

Possible values: number > 15
Default value: 30
videoRepeats Number of times to loop the latest motion video before fading it out

Possible values: positive number, or 0 to repeat until a new video is detected
Default value: 1

Developer Notes

This module broadcasts a BLINK_MOTION_VIDEO notification whenever a new motion video is detected, with the payload of the creation date and time of the video. You could use it to perform various actions, for example- to play a sound.

This module listens to the USER_PRESENCE notification.

Dependencies

The MIT License (MIT)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published