bugfix wunderground reporting
This commit is contained in:
@@ -39,7 +39,17 @@ func main() {
|
||||
cancel()
|
||||
}()
|
||||
|
||||
latest := &mqttingest.Latest{}
|
||||
rainDayLoc := time.Local
|
||||
if cfg.Site.Timezone != "" {
|
||||
loc, err := time.LoadLocation(cfg.Site.Timezone)
|
||||
if err != nil {
|
||||
log.Fatalf("site timezone load: %v", err)
|
||||
}
|
||||
rainDayLoc = loc
|
||||
}
|
||||
log.Printf("rain day timezone: %s", rainDayLoc)
|
||||
|
||||
latest := mqttingest.NewLatest(rainDayLoc)
|
||||
forecastCache := &ForecastCache{}
|
||||
|
||||
d, err := db.Open(ctx, cfg.DB.ConnString)
|
||||
|
||||
Reference in New Issue
Block a user