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,25 +20,27 @@ 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, {
"serialno":"ecda3b1eaaaf", "wifi": -46,
"rco2":447, "serialno": "ecda3b1eaaaf",
"pm01":3, "rco2": 447,
"pm02":7, "pm01": 3,
"pm10":8, "pm02": 7,
"pm003Count":442, "pm10": 8,
"atmp":25.87, "pm003Count": 442,
"rhum":43, "atmp": 25.87,
"tvocIndex":100, "rhum": 43,
"tvoc_raw":33051, "tvocIndex": 100,
"noxIndex":1, "tvoc_raw": 33051,
"nox_raw":16307, "noxIndex": 1,
"boot":6, "nox_raw": 16307,
"ledMode":"pm", "boot": 6,
"firmwareVersion":"3.0.10beta", "ledMode": "pm",
"fwMode":"I-9PSL"} "firmwareVersion": "3.0.10beta",
~~~ "fwMode": "I-9PSL"
}
```
|Properties|Type|Explanation| |Properties|Type|Explanation|
|-|-|-| |-|-|-|
@ -60,19 +62,21 @@ 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", {
"pmStandard":"ugm3", "country": "US",
"ledBarMode":"pm", "pmStandard": "ugm3",
"displayMode":"on", "ledBarMode": "pm",
"abcDays":30, "displayMode": "on",
"tvocLearningOffset":12, "abcDays": 30,
"noxLearningOffset":12, "tvocLearningOffset": 12,
"mqttBrokerUrl":"", "noxLearningOffset": 12,
"temperatureUnit":"f", "mqttBrokerUrl": "",
"configurationControl":"both", "temperatureUnit": "f",
"postDataToAirGradient":true} "configurationControl": "both",
~~~ "postDataToAirGradient": true
}
```
#### Set Configuration Parameters (PUT) #### Set Configuration Parameters (PUT)