meri-imperiumi / signalk-logbook

Semi-automatic electronic logbook for sailing vessels running Signal K
11 stars 5 forks source link

Append new log entries to a file #44

Open bergie opened 1 year ago

bergie commented 1 year ago

Uses Mustache templating to allow customisation. Fixes #42

$ touch /tmp/print  
$ tail -f /tmp/print
2023-04-27|08:37|60°5′4″N|23°32′20″E|0|42|13.8||1016.06|Hello, world!
2023-04-27|08:39|60°4′43″N|23°31′55″E|0.1|207|14.3||1016.09|Second entry
thesailingengineer commented 1 year ago

This is honestly amazing - and you've done it with so few lines of code! a few development ideas:

bergie commented 11 months ago

It might be best to decouple this functionality to a separate Signal K plugin. We need #53 to enable that.

Then we could maybe even implement nicer formatting etc as supported by Esc/POS printers.