homestar-tcp
v0.1.19
Published
IOTDB Bridge for TCP Connected Lighting
Downloads
30
Readme
homestar-tcp
IOTDB Bridge for TCP (Connected Lights)
About
See the samples for details how to add to your project.
Credits
All the clever bits of connecting to TCP Lighting come from here:
- https://github.com/stockmopar/connectedbytcp
- http://home.stockmopar.com/connected-by-tcp-unofficial-api
- http://home.stockmopar.com/updated-connected-by-tcp-api/
Installation and Configuration
Then:
$ npm install -g homestar ## may require sudo
$ npm install homestar-tcp
$ homestar configure homestar-tcp
Use
Set the light to half-bright
const iotdb = require('iotdb')
const things = iotdb.connect("TCPConnectedLight")
things.set(":brightness", 50)
Models
TCPConnectLight
e.g.
{
"on": true,
"brightness": 75
}