Add support for co2 battery
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build and Publish / release (push) Successful in 2m57s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build and Publish / release (push) Successful in 2m57s
				
			This commit is contained in:
		| @@ -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, | ||||
|   | ||||
| @@ -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"` | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user