Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 794 Bytes

README.md

File metadata and controls

36 lines (31 loc) · 794 Bytes

node-kegboard

NodeJS library to interface with a kegbot kegboard. Implements the keboard serial protocol as defined here: https://kegbot.org/docs/kegboard/serial-protocol/

Installation

npm install kegboard --save

Usage

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
}

To do

  • check CRC before reading kegboard message
  • Test other message types
  • Send data to the kegboard