Socket
Socket
Sign inDemoInstall

wifi370-js-api

Package Overview
Dependencies
6
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    wifi370-js-api

lightweight JavaScript interface for WIFI370 LED-Controller


Version published
Weekly downloads
8
increased by700%
Maintainers
1
Install size
138 kB
Created
Weekly downloads
 

Readme

Source

#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
LW12[x]RGB
LD382[x]RGB
LD382A[x]RGB
LD686[x]RGBW

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

####WIFI370-LED Controller

Screenshot

Link to Amazon (Germany): Link

Keywords

FAQs

Last updated on 03 Mar 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc