Futsch1 / medTimer

MedTimer Android app
MIT License
113 stars 14 forks source link

"Linked" medicine alarm times #131

Closed Jakarrrg closed 1 day ago

Jakarrrg commented 6 months ago

It would be very helpful if some medicines could be "linked". For example my father takes one drop from medicine x at 8 pm, and then another drop from medicine y, ten minutes after the medicine x (8:10). Now, in many occasions he snoozes the alarm for medicine x for let's say 30 minutes (>8:40). It would be very helpful if medicine y would also snooze automatically for 30 minutes (>8:50) retaining the 10 minute interval from medicine x.

Also it would be nice if user could choose at the time the alarm rings, or even a few minutes before, for how much time he/she/it wants to snooze the alarm, instead of the preselected from settings snooze time.

Futsch1 commented 5 months ago

Linking medicines sounds like a fairly complex feature, I will have to think about if and if yes how to implement it.

Custom snooze times should be fairly easy, but I will create a new issue for it to track the progress (#147).

serrq commented 2 months ago

"y" takes (x + td).

td = time delay

Or time anticipated if it is the reverse option.

Even better "time offset". It can be positive or negative (+ -).

For example: ten minutes before or after "y" starting, run "x".

Futsch1 commented 1 week ago

I decided to implement this feature in the release after the next. I plan to implement it as following:

On the Advanced Settings page of a reminder, there will be a new button to add a linked reminder. This reminder will then make it possible to set a delay time that the linked reminder will trigger after the source reminder. So when the source reminder is marked taken, the delay time for the linked reminder will start.

This will facilitate the use case that two reminders are taken with a defined delay between them.