Don't disable watering when rain is forecasted

This commit is contained in:
Matthew Oslan
2019-05-31 22:09:23 -04:00
committed by GitHub
parent 87c59aed2e
commit cd6285fa86

View File

@@ -282,9 +282,9 @@ export const getWateringData = async function( req: express.Request, res: expres
rainDelay = ( adjustmentOptions && adjustmentOptions.hasOwnProperty( "d" ) ) ? adjustmentOptions.d : 24; rainDelay = ( adjustmentOptions && adjustmentOptions.hasOwnProperty( "d" ) ) ? adjustmentOptions.d : 24;
} else { } else {
// Temporarily disabled since OWM forecast data is checking if rain is forecasted for 3 hours in the future.
// For any other adjustment method, apply a scale of 0 (as the scale will revert when the rain stops) // For any other adjustment method, apply a scale of 0 (as the scale will revert when the rain stops)
scale = 0; // scale = 0;
} }
} }
} }