From a91f6c1fa0fdda2a830859d01b0f24f311a4c7db Mon Sep 17 00:00:00 2001 From: Achim Date: Sun, 21 Apr 2024 17:28:56 +0700 Subject: [PATCH] Added documentation for Open Metrics --- examples/OneOpenAir/OpenMetrics.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/OneOpenAir/OpenMetrics.cpp b/examples/OneOpenAir/OpenMetrics.cpp index 7d84057f..12ad15c9 100644 --- a/examples/OneOpenAir/OpenMetrics.cpp +++ b/examples/OneOpenAir/OpenMetrics.cpp @@ -179,7 +179,7 @@ String OpenMetrics::getPayload(void) { if (_temp > -1001) { 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", "gauge", "celsius"); add_metric_point("", String(_temp)); @@ -187,21 +187,22 @@ String OpenMetrics::getPayload(void) { if (atmpCompensated > -1001) { add_metric( "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"); add_metric_point("", String(atmpCompensated)); } if (_hum >= 0) { add_metric( "humidity", - "The relative humidity as measured by the AirGradient SHT sensor", + "The relative humidity as measured by the AirGradient SHT sensor" "gauge", "percent"); add_metric_point("", String(_hum)); } if (ahumCompensated >= 0) { add_metric( "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"); add_metric_point("", String(ahumCompensated)); }