Skip to content

Commit

Permalink
Fix humidity to 0-1 range
Browse files Browse the repository at this point in the history
  • Loading branch information
benclapp committed May 17, 2024
1 parent 55db760 commit 8a57533
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ func (e *Exporter) Collect(ch chan<- prometheus.Metric) {

parseAndSetValues("di.CurrentTemperature", di.CurrentTemperature, 100, temp, ch, "0")
parseAndSetValues("di.CurrentTemperature2", di.CurrentTemperature2, 100, temp, ch, "1")
parseAndSetValues("di.CurrentHumidity", di.CurrentHumidity, 100, humidity, ch, "0")
parseAndSetValues("di.CurrentHumidity2", di.CurrentHumidity2, 100, humidity, ch, "1")
parseAndSetValues("di.CurrentHumidity", di.CurrentHumidity, 10000, humidity, ch, "0")
parseAndSetValues("di.CurrentHumidity2", di.CurrentHumidity2, 10000, humidity, ch, "1")
parseAndSetValues("di.WorkTemperature", di.WorkTemperature, 1, targetTemp, ch)
parseAndSetValues("di.HeapHealth", di.HeapHealth, 1, heapHealth, ch)
parseAndSetValues("di.IsHeating", di.IsHeating, 1, heating, ch)
Expand Down

0 comments on commit 8a57533

Please sign in to comment.