Error if a PWS is used with the ETo AdjustmentMethod
This commit is contained in:
@@ -16,6 +16,10 @@ async function calculateEToWateringScale(
|
|||||||
pws?: PWS
|
pws?: PWS
|
||||||
): Promise< AdjustmentMethodResponse > {
|
): 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.
|
// Temporarily disabled since OWM forecast data is checking if rain is forecasted for 3 hours in the future.
|
||||||
/*
|
/*
|
||||||
if ( wateringData && wateringData.raining ) {
|
if ( wateringData && wateringData.raining ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user