Blynclight Mini for NodeJS
This unofficial library allows control of the Blynclight Mini device.
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');