From 87f0cbac0198458321fa90083ffb59892fdd378e Mon Sep 17 00:00:00 2001 From: Ryan D McGuire Date: Tue, 7 Jan 2025 11:28:34 -0500 Subject: [PATCH] Fix typos, update TODO --- TODO.md | 2 +- pkg/ambient/ambient.go | 2 +- pkg/weather/metrics.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TODO.md b/TODO.md index 1fed548..bd51553 100644 --- a/TODO.md +++ b/TODO.md @@ -5,9 +5,9 @@ - [ ] Add Grafana dashboard - [ ] Add device name field with ID/Key mappings - [ ] Add device type field with ID/Key mappings -- [ ] Consolidate battery status into one metric with device label ## Done +- [x] Consolidate battery status into one metric with device label - [x] Fix shutdown - [x] Add new fields from WS-2192 - [x] Gitea CI diff --git a/pkg/ambient/ambient.go b/pkg/ambient/ambient.go index aafa2cf..42df940 100644 --- a/pkg/ambient/ambient.go +++ b/pkg/ambient/ambient.go @@ -57,7 +57,7 @@ func (aw *AmbientWeather) GetWundergroundHandlerFunc(appCtx context.Context) fun } } -// Takes an HTTP requests and convers it to a +// Takes an HTTP requests and converts it to a // stable type. Enrich is called on the type to complete // any missing fields as the two providers supported by Ambient // devices (awn/wunderground) produce different fields diff --git a/pkg/weather/metrics.go b/pkg/weather/metrics.go index 3105c04..147991d 100644 --- a/pkg/weather/metrics.go +++ b/pkg/weather/metrics.go @@ -56,7 +56,7 @@ func MustInitMetrics(appCtx context.Context) *WeatherMetrics { metric.WithDescription("Outdoor Temperature in Faherenheit")) wm.TempIndoorF, _ = wm.meter.Float64Gauge("weather_temp_indoor_f", metric.WithDescription("Indoor Temperature in Faherenheit")) - wm.HumidityOudoor, _ = wm.meter.Int64Gauge("weather_humidity_oudoor", + wm.HumidityOudoor, _ = wm.meter.Int64Gauge("weather_humidity_outdoor", metric.WithDescription("Outdoor Humidity %")) wm.HumidityIndoor, _ = wm.meter.Int64Gauge("weather_humidity_indoor", metric.WithDescription("Indoor Humidity %"))