Format JSON
This commit is contained in:
parent
b09954ca7c
commit
3075f33f84
1 changed files with 24 additions and 1 deletions
25
README.md
25
README.md
|
@ -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
|
The P1 reader should send its data to an MQTT broker in the following JSON structure
|
||||||
|
|
||||||
```json
|
```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.
|
This is currently achieved using an ESP32 with ESPhome. Configuration files for the ESP32 setup will be added soon.
|
||||||
|
|
||||||
## References
|
## References
|
||||||
|
|
Loading…
Reference in a new issue