rszimm / sprinklers_pi

Sprinkling System Control Program for the Raspberry Pi
GNU General Public License v2.0
310 stars 100 forks source link

Quick Schedule #135

Closed tazziehn closed 5 years ago

tazziehn commented 5 years ago

Hi there from Germany. Found Sprinklers_Pi and testing around..... Have a Problem (Bug ?) in Quick Schedule. When i set a QsTime (i.E. 2 min) an Start, the running Time are random. QsTime Set: 3min...Running Time 2:24 QsTime Set: 1min...Running Time 0:31 QsTime Set: 1min...Running Time 0:54 ....... is there a Fix ?

thanks

nhorvath commented 5 years ago

Sprinklers Pi always operates zone transitions at even minutes. Usually this is not an issue because on a normal schedule all zones start at 0 seconds into the minute, then stop at the end of a minute. Quick schedule begins immediately, so if you begin it in the middle of a minute it will chop off that part of the first minute. Subsequent zones in the quick schedule will run for their entire duration. If it is important to you that the zone runs for exactly the time you say, you can either start the quick schedule as soon as the minute starts, or make zone 1 an empty zone and schedule it for 1 minute always.

This only effects quick schedule as normal schedules will always start at the beginning of a minute.