mirror of
https://github.com/pe1hvh/meshcore-gui.git
synced 2026-05-06 05:22:25 +02:00
v1.22.1: JSONL stream output for RX log alongside existing JSON archive Every received LoRa packet is now also written immediately as a single JSON line to ~/.meshcore-gui/archive/<device>_rxlog.jsonl. This is an append-only, unbuffered stream format that lets separate local services (such as meshcore-watchlist) consume the RX feed in real time without depending on the GUI's internal batched-JSON format. - The existing <device>_rxlog.json is unchanged (60 s flush interval, atomic rewrite). The GUI, the public REST API and the domca.nl ingest continue to work without modification. - Writes to the JSONL file are direct (no buffer), so end-to-end latency from radio reception to JSONL line is sub-second. - A failure on the JSONL path is logged via debug_print and does not affect the buffered JSON archive — the two paths are independent. - _cleanup_rxlog() now also rewrites the JSONL file to drop entries older than RXLOG_RETENTION_DAYS. Corrupt lines (e.g. a partial last line after a crash) are skipped during cleanup. No BLE/worker changes, no public REST API changes; SharedData and the BLE command pipeline are untouched. Disk usage increases modestly (one additional file per device, same retention window). PATCH bump 1.22.0 → 1.22.1: purely additive, fully backwards-compatible.