I used this discussion for the build and integration. The YAMK code did not work for me, so I had to tweak it to get it working. The problem with that is I'm not a coder, I can "read" it somewhat, but can't just code on my own, but I've started learning in my free time. So it took me few days to a week to get it working, especially since I had to translate the Name/Friendly Name. Most were fine and easy, but the one that took 90% of the time to fix was abbreviated so I couldn't just Google translate it. Following the code I was sure it was to set the minute of the hour to execute the dose. In the end I was finally able to get it working.
For now I'm just doing sanity checks to ensure it works correctly so I don't accidentally overdose. Also, trying to code, aka piecing together/tweaking existing examples, to track daily dosage amounts and estimated container volume remaining. I have the daily dosing amount some what working, but it seems to be inaccurate and will "drop" some, .3-.8ml, when a dose starts. Meaning if it shows 121.6 ml doses today. When the pump gets activated to dose say another 10ml, it will drop to 121.1, and then when the pump turns off it will read 122.1. I can't figure it out and doesn't make sense.