mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-29 16:37:17 +02:00
Merge branch 'develop' of https://github.com/airgradienthq/arduino into develop
This commit is contained in:
@ -179,7 +179,7 @@ String OpenMetrics::getPayload(void) {
|
|||||||
|
|
||||||
if (_temp > -1001) {
|
if (_temp > -1001) {
|
||||||
add_metric("temperature",
|
add_metric("temperature",
|
||||||
"The ambient temperature as measured by the AirGradient SHT "
|
"The ambient temperature as measured by the AirGradient SHT / PMS "
|
||||||
"sensor, in degrees Celsius",
|
"sensor, in degrees Celsius",
|
||||||
"gauge", "celsius");
|
"gauge", "celsius");
|
||||||
add_metric_point("", String(_temp));
|
add_metric_point("", String(_temp));
|
||||||
@ -187,21 +187,22 @@ String OpenMetrics::getPayload(void) {
|
|||||||
if (atmpCompensated > -1001) {
|
if (atmpCompensated > -1001) {
|
||||||
add_metric(
|
add_metric(
|
||||||
"temperature_compensated",
|
"temperature_compensated",
|
||||||
"The ambient temperature as measured by the AirGradient SHT / PMS",
|
"The compensated ambient temperature as measured by the AirGradient SHT / PMS "
|
||||||
|
"sensor, in degrees Celsius",
|
||||||
"gauge", "celsius");
|
"gauge", "celsius");
|
||||||
add_metric_point("", String(atmpCompensated));
|
add_metric_point("", String(atmpCompensated));
|
||||||
}
|
}
|
||||||
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));
|
||||||
}
|
}
|
||||||
if (ahumCompensated >= 0) {
|
if (ahumCompensated >= 0) {
|
||||||
add_metric(
|
add_metric(
|
||||||
"humidity_compensated",
|
"humidity_compensated",
|
||||||
"The relative humidity as measured by the AirGradient SHT / PMS sensor",
|
"The compensated relative humidity as measured by the AirGradient SHT / PMS sensor",
|
||||||
"gauge", "percent");
|
"gauge", "percent");
|
||||||
add_metric_point("", String(ahumCompensated));
|
add_metric_point("", String(ahumCompensated));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user