DancingQuanta / serial_listener_logger

Python utility to listen, timestamp and log data received from a serial port.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serial Listener and Logger (SeLL)

Simple Python script to listen for messages on a serial port, timestamp every line and save it to a file named by the date.

The settings.txt file gives the required information to the script using the following format:

<SERIAL PORT ADDRESS>,<BAUDRATE>,<PARITY>,<BYTESIZE>,<EOL char>
<DATA SAVE PATH>
<short(YYYYMMDD.tsv)/long(YYY-MM-DD.tsv) data filename>,<UTC or local for the timestamp>
<compress data? 1 == YES>

The naming of the stored files follows the settings flag short/long.

Modules required

  • pyserial
  • time
  • subprocess
  • logging

License: MIT

See license file

About

Python utility to listen, timestamp and log data received from a serial port.

License:MIT License


Languages

Language:Python 71.2%Language:Makefile 28.8%