This is a motion detector module for MagicMirror
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 19 commits ahead of alexyak:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

MMM-MotionDetector

Installation

Just clone the module into your MagicMirror modules folder:

git clone https://github.com/rejas/MMM-MotionDetector.git

Requirements

Accessing your (web)cam requires to have the client run on localhost or a HTTPS host (due to new requirements in Chrome for getUserMedia). The default value in your MagicMirror config.js is already localhost so most users shouldn't be affected.

DOES NOT work with the vc4-kms-v3d or vc4-fkms-v3d driver so far. Please use only the default driver.

Configuration

Option Description
captureIntervalTime Time in ms between capturing images for detection
Type: integer
scoreThreshold Threshold minimum for an image to be considered significant
Type: integer
timeout Time in ms after which monitor is turned off when no motion is detected
Type: integer

Example for the config.js:

{
        module: 'MMM-MotionDetector',
        config: {
                captureIntervalTime: 5000,
                scoreThreshold: 200,
                timeout: 60000
        }
}