Verify republish scripts compatibility with current CSV/MQTT formats

- Fix documentation: CSV header typo (ts_hms_utc  ts_hms_local)
- Add comprehensive compatibility test suite (test_republish_compatibility.py)
- Both republish_mqtt.py and republish_mqtt_gui.py verified working
- Tests: CSV parsing, MQTT JSON format, legacy compatibility, InfluxDB schema
- All 5/5 compatibility tests passing
- Create detailed compatibility reports and validation documentation
This commit is contained in:
2026-03-11 20:43:09 +01:00
parent e89aee7048
commit 3e9259735e
5 changed files with 869 additions and 1 deletions

View File

@@ -81,9 +81,11 @@ python republish_mqtt.py \
The script expects CSV files exported from the SD card with this header:
```
ts_utc,ts_hms_utc,p_w,p1_w,p2_w,p3_w,e_kwh,bat_v,bat_pct,rssi,snr,err_m,err_d,err_tx,err_last
ts_utc,ts_hms_local,p_w,p1_w,p2_w,p3_w,e_kwh,bat_v,bat_pct,rssi,snr,err_m,err_d,err_tx,err_last
```
Note: `ts_hms_local` is the local time (HH:MM:SS) in your configured timezone, not UTC. The `ts_utc` field contains the Unix timestamp in UTC.
Each row is one meter sample. The script converts these to MQTT JSON format:
```json
{