mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-05 04:06:31 +02:00
Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
@ -86,6 +86,13 @@ String OpenMetrics::getPayload(void) {
|
|||||||
_temp = measure.Temperature;
|
_temp = measure.Temperature;
|
||||||
_hum = measure.Humidity;
|
_hum = measure.Humidity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (config.hasSensorPMS1) {
|
||||||
|
pm01 = measure.pm01_1;
|
||||||
|
pm25 = measure.pm25_1;
|
||||||
|
pm10 = measure.pm10_1;
|
||||||
|
pm03PCount = measure.pm03PCount_1;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (config.hasSensorPMS1) {
|
if (config.hasSensorPMS1) {
|
||||||
_temp = measure.temp_1;
|
_temp = measure.temp_1;
|
||||||
@ -195,7 +202,7 @@ String OpenMetrics::getPayload(void) {
|
|||||||
if (_hum >= 0) {
|
if (_hum >= 0) {
|
||||||
add_metric(
|
add_metric(
|
||||||
"humidity",
|
"humidity",
|
||||||
"The relative humidity as measured by the AirGradient SHT sensor"
|
"The relative humidity as measured by the AirGradient SHT sensor",
|
||||||
"gauge", "percent");
|
"gauge", "percent");
|
||||||
add_metric_point("", String(_hum));
|
add_metric_point("", String(_hum));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user