IOTDB Bridge for LIFX Lights
npm install homestar-lifx
See the samples for details how to add to your project,
particularly model.js for standalone
and iotdb.js for HomeStar/IOTDB.
Then:
$ npm install homestar-lifx
Set the lights to red
const iotdb = require('iotdb')
iotdb.use("homestar-lifx")
const things = iotdb.connect("LIFXLight")
things.set(":color", "#FF0000")
"products.json" is from:
* https://github.com/LIFX/products/blob/master/products.json
LIFX Color Light
* on: true or false. iot-purpose:on
* color: a hex color ("#FF0000"). iot-purpose:color
* brightness: from 0 to 100
e.g.
{
"on": true,
"color": "#FF0000",
"brightness": 100
}
Control LIFX White Light
* on: true or false. iot-purpose:on
* brightness: from 0 to 100
e.g.
{
"on": true,
"brightness": 100
}