Proxy updates for AWN
All checks were successful
Build and Publish / release (push) Successful in 2m53s
All checks were successful
Build and Publish / release (push) Successful in 2m53s
This commit is contained in:
@ -18,6 +18,14 @@ const (
|
||||
awnURL = "http://ambientweather.net/data/report"
|
||||
)
|
||||
|
||||
// Battery Sensors
|
||||
const (
|
||||
BattOutdoorSensor = "OutdoorSensor"
|
||||
BattIndoorSensor = "IndoorSensor"
|
||||
BattRainSensor = "RainSensor"
|
||||
BattCO2Sensor = "CO2Sensor"
|
||||
)
|
||||
|
||||
func (awn *AWNProvider) Name() string {
|
||||
return providerName
|
||||
}
|
||||
@ -66,19 +74,19 @@ func MapAwnUpdate(awnUpdate *AmbientWeatherUpdate) *weather.WeatherUpdate {
|
||||
TotalRainIn: awnUpdate.TotalRainIn,
|
||||
Batteries: []weather.BatteryStatus{
|
||||
{
|
||||
Component: "OutdoorSensor",
|
||||
Component: BattOutdoorSensor,
|
||||
Status: awnUpdate.BattOut,
|
||||
},
|
||||
{
|
||||
Component: "IndoorSensor",
|
||||
Component: BattIndoorSensor,
|
||||
Status: awnUpdate.BattIn,
|
||||
},
|
||||
{
|
||||
Component: "RainSensor",
|
||||
Component: BattRainSensor,
|
||||
Status: awnUpdate.BattRain,
|
||||
},
|
||||
{
|
||||
Component: "CO2Sensor",
|
||||
Component: BattCO2Sensor,
|
||||
Status: awnUpdate.BattCO2,
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user