just a thought I recently had:
We seem to have some weather lately where the weather adjustment (which is usually quite right) decides to water only 5% or so. Knowing the algorithm, this is not surprising, but with this short irrigation period it does not really make sense.
How about introducing an option in the settings (linked to an if-clause when calculating irrigation percentage) as a user-setting called “cut-off percentage”? Meaning the user would set a defined percentage there and the irrigation time is set to zero if the calculated value is below that percentage.
Yes that’s a logic AND. The reason the condition water_time < 10 exists is that if the water time is very long to begin with, say, 10 hours. Then even if the watering percentage is only 10%, that's still an hour of water time, and I assume the user would not want the water time to be skipped. For that reason, the condition checked both variables.