homestar-tcp

0.1.19 • Public • Published

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
}

Readme

Keywords

none

Package Sidebar

Install

npm i homestar-tcp

Homepage

homestar.io

Weekly Downloads

1

Version

0.1.19

License

Apache-2.0

Last publish

Collaborators

  • dpjanes