From 7460cff16d650679054c4d94fd3ba04fb3f0f4b0 Mon Sep 17 00:00:00 2001 From: siddharth ravikumar Date: Fri, 3 Jun 2022 18:40:28 -0400 Subject: peach: update NewWeather Just do the bidaily forecast for the next 3 days instead of 5. --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 9389d65..3fb2d8d 100644 --- a/main.go +++ b/main.go @@ -43,7 +43,7 @@ type Weather struct { Now WeatherNow Period WeatherPeriod Q2HTimeline WeatherTimeline // Q2H forecast of the next 12 hours. - BiDailyTimeline WeatherTimeline // Bi-daily forecast. + BiDailyTimeline WeatherTimeline // BiDaily forecast for the next 3 days. } type WeatherNow struct { @@ -229,9 +229,9 @@ func NewWeather(point *nws.Point, f, fh *nws.Forecast) (*Weather, error) { Periods: q2hPeriods, } - // Build BiDaily timeline for the next 5 days. + // Build BiDaily timeline for the next 3 days. bdPeriods := []WeatherPeriod{} - max = 12 + max = 8 for _, period := range f.Properties.Periods { p := WeatherPeriod{ Name: period.Name, -- cgit v1.2.3