serialog
v1.0.3
Published
A small utility to write a serial device's output to a log file with timestamps.
Downloads
3
Readme
serialog
A small utility to write a serial device's output to a log file with timestamps.
Installation
npm install --global serialog
Usage
serialog \
--dev-path=/dev/ttyUSB0 \ # Path to input device
--dev-baud=115200 \ # Baudrate
--log-path="~/my_device.log" \ # Path to output file
--log-append # Append to file, instead of overwriting
Usage with PM2
Use serialog in combination with PM2 to keep monitoring while detaching your SSH session.
pm2 start serialog -- --dev-path=/dev/ttyUSB0 --dev-baud=115200 --log-path=/home/pi/my_device.log --log-append