lumen

Node.js lib for the Tabu Lumen

node-lumen

Node.js lib for the Tabu Lumen

npm install lumen
var Lumen = require('lumen');
Lumen.discover(callback(lumen));
lumen.connectAndSetUp(callback(error));
lumen.disconnect(callback);
lumen.readDeviceName(callback(error, deviceName));
 
lumen.readSystemId(callback(error, systemId));
 
lumen.readSerialNumber(callback(error, serialNumber));
 
lumen.readModelNumber(callback(error, modelNumber));
 
lumen.readFirmwareRevision(callback(error, firmwareRevision));
 
lumen.readHardwareRevision(callback(error, hardwareRevision));
 
lumen.readSoftwareRevision(callback(error, softwareRevision));
 
lumen.readManufacturerName(callback(error, manufacturerName));
lumen.turnOff(callback(error));
lumen.coolMode(callback(error)); // cycles cool colors 
 
lumen.warmMode(callback(error)); // cycles warm colors 
 
lumen.disco2Mode(callback(error)); // cycles RGB quickly 
 
lumen.disco1Mode(callback(error)); // cycles RGB slowly 
// 0 - 100 
var percentage = 100;
 
lumen.white(percentage, callback(error));
// 0 - 99 
var r = 99;
var g = 0;
var b = 0;
 
lumen.color(r, g, b, callback(error));
lumen.on('disconnect', callback);