diff --git a/pkg/provider/awn/provider.go b/pkg/provider/awn/provider.go index 2abd36d..2cc8729 100644 --- a/pkg/provider/awn/provider.go +++ b/pkg/provider/awn/provider.go @@ -41,8 +41,8 @@ func MapAwnUpdate(awnUpdate *AmbientWeatherUpdate) *weather.WeatherUpdate { return &weather.WeatherUpdate{ StationType: awnUpdate.StationType, DateUTC: &updateTime, - TempOutdoorF: awnUpdate.TempF, - HumidityOudoor: awnUpdate.Humidity, + TempOutdoorF: awnUpdate.TempF, + HumidityOudoor: awnUpdate.Humidity, WindSpeedMPH: awnUpdate.WindGustMPH, WindGustMPH: awnUpdate.WindGustMPH, MaxDailyGust: awnUpdate.MaxDailyGust, @@ -60,6 +60,7 @@ func MapAwnUpdate(awnUpdate *AmbientWeatherUpdate) *weather.WeatherUpdate { BattOutdoorSensor: awnUpdate.BattOut, BattIndoorSensor: awnUpdate.BattIn, BattRainSensor: awnUpdate.BattRain, + BattCO2Sensor: awnUpdate.BattCO2, TempIndoorF: awnUpdate.TempInF, HumidityIndoor: awnUpdate.HumidityIn, BaromRelativeIn: awnUpdate.BaromRelIn, diff --git a/pkg/provider/awn/types.go b/pkg/provider/awn/types.go index e4837c4..c6728be 100644 --- a/pkg/provider/awn/types.go +++ b/pkg/provider/awn/types.go @@ -27,4 +27,5 @@ type AmbientWeatherUpdate struct { BaromRelIn float64 `json:"baromrelin,omitempty" schema:"baromrelin"` BaromAbsIn float64 `json:"baromabsin,omitempty" schema:"baromabsin"` BattIn int `json:"battin,omitempty" schema:"battin"` + BattCO2 int `json:"batt_co2,omitempty" schema:"batt_co2"` } diff --git a/pkg/weather/types.go b/pkg/weather/types.go index 5a7aadf..7756a7a 100644 --- a/pkg/weather/types.go +++ b/pkg/weather/types.go @@ -30,6 +30,7 @@ type WeatherUpdate struct { BattOutdoorSensor int BattIndoorSensor int BattRainSensor int + BattCO2Sensor int BaromRelativeIn float64 BaromAbsoluteIn float64 // These fields may be calculated