1.0.2 • Published 6 years ago

nodealarmproxy v1.0.2

Weekly downloads
61
License
-
Repository
github
Last release
6 years ago

##Setup##

npm install nodealarmproxy

the nap-example.js shows a setup configuration. Replace the init parameters with your own.

Available commands:

initConfig(Object) will create the server and a proxy for other things to connect to (Envisalink only allows one connection... this allows for multiple connections via proxy). The object needs to be of the form:

{ password:'password', //required
    serverpassword:'serverpassword', //optional, will re-use password if not provided
    actualhost:config.host, //required
    actualport:config.port, //optional, will use default port if not provided
    serverhost:'0.0.0.0', //optional, will use '0.0.0.0' if not provided
    serverport:config.port, //optional, will use default port if not provided
    zone:7, //required, this is the number of sensors you have
    partition:1, //required, this is the number of partitions... usually 1
    proxyenable:true, //enable the proxy or not
    atomicEvents:false //optional, will default to false. If true, specific zone/partition/user events will be broadcast.
}

getCurrent() will tell the nodealarmproxy to transmit the last known values.

manualCommand(command) will send a command to the Envisalink 3 (do not include the checksum). Command will be a string based on the envisalink 3 third party interface.

Note: If you don't want to run the proxy, set proxyenable:false or omit it entirely

Note: My config file has:

exports.password = '';  //Envisalink password
exports.serverpassword=''; //Password you want for proxy server
exports.host = '';  //host IP Address
//exports.host = 'localhost';
exports.port = 4025;
exports.app_id = ""; //smartthings app_id
exports.access_token = ""; //smartthings access_token

Changes were mostly done to the nap-example.js, however if you're adding SmartThings integration... you'll need to setup your own app by following instructions similar to this (I've contributed to this project as well)... smartthings-dsc-alarm

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

7 years ago

0.7.3

8 years ago

0.7.2

10 years ago

0.7.1

10 years ago

0.6.3

10 years ago

0.6.1

10 years ago

0.6.0

10 years ago

0.5.2

10 years ago

0.5.1

10 years ago

0.5.0

10 years ago