nightscout / AndroidAPS

Opensource automated insulin delivery system (closed loop)
https://wiki.aaps.app
GNU Affero General Public License v3.0
725 stars 1.76k forks source link

[3.0-dev] missed BG reading alert on every app startup #829

Closed savek-cc closed 3 years ago

savek-cc commented 3 years ago

On each and every App startup, I get a local alert because of "Missed BG readings" (see screenshot). Apparently the alert is created before the last BG value is even read from the DB? Can be re-created by just stopping aaps and starting it again.

On my daugther's phone, this causes an audible alert if e.g. we restart the phone in the night due to Dexcom or Pump BT issues, thus more often than not waking her up.

Solution(?): AAPS should not be sending alerts on app startup before initializing the different subsystems - even if this alert is dismissed a couple seconds later, the alarm sound has already been played. image

robertrub commented 3 years ago

I get the same alert when I start AAPS too. It is not useful as it gives an inexact information to user (theoretically exact as AAPS didn't get BGs for some time but it will get them as soon as it finishes starting ;) ) .

MilosKozak commented 3 years ago

improved by https://github.com/nightscout/AndroidAPS/commit/f700c22966c6edbdee5a60caeb123290ad6dbba6