# zm-watcher

> Library provides possibility to watch for new files in ZoneMinder events directory (per camera)

Latest version **0.0.3** (published 2015-11-13) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install zm-watcher
pnpm add zm-watcher
yarn add zm-watcher
bun add zm-watcher
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2015-11-13 |
| First published | 2015-11-13 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Sergi Adamchuk |
| Maintainers | solvek |
| Keywords | zoneminder, zm, watcher |

## Links

- npm: https://www.npmjs.com/package/zm-watcher
- Repository: https://github.com/solvek/zmwatcher
- Homepage: https://github.com/solvek/zmwatcher#readme
- Issues: https://github.com/solvek/zmwatcher/issues
- npm.io page: https://npm.io/package/zm-watcher

## Recent versions

- 0.0.3 (latest) — 2015-11-13
- 0.0.2 — 2015-11-13

## README

zm-watcher
=========

Library provides possibility to watch for new files in [ZoneMinder](http://www.zoneminder.com/) 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.](http://blog.solvek.com/2015/11/zoneminder-mirror.html)

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();

---
_Source: https://npm.io/package/zm-watcher · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
