Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/overloadut/node-isy99
Wrapper for accessing ISY99 home automation controller APIs
https://github.com/overloadut/node-isy99
Last synced: about 1 month ago
JSON representation
Wrapper for accessing ISY99 home automation controller APIs
- Host: GitHub
- URL: https://github.com/overloadut/node-isy99
- Owner: OverloadUT
- Created: 2015-06-20T02:36:40.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-27T20:40:50.000Z (over 9 years ago)
- Last Synced: 2024-11-24T10:14:41.434Z (about 1 month ago)
- Language: JavaScript
- Size: 145 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Travis](https://img.shields.io/travis/OverloadUT/node-isy99.svg?style=flat-square)](https://travis-ci.org/OverloadUT/node-isy99)
[![Coveralls](https://img.shields.io/coveralls/OverloadUT/node-isy99.svg?style=flat-square)](https://coveralls.io/r/OverloadUT/node-isy99)# node-isy99
Node module for accessing ISY99 home automation controller APIs.
## Installation
```bash
$ npm install isy99
```## Usage
```javascript
var isy = require("isy99")({host:'hostname',
user:'username',
pass:'password'
});isy.getDeviceInfo('11 22 33 4', function(err, device) {
console.log(device.address); // '11 22 33 4'
console.log(device.name); // 'Kitchen Lights'
console.log(device.enabled); // true
console.log(device.status); // 255
console.log(device.statusFormatted); // 'On'
});isy.sendDeviceCommand('11 22 33 4', 'DON', function(err, success) {
if(success) {
console.log('The light was turned on!')
}
});isy.sendProgramCommand('1023', 'runIf', function(err, success) {
if(success) {
console.log("The program's 'If' logic was run");
}
});
```