diff options
author | siddharth ravikumar <s@ricketyspace.net> | 2022-06-03 18:40:28 -0400 |
---|---|---|
committer | siddharth ravikumar <s@ricketyspace.net> | 2022-06-03 18:40:28 -0400 |
commit | 7460cff16d650679054c4d94fd3ba04fb3f0f4b0 (patch) | |
tree | 79325a3e982285b83e482cc23230cec7f26c62f1 /main.go | |
parent | b8f953d2c2752c3a7c9303ad6bbdc81fbb7fb096 (diff) |
peach: update NewWeather
Just do the bidaily forecast for the next 3 days instead of 5.
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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, |