From 03b1f4c3412c264764b39ba44ae9b028baa37e04 Mon Sep 17 00:00:00 2001 From: Matthew Oslan Date: Tue, 25 Jun 2019 21:55:21 -0400 Subject: [PATCH] Add precipitation to EToAdjustmentMethod rawData --- routes/adjustmentMethods/EToAdjustmentMethod.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/adjustmentMethods/EToAdjustmentMethod.ts b/routes/adjustmentMethods/EToAdjustmentMethod.ts index 128cfe0..7af5cef 100644 --- a/routes/adjustmentMethods/EToAdjustmentMethod.ts +++ b/routes/adjustmentMethods/EToAdjustmentMethod.ts @@ -55,7 +55,8 @@ async function calculateEToWateringScale( maxT: Math.round( etoData.maxTemp ), minH: Math.round( etoData.minHumidity ), maxH: Math.round( etoData.maxHumidity ), - wind: Math.round( etoData.windSpeed * 10 ) / 10 + wind: Math.round( etoData.windSpeed * 10 ) / 10, + p: Math.round( wateringData.precip * 100 ) / 100 } } }