Peristaltic Doser - Doser set amount over 24hr period

This might help. Check the source for the code, and replace the function names/arguments in the buttons. See if that not only works, but if you also understand what’s going on.
This is using the (now old) javascript library:
http://jordymoors.nl/particle/demos/function_button.html