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);
const bl = 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) {
return console.log('no busylight found');
}
bl.defaults({
keepalive: true, // If the busylight is not kept alive it will turn off after 30 seconds
color: 'white', // The default color to use for light, blink and pulse
duration: 100000000, // The duration for a blink or pulse sequence
rate: 300, // The rate at which to blink or pulse
degamma: true, // Fix rgb colors to present a better light
tone: 'Quiet', // Default ring tone
volume: 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:
Any idea why?