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,