Reformat JSON in docs

This commit is contained in:
Joostlek
2024-06-04 09:20:18 +02:00
parent 2e62abe2d7
commit 4a58b0b1c7

View File

@ -20,8 +20,9 @@ http://airgradient_ecda3b1eaaaf.local/measures/current
“ecda3b1eaaaf” being the serial number of your monitor “ecda3b1eaaaf” being the serial number of your monitor
You get the following response: You get the following response:
~~~ ```json
{"wifi":-46, {
"wifi": -46,
"serialno": "ecda3b1eaaaf", "serialno": "ecda3b1eaaaf",
"rco2": 447, "rco2": 447,
"pm01": 3, "pm01": 3,
@ -37,8 +38,9 @@ You get the following response:
"boot": 6, "boot": 6,
"ledMode": "pm", "ledMode": "pm",
"firmwareVersion": "3.0.10beta", "firmwareVersion": "3.0.10beta",
"fwMode":"I-9PSL"} "fwMode": "I-9PSL"
~~~ }
```
|Properties|Type|Explanation| |Properties|Type|Explanation|
|-|-|-| |-|-|-|
@ -60,8 +62,9 @@ You get the following response:
#### Get Configuration Parameters (GET) #### Get Configuration Parameters (GET)
With the path "/config" you can get the current configuration. With the path "/config" you can get the current configuration.
~~~ ```json
{"country":"US", {
"country": "US",
"pmStandard": "ugm3", "pmStandard": "ugm3",
"ledBarMode": "pm", "ledBarMode": "pm",
"displayMode": "on", "displayMode": "on",
@ -71,8 +74,9 @@ With the path "/config" you can get the current configuration.
"mqttBrokerUrl": "", "mqttBrokerUrl": "",
"temperatureUnit": "f", "temperatureUnit": "f",
"configurationControl": "both", "configurationControl": "both",
"postDataToAirGradient":true} "postDataToAirGradient": true
~~~ }
```
#### Set Configuration Parameters (PUT) #### Set Configuration Parameters (PUT)