You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I've put together this script to test the light, but I get this output and no light at all:
require('busylight').devices(true);constbl=require('busylight').get(1);console.log(bl);bl.on('disconnected',function(err){console.log("BL disconnected");console.log(err);});bl.on('connected',function(){if(!bl){returnconsole.log('no busylight found');}bl.defaults({keepalive: true,// If the busylight is not kept alive it will turn off after 30 secondscolor: 'white',// The default color to use for light, blink and pulseduration: 100000000,// The duration for a blink or pulse sequencerate: 300,// The rate at which to blink or pulsedegamma: true,// Fix rgb colors to present a better lighttone: 'Quiet',// Default ring tonevolume: 0// Default volume});console.log("BL connected");bl.light('red');});
Hi,
I've put together this script to test the light, but I get this output and no light at all:
$ sudo node exec.js Busylight { _events: [Object: null prototype] {}, _eventsCount: 0, _maxListeners: undefined, options: 1, buffer: [ 0, 16, 0, 0, 0, 0, 0, 0, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 6, 147 ], newProtocol: 10171, debug: false, connectAttempts: 0, getColorArray: [Function (anonymous)], _defaults: { keepalive: true, color: [ 255, 255, 255 ], rate: 300, degamma: true, tone: 'OpenOffice', volume: 4 }, [Symbol(kCapture)]: false } BL connected BL connected BL connected BL connected BL connected BL connected BL connected BL connected BL connected BL connected BL connected BL connected BL connected BL connected BL connected BL connected BL connected BL connected BL connected BL connected BL connected BL connected BL connected BL connected BL connected BL connected BL connected BL connected BL connected BL connected BL connected ... ... ...
Any idea why?
The text was updated successfully, but these errors were encountered: