NodeJS library to interface with a kegbot kegboard. Implements the keboard serial protocol as defined here: https://kegbot.org/docs/kegboard/serial-protocol/
npm install kegboard --save
Create a kegboard instance, passing the kegboard device name
var Kegboard = require('kegboard');
var myKegBoard = new Kegboard({port: '/dev/ttyACM2'});
Add listeners for kegboard messages
myKegBoard.on('hello', function (data) {
console.log(data);
});
Will output:
{
"firmware_version": 18,
"serial_number": "KB-0102-0E32-F1234567",
"uptime_ms": 11022781,
"uptime_days": 5
}
- check CRC before reading kegboard message
- Test other message types
- Send data to the kegboard