Use 24 hour windows in OWM WeatherProvider

This commit is contained in:
Matthew Oslan
2019-05-13 19:43:35 -04:00
parent e1750287b3
commit 0a75b3da52
2 changed files with 3 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ async function getOWMWateringData( coordinates: GeoCoordinates ): Promise< Water
totalHumidity = 0,
totalPrecip = 0;
const periods = Math.min(forecast.list.length, 10);
const periods = Math.min(forecast.list.length, 8);
for ( let index = 0; index < periods; index++ ) {
totalTemp += parseFloat( forecast.list[ index ].main.temp );
totalHumidity += parseInt( forecast.list[ index ].main.humidity );