From 873b6d941f479462c5fed5fa25096aaf5373d681 Mon Sep 17 00:00:00 2001 From: Ray Date: Sun, 21 May 2023 23:37:42 -0400 Subject: [PATCH] fix ETo precipitation issue: the variable name is precipitationAmount, not intensity, which also implies no multiplying 24 --- routes/weatherProviders/Apple.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/weatherProviders/Apple.ts b/routes/weatherProviders/Apple.ts index 7096bb7..84f012c 100644 --- a/routes/weatherProviders/Apple.ts +++ b/routes/weatherProviders/Apple.ts @@ -172,7 +172,7 @@ export default class AppleWeatherProvider extends WeatherProvider { solarRadiation: approximateSolarRadiation( cloudCoverInfo, coordinates ), // Assume wind speed measurements are taken at 2 meters. windSpeed: this.kphToMph( windSpeed ), - precip: this.mmToInchesPerHour( historicData.forecastDaily.days[ 0 ].precipIntensity || 0 ) * 24 + precip: this.mmToInchesPerHour( historicData.forecastDaily.days[ 0 ].precipitationAmount || 0 ) }; }