No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
samples/zmmirror
.gitignore
README.md
index.js
package.json

README.md

zm-watcher

Library provides possibility to watch for new files in ZoneMinder events directory (per camera). The purposes of this library to trigger new ZM event in real time. For example you can mirror files to another local directory or even to box.com cloud service.

The library was tested with node.js 5 but it should work starting from node.js 0.12.x

Installation

npm install zm-watcher

Usage

var zmwather = require("zmwatcher");

var watcher = zmwatcher.watch("/path/to/events", "HomeCamera", "CorridorCamera", function(path){
    // Here we have path in form "HomeCamera/15/11/05/.../....jpg" - if a new image is placed
});
   
...

// Unwatch when not needed anymore
watcher.unwatch();