From de627f007ed402007607f263338718a94e02efd6 Mon Sep 17 00:00:00 2001 From: Ian Evans Date: Thu, 18 Apr 2019 15:07:16 -0700 Subject: [PATCH] Amount of rain should be 0.1", not 0.01", a typically immesurable amount of rain. --- routes/weather.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routes/weather.js b/routes/weather.js index 598ee89..8e23c7f 100755 --- a/routes/weather.js +++ b/routes/weather.js @@ -87,7 +87,7 @@ function getOWMWeatherData( location, callback ) { callback( weather ); } ); - } ); + } ); } // Calculate timezone and sun rise/set information @@ -166,8 +166,8 @@ function checkWeatherRestriction( adjustmentValue, weather ) { if ( californiaRestriction ) { // If the California watering restriction is in use then prevent watering - // if more then 0.01" of rain has accumulated in the past 48 hours - if ( weather.precip > 0.01 ) { + // if more then 0.1" of rain has accumulated in the past 48 hours + if ( weather.precip > 0.1 ) { return true; } }