1.0.2 • Published 10 months ago

blynclight-mini v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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');
1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago