blynclight-mini

1.0.2 • Public • Published

Blynclight Mini for NodeJS

This unofficial library allows control of the Blynclight Mini device.

Official Blynclight SDK

Forked from:

Usage

npm install node-blynclight-mini
const blync = require('blynclight-mini');

let device;

try {
    device = blync.getDevice(0);
} catch (error) {
    throw new Error(error);
}

// Static colors
device.setColor('white', 'on');
device.setColor('red', 'on');
device.setColor('blue', 'on');
device.setColor('green', 'on');

// Colors & effects
device.setColor('green', 'dim');
device.setColor('green', 'blinkveryfast');
device.setColor('green', 'blinkfast');
device.setColor('green', 'blinknormal');

// Turn light off (any color is valid).
device.setColor('green', 'off');

Package Sidebar

Install

npm i blynclight-mini

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

5.62 kB

Total Files

5

Last publish

Collaborators

  • roduk