1.1.10 • Published 7 months ago

amcrest-ad110 v1.1.10

Weekly downloads
11
License
GPL-3.0
Repository
github
Last release
7 months ago

Amcrest AD110

Libraries.io dependency status for GitHub repo npm npm GitHub

Features

  • Listens to Amcrest AD110 events
  • Checks if device exists
  • Takes Snapshots

Methods

constructor({
    ipAddr: 'Device IP Address',
    password: 'device password',
    retryDelay: 1000,     //(optional) How often to try and reconnect after loosing connection in millis
    rawCodes: false,      //(optional) Use rawCode data (properties are not uniform)
    resetTime: 900,       //(optional) Time in seconds which to reset the connection. Setting to 0 does not reset.
    debug: false          //'raw', 'debug', and 'error' messages are sent out on the main listen stream.
})

isAlive();                //returns promise(bool)

takeSnapshot();           //returns promise(buffer)

start();                  //start listening to events
stop();                   //stop listening to events


listen(listener);         //listen to all events (event object contains an 'action' and sometimes 'data' object or an 'index' value)
                          //When debugging is on, 'raw', 'debug', and 'error' are also output
unlisten();               //remove all listeners

//Specific events (Processed Events Only):
onMotion(listener);
onVideoMotion(listener);
onVideoBlindStart(listener);
onDoorbellButtonPress(listener);
onDoorbellAnswer(listener);
onDoorbellHangup(listener);
onCallNotAnswered(listener);

onRawData(listener);
onError(listener);

Future Development

  • Get/Set Custom Configuration
  • Possibily:
    • Record Video
    • Talk and Listen to Audio
1.1.10

7 months ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.3

3 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago