Error if a PWS is used with the ETo AdjustmentMethod

This commit is contained in:
Matthew Oslan
2019-07-06 10:17:44 -04:00
parent 114786efba
commit 3112498f3c

View File

@@ -16,6 +16,10 @@ async function calculateEToWateringScale(
pws?: PWS
): Promise< AdjustmentMethodResponse > {
if ( pws ) {
throw "ETo adjustment method does not support personal weather stations through WUnderground.";
}
// Temporarily disabled since OWM forecast data is checking if rain is forecasted for 3 hours in the future.
/*
if ( wateringData && wateringData.raining ) {