Skip to content

Script for printing new Signal K logbook entries with a recept printer

Notifications You must be signed in to change notification settings

meri-imperiumi/logbook-printer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Printing service for Signal K digital logbook

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).

Screenshot 2024-11-08 at 14 04 48

Installation

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.

  1. Check out this repository git clone https://github.com/meri-imperiumi/logbook-printer.git && cd logbook-printer
  2. Install dependencies npm i
  3. Run it manually node index.mjs
  4. 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.

Running

Set up a cronjob to execute the script periodically. For instance every 15min.

About

Script for printing new Signal K logbook entries with a recept printer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published