MQTT: laufende Nummer (total) ins Crossing-Event aufnehmen
Jedes crossing-Event enthaelt jetzt "total" = Gesamtzaehler-Stand zum Zeitpunkt der Ueberquerung (= laufende Nummer des Fahrzeugs). README-Payload-Beispiel ergaenzt. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -214,7 +214,7 @@ Datenbank wie **NocoDB** ablegen.
|
||||
(retained): Beim Verbinden sendet die App `online` (Birth-Message), bei einem
|
||||
Verbindungsabbruch publiziert der Broker automatisch `offline` (Last Will /
|
||||
LWT). So lässt sich jederzeit erkennen, ob der Counter läuft.
|
||||
- Das Payload ist JSON, z. B.:
|
||||
- Das Payload ist JSON (`total` = laufende Nummer dieses Fahrzeugs = Gesamtzähler-Stand), z. B.:
|
||||
```json
|
||||
{
|
||||
"event": "crossing",
|
||||
@@ -222,6 +222,7 @@ Datenbank wie **NocoDB** ablegen.
|
||||
"source": "webcam",
|
||||
"type": "car",
|
||||
"track_id": 42,
|
||||
"total": 183,
|
||||
"ts": "2026-06-01T12:34:56+02:00"
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user