diff --git a/OhmGraphite/OhmGraphite.csproj b/OhmGraphite/OhmGraphite.csproj index 0f1d2b9..8aeec82 100644 --- a/OhmGraphite/OhmGraphite.csproj +++ b/OhmGraphite/OhmGraphite.csproj @@ -35,7 +35,7 @@ - + diff --git a/OhmGraphite/PrometheusCollection.cs b/OhmGraphite/PrometheusCollection.cs index 6850821..c1c1c59 100644 --- a/OhmGraphite/PrometheusCollection.cs +++ b/OhmGraphite/PrometheusCollection.cs @@ -81,6 +81,8 @@ string BaseUnit() return "control_percent"; case SensorType.Level: // % return "level_percent"; + case SensorType.Humidity: // % + return "humidity_percent"; case SensorType.Fan: // RPM return "revolutions_per_minute"; case SensorType.Flow: // L/h diff --git a/OhmGraphite/Translation.cs b/OhmGraphite/Translation.cs index 9ee56a4..21bb4ca 100644 --- a/OhmGraphite/Translation.cs +++ b/OhmGraphite/Translation.cs @@ -25,7 +25,8 @@ public enum SensorType Throughput, // B/s TimeSpan, // Seconds Energy, // milliwatt-hour (mWh) - Noise // dBA + Noise, // dBA + Humidity, // % } /// @@ -91,6 +92,8 @@ public static SensorType ToOwnSensor(this LibreHardwareMonitor.Hardware.SensorTy return SensorType.Energy; case LibreHardwareMonitor.Hardware.SensorType.Noise: return SensorType.Noise; + case LibreHardwareMonitor.Hardware.SensorType.Humidity: + return SensorType.Humidity; default: throw new ArgumentOutOfRangeException(nameof(s), s, "unexpected hardware monitor sensor translation"); }