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:
@ -124,13 +124,21 @@ func (aw *AmbientWeather) handleProviderRequest(
|
||||
err := aw.awnProvider.ProxyReq(ctx, update)
|
||||
if err != nil {
|
||||
zerolog.Ctx(aw.appCtx).Err(err).Msg("failed to proxy to ambient weather")
|
||||
return
|
||||
}
|
||||
zerolog.Ctx(aw.appCtx).Debug().
|
||||
Str("station", station.Name).
|
||||
Msg("proxied weather update to awn")
|
||||
}
|
||||
if station.ProxyToWunderground {
|
||||
err := aw.wuProvider.ProxyReq(ctx, update)
|
||||
if err != nil {
|
||||
zerolog.Ctx(aw.appCtx).Err(err).Msg("failed to proxy to ambient weather")
|
||||
return
|
||||
}
|
||||
zerolog.Ctx(aw.appCtx).Debug().
|
||||
Str("station", station.Name).
|
||||
Msg("proxied weather update to wunderground")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user