Format JSON
Some checks failed
Build Golang packages / release (push) Waiting to run
Build Docker image / build (push) Has been cancelled

This commit is contained in:
Pieter Hollander 2024-06-15 21:01:12 +02:00
parent b09954ca7c
commit 3075f33f84
Signed by: pieter
SSH key fingerprint: SHA256:HbX+9cBXsop9SuvL+mELd29sK+7DehFfdVweFVDtMSg

View file

@ -96,9 +96,32 @@ P1 Logger relies on a JSON input provided by a P1 reader.
The P1 reader should send its data to an MQTT broker in the following JSON structure
```json
{"t":"240615205754S","dt1":1448411,"dt2":1188886,"rt1":498463,"rt2":1111828,"d":0,"r":121,"f":18,"fl":17,"g":1238688,"v1":228,"v2":231,"v3":230,"c1":0,"c2":0,"c3":0,"d1":0,"d2":0,"d3":4,"r1":41,"r2":71,"r3":0}
{
"t":"240615205754S",
"dt1":1448411,
"dt2":1188886,
"rt1":498463,
"rt2":1111828,
"d":0,
"r":121,
"f":18,
"fl":17,
"g":1238688,
"v1":228,
"v2":231,
"v3":230,
"c1":0,
"c2":0,
"c3":0,
"d1":0,
"d2":0,
"d3":4,
"r1":41,
"r2":71,
"r3":0}
```
This is currently achieved using an ESP32 with ESPhome. Configuration files for the ESP32 setup will be added soon.
## References