From 7ef5b4fb28f1804be7fde74bdcd3b36001dcae36 Mon Sep 17 00:00:00 2001 From: swissalpine Date: Mon, 16 Apr 2018 20:31:37 +0200 Subject: [PATCH 1/2] More realistic colored IAGE warnings Normaly Insulin should be stable at least 4-5 days. So I think a warning after two days and a red alarm after three is two early. I changed the default values to 72 hours for the yellow and 86 hours for the red warning. --- .../androidaps/plugins/Careportal/CareportalFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Careportal/CareportalFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/Careportal/CareportalFragment.java index 8a8a730bb3..5335ee05e5 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Careportal/CareportalFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Careportal/CareportalFragment.java @@ -216,8 +216,8 @@ public class CareportalFragment extends SubscriberFragment implements View.OnCli CareportalEvent careportalEvent; NSSettingsStatus nsSettings = new NSSettingsStatus().getInstance(); - double iageUrgent = nsSettings.getExtendedWarnValue("iage", "urgent", 72); - double iageWarn = nsSettings.getExtendedWarnValue("iage", "warn", 48); + double iageUrgent = nsSettings.getExtendedWarnValue("iage", "urgent", 86); + double iageWarn = nsSettings.getExtendedWarnValue("iage", "warn", 72); double cageUrgent = nsSettings.getExtendedWarnValue("cage", "urgent", 72); double cageWarn = nsSettings.getExtendedWarnValue("cage", "warn", 48); double sageUrgent = nsSettings.getExtendedWarnValue("sage", "urgent", 166); From ca5001e3a477b3762d0bc7f63457265da0820582 Mon Sep 17 00:00:00 2001 From: swissalpine Date: Tue, 17 Apr 2018 14:42:41 +0200 Subject: [PATCH 2/2] Update CareportalFragment.java --- .../androidaps/plugins/Careportal/CareportalFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Careportal/CareportalFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/Careportal/CareportalFragment.java index 5335ee05e5..4719ed525c 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Careportal/CareportalFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Careportal/CareportalFragment.java @@ -216,7 +216,7 @@ public class CareportalFragment extends SubscriberFragment implements View.OnCli CareportalEvent careportalEvent; NSSettingsStatus nsSettings = new NSSettingsStatus().getInstance(); - double iageUrgent = nsSettings.getExtendedWarnValue("iage", "urgent", 86); + double iageUrgent = nsSettings.getExtendedWarnValue("iage", "urgent", 96); double iageWarn = nsSettings.getExtendedWarnValue("iage", "warn", 72); double cageUrgent = nsSettings.getExtendedWarnValue("cage", "urgent", 72); double cageWarn = nsSettings.getExtendedWarnValue("cage", "warn", 48);