Proxy updates for AWN
All checks were successful
Build and Publish / release (push) Successful in 2m53s

This commit is contained in:
2025-01-12 17:49:54 -05:00
parent 19823ea08f
commit e8fbacfe6d
3 changed files with 35 additions and 4 deletions

View File

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