homestar-lifx

0.1.16 • Public • Published

homestar-lifx

IOTDB Bridge for LIFX Lights

About

See the samples for details how to add to your project, particularly model.js for standalone and iotdb.js for HomeStar/IOTDB.

Installation

Then:

$ npm install homestar-lifx

Use

Set the lights to red

const iotdb = require('iotdb')
iotdb.use("homestar-lifx")

const things = iotdb.connect("LIFXLight")
things.set(":color", "#FF0000")

Development Note

"products.json" is from:

Models

LIFXLight

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
}

LIFXWhite

Control LIFX White Light

  • on: true or false. iot-purpose:on
  • brightness: from 0 to 100

e.g.

{
    "on": true,
    "brightness": 100
}

Readme

Keywords

none

Package Sidebar

Install

npm i homestar-lifx

Homepage

homestar.io

Weekly Downloads

2

Version

0.1.16

License

Apache-2.0

Last publish

Collaborators

  • dpjanes