Add attribution to Watering Data

This commit is contained in:
Pete ba
2019-10-27 14:29:37 +00:00
parent 4806428c84
commit 0f2607bb19
4 changed files with 9 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ async function calculateZimmermanWateringScale(
*/
const rawData = {
weatherProvider: wateringData.weatherProvider,
h: wateringData ? Math.round( wateringData.humidity * 100) / 100 : null,
p: wateringData ? Math.round( wateringData.precip * 100 ) / 100 : null,
t: wateringData ? Math.round( wateringData.temp * 10 ) / 10 : null,