Sorry; just re-read your question. The above didn't answer it fully (though the link did). That's what I get when I get caught up in my own head explaining something, sorry...
The above is still true, but you'll also have to turn OFF the plugs during the night. To do that, you would add a "TIME" instruction - which needs to be _after_ the OSC instruction line. Like so:
Code:
Set OFF
OSC 000:00/010:00/050:00 Then ON
If Time 18:01 to 06:00 Then OFF
The "Time" line will supersede the OSC command between the times given (in this case; 6:01pm-6am), giving you a 12hr window during the "day" where the OSC command turns the pump on every hour, on the hour, for 10 minutes, but then keeps the pump off the rest of the time. (The extra minute on the front of the time command is to allow for 12 on/12off. Without that, you would have 11 on/13off.)
Note that this extra "Time" line will also cut the dosing volume in half (the code works on time; not volume). To account for this, you would need to double the time calculated for a 24hr period. Or, more specifically;
Daily volume desired / 1.1 gives "minutes per day" to have the pump on
"minutes per day"/12 gives you the middle number for the OSC command (keeping in mind that it's a minutes:seconds format; not a decimal)
Subtract that middle number from 60 to get the third number of the OSC command line (this is where the "every hour" part comes from; change this number to anything else to get a different interval)
With the first number at 000:00, that will give you the "on the hour" command.
To get the "on the half-hour" command, subtract 30min from the third number and set the first to 030:00
To use
@Crabs Mcjones target of 70ml/day, then:
70 / 1.1 = 63.63... (63min 38sec per day)
63.63... / 12 = 5.30... (5min 18sec per dose)
Assuming we do Alk at the top of the hour, that command would be:
Code:
Set OFF
OSC 000:00/005:18/054:42 Then On
If Time 18:01 to 06:00 Then OFF
For Ca, we would offset the above by 30min, giving:
Code:
Set OFF
OSC 030:00/005:18/024:42 Then On
If Time 18:31 to 06:30 Then OFF
Note above that the Time command was shifted the 30min as well. This isn't technically required, but I find it's less confusing for me.