FlyingDiver wrote:billorav wrote:Well I was able to split the hours out but have become completely stumped beyond that. Can't get the 4 hours added to the hour string. I'm an infant when it comes to Python scripting. Not sure if there is an easier way to accomplish what I trying to do.
My wife is having surgery next week and needs to take pain meds every 4 hours. I created a control page that counts down the time and then starts over when you hit the start button again. Also logs the action. I thought it would be helpful if I could display the next time to take the next set of pills when she hits the start button. I also could use a variable to change the "4" to like a 6 for 6 hours).
I lot to ask, but I would be very grateful for any ideas to accomplish this.
Thanks,
Bill
Post what you have so far and we'll help you along.
Have you played with the Timers & Pesters plugin, or Timed Devices plugin?
Both I’m sure will help you achieve this in native timed formats rather than trying to parse and increment strings.
Sent from my iPhone using Tapatalk Pro