Add support for co2 battery
All checks were successful
Build and Publish / release (push) Successful in 2m57s

This commit is contained in:
Ryan McGuire 2025-01-05 18:39:58 -05:00
parent 2e3cfb44f4
commit 2ed4eca56c
3 changed files with 5 additions and 2 deletions

View File

@ -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,

View File

@ -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"`
}

View File

@ -30,6 +30,7 @@ type WeatherUpdate struct {
BattOutdoorSensor int
BattIndoorSensor int
BattRainSensor int
BattCO2Sensor int
BaromRelativeIn float64
BaromAbsoluteIn float64
// These fields may be calculated