summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsiddharth ravikumar <s@ricketyspace.net>2022-06-03 18:40:28 -0400
committersiddharth ravikumar <s@ricketyspace.net>2022-06-03 18:40:28 -0400
commit7460cff16d650679054c4d94fd3ba04fb3f0f4b0 (patch)
tree79325a3e982285b83e482cc23230cec7f26c62f1
parentb8f953d2c2752c3a7c9303ad6bbdc81fbb7fb096 (diff)
peach: update NewWeather
Just do the bidaily forecast for the next 3 days instead of 5.
-rw-r--r--main.go6
1 files changed, 3 insertions, 3 deletions
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,