Coder Social home page Coder Social logo

nodealarmproxy's Introduction

##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

nodealarmproxy's People

Contributors

martzcodes avatar dustindclark avatar mhdawson avatar pakerfeldt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.