IOTDB Bridge for TCP Connected Lighting


License
Apache-2.0
Install
npm install homestar-tcp@0.1.19

Documentation

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:

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
}