diff --git a/docs/local-server.md b/docs/local-server.md index 307ad8c..f4b3f0c 100644 --- a/docs/local-server.md +++ b/docs/local-server.md @@ -50,12 +50,20 @@ You get the following response: |-----------------------------------|---------|----------------------------------------------------------------------------------------| | `serialno` | String | Serial Number of the monitor | | `wifi` | Number | WiFi signal strength | -| `pm01` | Number | PM1 in ug/m3 | -| `pm02` | Number | PM2.5 in ug/m3 | -| `pm10` | Number | PM10 in ug/m3 | +| `pm01` | Number | PM1.0 in ug/m3 (atmospheric environment) | +| `pm02` | Number | PM2.5 in ug/m3 (atmospheric environment) | +| `pm10` | Number | PM10 in ug/m3 (atmospheric environment) | | `pm02Compensated` | Number | PM2.5 in ug/m3 with correction applied (from fw version 3.1.4 onwards) | +| `pm01Standard` | Number | PM1.0 in ug/m3 (standard particle) | +| `pm02Standard` | Number | PM2.5 in ug/m3 (standard particle) | +| `pm10Standard` | Number | PM10 in ug/m3 (standard particle) | | `rco2` | Number | CO2 in ppm | -| `pm003Count` | Number | Particle count per dL | +| `pm003Count` | Number | Particle count 0.3um per dL | +| `pm005Count` | Number | Particle count 0.5um per dL | +| `pm01Count` | Number | Particle count 1.0um per dL | +| `pm02Count` | Number | Particle count 2.5um per dL | +| `pm50Count` | Number | Particle count 5.0um per dL (only for indoor monitor) | +| `pm10Count` | Number | Particle count 10um per dL (only for indoor monitor) | | `atmp` | Number | Temperature in Degrees Celsius | | `atmpCompensated` | Number | Temperature in Degrees Celsius with correction applied | | `rhum` | Number | Relative Humidity | @@ -65,16 +73,17 @@ You get the following response: | `noxIndex` | Number | Senisirion NOx Index | | `noxRaw` | Number | NOx raw value | | `boot` | Number | Counts every measurement cycle. Low boot counts indicate restarts. | -| `bootCount` | Number | Same as boot property. Required for Home Assistant compatability. Will be depreciated. | +| `bootCount` | Number | Same as boot property. Required for Home Assistant compatability. (deprecated soon!) | | `ledMode` | String | Current configuration of the LED mode | | `firmware` | String | Current firmware version | | `model` | String | Current model name | -| `monitorDisplayCompensatedValues` | Boolean | Switching Display of AirGradient ONE to Compensated / Non Compensated Values | Compensated values apply correction algorithms to make the sensor values more accurate. Temperature and relative humidity correction is only applied on the outdoor monitor Open Air but the properties _compensated will still be send also for the indoor monitor AirGradient ONE. #### Get Configuration Parameters (GET) -With the path "/config" you can get the current configuration. + +"/config" path returns the current configuration of the monitor. + ```json { "country": "TH", @@ -91,28 +100,40 @@ With the path "/config" you can get the current configuration. "displayBrightness": 100, "offlineMode": false, "model": "I-9PSL", - "monitorDisplayCompensatedValues": true + "monitorDisplayCompensatedValues": true, + "corrections": { + "pm02": { + "correctionAlgorithm": "epa_2021", + "slr": {} + } + } + } } ``` #### Set Configuration Parameters (PUT) -Configuration parameters can be changed with a put request to the monitor, e.g. +Configuration parameters can be changed with a PUT request to the monitor, e.g. Example to force CO2 calibration - ```curl -X PUT -H "Content-Type: application/json" -d '{"co2CalibrationRequested":true}' http://airgradient_84fce612eff4.local/config ``` + ```bash + curl -X PUT -H "Content-Type: application/json" -d '{"co2CalibrationRequested":true}' http://airgradient_84fce612eff4.local/config + ``` Example to set monitor to Celsius - ```curl -X PUT -H "Content-Type: application/json" -d '{"temperatureUnit":"c"}' http://airgradient_84fce612eff4.local/config ``` + ```bash + curl -X PUT -H "Content-Type: application/json" -d '{"temperatureUnit":"c"}' http://airgradient_84fce612eff4.local/config + ``` If you use command prompt on Windows, you need to escape the quotes: ``` -d "{\"param\":\"value\"}" ``` #### Avoiding Conflicts with Configuration on AirGradient Server -If the monitor is set up on the AirGradient dashboard, it will also receive configurations from there. In case you do not want this, please set `configurationControl` to `local`. In case you set it to `cloud` and want to change it to `local`, you need to make a factory reset. + +If the monitor is set up on the AirGradient dashboard, it will also receive the configuration parameters from there. In case you do not want this, please set `configurationControl` to `local`. In case you set it to `cloud` and want to change it to `local`, you need to make a factory reset. #### Configuration Parameters (GET/PUT) @@ -134,4 +155,47 @@ If the monitor is set up on the AirGradient dashboard, it will also receive conf | `noxLearningOffset` | Set NOx learning gain offset. | Number | 0-720 (default 12) | `{"noxLearningOffset": 12}` | | `tvocLearningOffset` | Set VOC learning gain offset. | Number | 0-720 (default 12) | `{"tvocLearningOffset": 12}` | | `offlineMode` | Set monitor to run without WiFi. | Boolean | `false`: Disabled (default)
`true`: Enabled | `{"offlineMode": true}` | -| `monitorDisplayCompensatedValues` | Set the display show the PM value with/without compensate value (From [3.1.9]()) | Boolean | `false`: Without compensate (default)
`true`: with compensate | `{"monitorDisplayCompensatedValues": false }` | +| `monitorDisplayCompensatedValues` | Set the display show the PM value with/without compensate value (only on [3.1.9]()) | Boolean | `false`: Without compensate (default)
`true`: with compensate | `{"monitorDisplayCompensatedValues": false }` | +| `corrections` | Sets correction options to display and measurement values on local server response. | Object | _see corretions section_ | _see corretions section_ | + + + +#### Corrections + +The `corrections` object allows configuring PM2.5 correction algorithms and parameters. This affects both the display and local server response values. + +Example correction configuration: + +```json +{ + "corrections": { + "pm02": { + "correctionAlgorithm": "