Skip to content

Commit 55d75d8

Browse files
committed
WeatherDataLoader: update weather ttl
1 parent 12e05b0 commit 55d75d8

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

common/src/main/java/com/thewizrd/common/weatherdata/WeatherDataLoader.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ class WeatherDataLoader {
414414
} else {
415415
Duration.between(weather.condition!!.observationTime, now).toMinutes()
416416
}
417-
if (duraMins > 90) {
417+
if (duraMins > 120) {
418418
val interval =
419419
weatherModule.weatherManager.getWeatherProvider(weather.source)
420420
.getHourlyForecastInterval()

weather-api/src/main/java/com/thewizrd/weather_api/brightsky/WeatherData.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ fun createWeatherData(
136136
atmosphere = createAtmosphere(currRoot)
137137
precipitation = createPrecipitation(currRoot)
138138

139-
ttl = 180
139+
ttl = 120
140140

141141
// Set feelslike temp
142142
if (condition?.feelslikeF == null && condition?.tempF != null && condition?.windMph != null && atmosphere?.humidity != null) {

weather-api/src/main/java/com/thewizrd/weather_api/eccc/WeatherData.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ fun createWeatherData(root: LocationResponseItem): Weather {
7070
astronomy = createAstronomy(root.riseSet)
7171
weatherAlerts = createWeatherAlerts(root.alert)
7272

73-
ttl = 180
73+
ttl = 120
7474

7575
if ((condition?.highF == null || condition?.highC == null) && forecast!!.size > 0) {
7676
condition!!.highF = forecast!![0].highF

weather-api/src/main/java/com/thewizrd/weather_api/here/weather/WeatherData.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ fun createWeatherData(root: PlacesItem): Weather {
7676
atmosphere = createAtmosphere(observation)
7777
astronomy = createAstronomy(root.astronomyForecasts!![0].forecasts!!)
7878
precipitation = createPrecipitation(observation, todaysForecast)
79-
ttl = 180
79+
ttl = 120
8080

8181
source = WeatherAPI.HERE
8282
}

weather-api/src/main/java/com/thewizrd/weather_api/nws/WeatherData.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ fun createWeatherData(
159159
atmosphere = createAtmosphere(forecastResponse)
160160
//astronomy = new Astronomy(obsCurrentResponse);
161161
precipitation = createPrecipitation(forecastResponse)
162-
ttl = 180
162+
ttl = 120
163163

164164
if (condition!!.highF == null && forecast!!.size > 0) {
165165
condition!!.highF = forecast!![0].highF

weather-api/src/main/java/com/thewizrd/weather_api/tomorrow/WeatherData.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ fun createWeatherData(root: Rootobject, minutelyRoot: Rootobject?, alertRoot: Al
100100

101101
weatherAlerts = createWeatherAlerts(alertRoot)
102102

103-
ttl = 180
103+
ttl = 120
104104
source = WeatherAPI.TOMORROWIO
105105
}
106106
}

weather-api/src/main/java/com/thewizrd/weather_api/weatherkit/WeatherData.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ fun createWeatherData(root: com.thewizrd.weather_api.weatherkit.Weather): Weathe
8080
astronomy = createAstronomy(it)
8181
}
8282
precipitation = createPrecipitation(root.currentWeather!!)
83-
ttl = 180
83+
ttl = 120
8484

8585
if ((condition!!.highF == null || condition!!.highC == null) && forecast!!.size > 0) {
8686
condition!!.highF = forecast!![0].highF

0 commit comments

Comments
 (0)