1.0.9 • Published 7 years ago

wifi370-js-api v1.0.9

Weekly downloads
3
License
ISC
Repository
-
Last release
7 years ago

#wifi370-js-api :bulb: lightweight JavaScript interface for WIFI370 LED-Controller

npm version

npm install wifi370-js-api

###Basic Usage

const WIFI370 = require('wifi370-js-api');
const controller = WIFI370('LW12','20.1.0.142',5577);
controller.setOn();
controller.getOn((error, response) => {
});
controller.setOff();
controller.setColor(controller.color.rgb(255, 0, 0));
controller.getColor((error, response) => {
});
controller.setBrightness(controller.color.value());
controller.getBrightness((error, response) => {
});
controller.setHue(controller.color.hue());
controller.getHue((error, response) => {
});
controller.setSaturation(controller.color.saturationv());
controller.getSaturation((error, response) => {
});

###Tests Find more examples in "test" directory.

Enter you hyperion server connection in package.json, and run some tests!

  "ledController": {
    "host": "20.1.0.142"
  }

run a single test from commandline with:

mocha test/wifi370.spec.js -g "setOff should switch off"

Which hardware is used?

Controller Support

ControllerSupportedType
LW12xRGB
LD382xRGB
LD382AxRGB
LD686xRGBW

Thanks to Meik Dirkes for reverse engineering the communication for all controller types.

####WIFI370-LED Controller

Screenshot

Link to Amazon (Germany): Link

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago