From 49db07071f9728ca603a6f7e228ce0276ffdb342 Mon Sep 17 00:00:00 2001 From: Matthew Oslan Date: Tue, 18 Jun 2019 18:19:53 -0400 Subject: [PATCH] Add more information to EToAdjustmentMethod raw data --- routes/adjustmentMethods/EToAdjustmentMethod.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/routes/adjustmentMethods/EToAdjustmentMethod.ts b/routes/adjustmentMethods/EToAdjustmentMethod.ts index 208495c..128cfe0 100644 --- a/routes/adjustmentMethods/EToAdjustmentMethod.ts +++ b/routes/adjustmentMethods/EToAdjustmentMethod.ts @@ -50,7 +50,12 @@ async function calculateEToWateringScale( scale: scale, rawData: { eto: Math.round( eto * 1000) / 1000, - radiation: Math.round( etoData.solarRadiation * 100) / 100 + radiation: Math.round( etoData.solarRadiation * 100) / 100, + minT: Math.round( etoData.minTemp ), + maxT: Math.round( etoData.maxTemp ), + minH: Math.round( etoData.minHumidity ), + maxH: Math.round( etoData.maxHumidity ), + wind: Math.round( etoData.windSpeed * 10 ) / 10 } } }