summaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorsiddharth ravikumar <s@ricketyspace.net>2022-06-03 20:32:34 -0400
committersiddharth ravikumar <s@ricketyspace.net>2022-06-03 20:32:34 -0400
commitcc9452bac132d58ca73fe4317f37f6fd7afe6153 (patch)
tree20182723dde25055e9130b46fd7d984c48d01100 /main.go
parent7460cff16d650679054c4d94fd3ba04fb3f0f4b0 (diff)
peach: update Weather
Remove Period field.
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/main.go b/main.go
index 3fb2d8d..2fd2de6 100644
--- a/main.go
+++ b/main.go
@@ -41,7 +41,6 @@ type Weather struct {
Version string
Location string
Now WeatherNow
- Period WeatherPeriod
Q2HTimeline WeatherTimeline // Q2H forecast of the next 12 hours.
BiDailyTimeline WeatherTimeline // BiDaily forecast for the next 3 days.
}
@@ -199,9 +198,6 @@ func NewWeather(point *nws.Point, f, fh *nws.Forecast) (*Weather, error) {
WindSpeed: fh.Properties.Periods[0].WindSpeed,
WindDirection: fh.Properties.Periods[0].WindDirection,
}
- w.Period = WeatherPeriod{
- Forecast: f.Properties.Periods[0].DetailedForecast,
- }
// Build Q2H timeline for the 12 hours.
q2hPeriods := []WeatherPeriod{}