loudnate/openaps-monitor

calculate Delta(Basal) using the basal profile that was active at time of temp basal

eszcloud opened this issue · 0 comments

Would be helpful to have Delta(Basal) calculated using the basal profile that was active at the time the temp basal took place rather than the currently active basal profile.

Take a look at some data from today:

From 8:30 am - 4:30 pm, basal profile B was the active profile, so 0 u/h temp basal should read -0.05 u/h.

With basal profile B active (which is 0.05 u/h at all times of day):
2015-11-14_649pm_tempbasal0p05uph

With standard profile active (which varies a lot but is >> 0.05 u/h at all times of day):

2015-11-14_649pm_stdbasalrate