homestar-tcp

August 25, 2016 · View on GitHub

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:

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
}