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.
That logic is already included in the firmware. Here is a line of code that implements that: https://github.com/OpenSprinkler/OpenSprinkler-Firmware/blob/master/main.cpp#L443
it’s not user configurable yet, but it basically says if the watering percentage is less than 20% and if the calculated watering time is below 10 seconds, set the water time of that zone to 0.
That would explain it, as when these waterings occur, they are usually below 20%, but certainly longer than 10 sec.
I’ll change it to “||” or remove the time limit, recompile and see what happens 🙂
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.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.