Skip to content
 
 

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amcrest AD110

David 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.
})

isAlive();                //returns promise(bool)

takeSnapshot();           //returns promise(buffer)

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

//listen to all events (event object contains an 'action' and sometimes 'data' object or an 'index' value)
listen(listener);
unlisten();             //remove all listeners

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

Future Development

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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages