Amount of rain should be 0.1", not 0.01", a typically immesurable amount of rain.

This commit is contained in:
Ian Evans
2019-04-18 15:07:16 -07:00
parent 3984a31d09
commit de627f007e

View File

@@ -87,7 +87,7 @@ function getOWMWeatherData( location, callback ) {
callback( weather ); callback( weather );
} ); } );
} ); } );
} }
// Calculate timezone and sun rise/set information // Calculate timezone and sun rise/set information
@@ -166,8 +166,8 @@ function checkWeatherRestriction( adjustmentValue, weather ) {
if ( californiaRestriction ) { if ( californiaRestriction ) {
// If the California watering restriction is in use then prevent watering // 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 more then 0.1" of rain has accumulated in the past 48 hours
if ( weather.precip > 0.01 ) { if ( weather.precip > 0.1 ) {
return true; return true;
} }
} }