From f1b85201002bd2a507d7636cf3aeff9ddf46631d Mon Sep 17 00:00:00 2001 From: Zak Timson Date: Thu, 3 Jan 2019 14:10:48 -0500 Subject: [PATCH] Get weather every half hour --- src/app/weather/weather.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/weather/weather.service.ts b/src/app/weather/weather.service.ts index 7402804..c93e8f8 100644 --- a/src/app/weather/weather.service.ts +++ b/src/app/weather/weather.service.ts @@ -34,7 +34,7 @@ export class WeatherService { this.sub = null; } - this.sub = timer(0, 60000).subscribe(async () => { + this.sub = timer(0, 1800000).subscribe(async () => { let temp: any = await this.http.get(`https://dataservice.accuweather.com/forecasts/v1/daily/5day/${this.locationKey}?apikey=${environment.accuWeather}&metric=${this.metric}&details=true`).toPromise(); this.weather = temp['DailyForecasts'].map(forecast => ({ cloudCover: forecast.Day.CloudCover / 100,