This service implements a printing service for the Semi-automatic logbook for Signal K. The idea is to print all new log entries using a USB receipt printer for backup purposes (for example, to enable traditional dead reckoning or celestial navigation after a power loss).
You need a receipt printer enabled on a system and available as a raw line printer device (by default, /dev/usb/lp0
). On Raspberry Pi this should happen automatically.
You also need Node.js and git, as well as a Signal K instance in the same network.
- Check out this repository
git clone https://github.com/meri-imperiumi/logbook-printer.git && cd logbook-printer
- Install dependencies
npm i
- Run it manually
node index.mjs
- Adjust the printer device in
index.mjs
according to your printer setup
On first run the service should create a Signal K access request. Log into your Signal K admin panel and approve it. You need to provide Admin level permissions.
Set up a cronjob to execute the script periodically. For instance every 15min.