Merge pull request #15 from shampeon/master
Amount of rain to trigger California rain restrictions should be 0.1", not 0.01"
This commit is contained in:
@@ -85,7 +85,7 @@ function getOWMWateringData( location, callback ) {
|
|||||||
|
|
||||||
callback( weather );
|
callback( weather );
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Retrieve weather data from Open Weather Map for App
|
// Retrieve weather data from Open Weather Map for App
|
||||||
@@ -210,8 +210,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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user