Make sensor expiry alerts customizable to the minute #3666
Replies: 1 comment 5 replies
-
Thanks for the thoughts and suggestions. The existing sensor expiry alert alerts you multiple times. You can think of it as a reminder rather than an alert. It only goes off when you unlock the screen or when you connect or disconnect the charger. As a result, the time it goes off is not exact because you may neither unlock the screen nor change the charger exactly 6 hours before the expiry. When a sensor stops, you get an alert whether you want it or not. You get a ping and vibration telling you that your sensor has stopped. Considering all of that and the intent, would it be adequate if we add one more time to the reminder at 15 minutes to? |
Beta Was this translation helpful? Give feedback.
-
When enabled, sensor expiry alerts go off 24, 12, 6, and 2 hours before sensor expiration. These thresholds are hard coded, offering users no customizability.
Making these alerts customizable to the minute enables users to minimize data lapses in between sensor sessions. Ideally, an alert would go off five to ten minutes before expiry, allowing users just enough time to prepare a replacement sensor.
Perusing the code, I see that polling to trigger this alert is only done when the screen is on and upon a charger connection change; there seems to be a method to poll hourly, but it's unused:
https://github.com/NightscoutFoundation/xDrip/blob/26ae3c7b112d810c04570104df726d4f31372c7e/app/src/main/java/com/eveningoutpost/dexdrip/alert/Poller.java#L40C1-L42C6
Supporting this feature would thus require polling every minute.
My proposal is to move the "Sensor expiry" alert into its own section under "Extra Alerts (xDrip+)" (like "PERSISTENT HIGH ALERT" and "FORECASTED LOW ALERT"), where users can input an integer specifying the number of minutes before sensor expiry at which the alarm will sound, as well as a customizable alarm sound.
Beta Was this translation helpful? Give feedback.
All reactions