1.3.1 • Published 12 months ago
@4lch4/busylight v1.3.1
@4lch4/busylight
This is a simple library to control a Busylight device from Plenom, using their HTTP app.
Requirements
In order for this to work, you have to have the official Busylight HTTP app installed and running on your computer. Here are the two ways I'm aware of to get it:
- From the Development Tools section of the download software page. You have to request it though.
- From the same download software page linked just above, but under the Premium Software you want to download the one for Twilio. The zip provided will include the HTTP app.
Usage
import { Busylight } from '@4lch4/busylight'
const busylight = new Busylight()
await busylight.on('green')
await busylight.alert({ color: 'red', sound: 7, volume: 50 })
await busylight.blink('blue')
await busylight.jingle({ color: 'purple', sound: 3, volume: 100 })
await busylight.pulse('yellow')
await busylight.flashColors('red', 'blue')
await busylight.off()
Further Reading
For more information, refer to the manual from Kuando on the HTTP app, it's where the API documentation resides.