Telemetry & Radio Operational Running in production
MeshCore Repeater Telemetry & Monitoring
Containerized Python exporter polling a remote LoRa MeshCore repeater through a companion TCP bridge, converting battery voltage curves, and pushing RF and health metrics to InfluxDB and Grafana.
Overview
Off-grid or remote LoRa mesh repeaters need lightweight, unattended health monitoring—especially for battery state, radio link quality, and packet throughput. To keep track of my local MeshCore repeater without manual checks, I built a small containerized Python exporter that queries the repeater periodically and feeds metrics into my existing InfluxDB v2 and Grafana stack.
The source repository also holds personal device backups and mesh node keys, so it remains private; this page summarizes the monitoring pipeline itself.
How the Pipeline Works
- Companion Bridge Connection: An async Python service connects over TCP to a local Heltec V3 companion node running as a MeshCore bridge with automatic reconnection.
- Telemetry & Status Polling: On a scheduled interval, the exporter requests both telemetry and status frames from the remote nRF52 repeater.
- Battery Curve Estimation: Raw battery voltage readings are mapped onto a piecewise 1S Li-Ion / LiPo discharge curve (4.20 V to 3.20 V) to provide a readable battery percentage alongside exact voltage.
- Time-Series Storage & Visualization: Metrics are formatted in InfluxDB Line Protocol and written to InfluxDB v2 using an injected runtime token (never stored in Git), then visualized on a Grafana dashboard.
Collected Metrics
- Power & Environment: Battery voltage, estimated battery percentage, and device temperature.
- RF Link Quality: RSSI, SNR, and noise floor.
- Traffic & Reliability: Node uptime, received/sent packet counters (direct and flood), receive errors, transmit queue length, and TX/RX airtime.