From 13ad74f77b7ffe3296b240cd9297a32eab444b2a Mon Sep 17 00:00:00 2001 From: Andrew Warrington Date: Sat, 6 Jan 2018 14:21:31 +0100 Subject: [PATCH 01/16] Steampunk watch face: Chart readability improvement; point size increases when chert is highly zoomed in (less than 3 hours shown). --- .../nightscout/androidaps/watchfaces/Steampunk.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/wear/src/main/java/info/nightscout/androidaps/watchfaces/Steampunk.java b/wear/src/main/java/info/nightscout/androidaps/watchfaces/Steampunk.java index 06f50edfb0..3549b2a67d 100644 --- a/wear/src/main/java/info/nightscout/androidaps/watchfaces/Steampunk.java +++ b/wear/src/main/java/info/nightscout/androidaps/watchfaces/Steampunk.java @@ -178,7 +178,11 @@ public class Steampunk extends BaseWatchFace { gridColor = ContextCompat.getColor(getApplicationContext(), R.color.grey_steampunk); basalBackgroundColor = ContextCompat.getColor(getApplicationContext(), R.color.basal_dark); basalCenterColor = ContextCompat.getColor(getApplicationContext(), R.color.basal_dark); - pointSize = 1; + if (Integer.parseInt(sharedPrefs.getString("chart_timeframe", "3")) < 3) { + pointSize = 2; + } else { + pointSize = 1; + } setupCharts(); } @@ -237,7 +241,12 @@ public class Steampunk extends BaseWatchFace { private void changeChartTimeframe() { int timeframe = Integer.parseInt(sharedPrefs.getString("chart_timeframe", "3")); timeframe = (timeframe%5) + 1; + if (timeframe < 3) { + pointSize = 2; + } else { + pointSize = 1; + } + setupCharts(); sharedPrefs.edit().putString("chart_timeframe", "" + timeframe).commit(); } - } \ No newline at end of file From 06d949cd8248bcb045975942a8c8c77d842bcff3 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Wed, 10 Jan 2018 10:48:44 +0100 Subject: [PATCH 02/16] Avoid race condition checking for an active TBR. --- .../PersistentNotificationPlugin.java | 4 ++-- .../androidaps/plugins/Treatments/TreatmentsPlugin.java | 6 ++++-- .../plugins/XDripStatusline/StatuslinePlugin.java | 5 ++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Persistentnotification/PersistentNotificationPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/Persistentnotification/PersistentNotificationPlugin.java index dc67a1449d..9e631def18 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Persistentnotification/PersistentNotificationPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Persistentnotification/PersistentNotificationPlugin.java @@ -139,8 +139,8 @@ public class PersistentNotificationPlugin implements PluginBase { } } - if (MainApp.getConfigBuilder().isTempBasalInProgress()) { - TemporaryBasal activeTemp = MainApp.getConfigBuilder().getTempBasalFromHistory(System.currentTimeMillis()); + TemporaryBasal activeTemp = MainApp.getConfigBuilder().getTempBasalFromHistory(System.currentTimeMillis()); + if (activeTemp != null) { line1 += " " + activeTemp.toStringShort(); } diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Treatments/TreatmentsPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/Treatments/TreatmentsPlugin.java index 8f0dca4996..1cd45d9f03 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Treatments/TreatmentsPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Treatments/TreatmentsPlugin.java @@ -403,8 +403,10 @@ public class TreatmentsPlugin implements PluginBase, TreatmentsInterface { @Override public double getTempBasalRemainingMinutesFromHistory() { - if (isTempBasalInProgress()) - return getTempBasalFromHistory(System.currentTimeMillis()).getPlannedRemainingMinutes(); + TemporaryBasal activeTemp = getTempBasalFromHistory(System.currentTimeMillis()); + if (activeTemp != null) { + return activeTemp.getPlannedRemainingMinutes(); + } return 0; } diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/XDripStatusline/StatuslinePlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/XDripStatusline/StatuslinePlugin.java index 60d784d377..5fb902c2eb 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/XDripStatusline/StatuslinePlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/XDripStatusline/StatuslinePlugin.java @@ -182,10 +182,9 @@ public class StatuslinePlugin implements PluginBase { //Temp basal TreatmentsInterface treatmentsInterface = MainApp.getConfigBuilder(); - if (treatmentsInterface.isTempBasalInProgress()) { - TemporaryBasal activeTemp = treatmentsInterface.getTempBasalFromHistory(System.currentTimeMillis()); + TemporaryBasal activeTemp = treatmentsInterface.getTempBasalFromHistory(System.currentTimeMillis()); + if (activeTemp != null) { status += activeTemp.toStringShort(); - } //IOB From 27dcb40f48b959c935a7eb90cd34a8df368377b7 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Wed, 10 Jan 2018 22:44:18 +0100 Subject: [PATCH 03/16] Add null check in ConfigBuildPlugin.getTempBasalFromHistory. --- .../androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java index 03f0f60341..62848b7e5e 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/ConfigBuilderPlugin.java @@ -631,7 +631,7 @@ public class ConfigBuilderPlugin implements PluginBase, ConstraintsInterface, Tr @Override @Nullable public TemporaryBasal getTempBasalFromHistory(long time) { - return activeTreatments.getTempBasalFromHistory(time); + return activeTreatments != null ? activeTreatments.getTempBasalFromHistory(time) : null; } @Override From 8f91f37f73ae1726fe0ca8183c8a489f405a159d Mon Sep 17 00:00:00 2001 From: swissalpine Date: Wed, 10 Jan 2018 23:24:49 +0100 Subject: [PATCH 04/16] =?UTF-8?q?=C3=9Cbersetzungen=20RUN=20und=20STOP=20M?= =?UTF-8?q?ODE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/res/values-de/strings.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 8edea19afe..18c89eefeb 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -716,9 +716,9 @@ Fehlerprotokol Status Keine Verbindung zur Pumpe - Durch Benutzer gestoppt - Wegen Fehler gestoppt - Normaler Betrieb + Gestoppt (Benutzer) + Gestoppt (Fehler) + In Betrieb TDDS Bolusabgabe wird vorbereitet TBR wird abgebrochen From a430a7d70decac06498c31f25ab2c9c0397151b9 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Wed, 10 Jan 2018 23:31:31 +0100 Subject: [PATCH 05/16] coverage --- .travis.yml | 5 ++++- README.md | 4 ++++ app/build.gradle | 6 ++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6799bbf35f..52552b3ceb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,4 +15,7 @@ android: script: # Unit Test - - ./gradlew test \ No newline at end of file + - ./gradlew test jacocoTestReport + +after_success: + - bash <(curl -s https://codecov.io/bash) \ No newline at end of file diff --git a/README.md b/README.md index b700f18b7a..638bbecf13 100644 --- a/README.md +++ b/README.md @@ -5,3 +5,7 @@ [![Gitter](https://badges.gitter.im/MilosKozak/AndroidAPS.svg)](https://gitter.im/MilosKozak/AndroidAPS?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Build status](https://travis-ci.org/MilosKozak/AndroidAPS.svg?branch=master)](https://travis-ci.org/MilosKozak/AndroidAPS) +[![Coverage Status][coverage-img]][coverage-url] + +[coverage-img]: https://img.shields.io/coveralls//MilosKozak/AndroidAPS/dev.svg +[coverage-url]: https://coveralls.io/github//MilosKozak/AndroidAPS?branch=dev \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 207a9831df..832d0cf30f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,14 +1,17 @@ buildscript { repositories { maven { url 'https://maven.fabric.io/public' } + jcenter() } dependencies { classpath 'io.fabric.tools:gradle:1.+' + classpath 'com.dicedmelon.gradle:jacoco-android:0.1.2' } } apply plugin: 'com.android.application' apply plugin: 'io.fabric' +apply plugin: 'jacoco-android' repositories { maven { url 'https://maven.fabric.io/public' } @@ -61,6 +64,9 @@ android { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } + debug { + testCoverageEnabled true + } } productFlavors { flavorDimensions "standard" From 0ffc61a1ba60cf4fc55610f1575013d5d0738ef2 Mon Sep 17 00:00:00 2001 From: Simon Pauwels Date: Wed, 10 Jan 2018 23:36:20 +0100 Subject: [PATCH 06/16] Added dutch combo translations (#42) * Added and improved Dutch translations * typo fix * double string removal * Typo fix * added translations * Update strings.xml * Added Dutch combo translations --- app/src/main/res/values-nl/strings.xml | 49 +++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/app/src/main/res/values-nl/strings.xml b/app/src/main/res/values-nl/strings.xml index f819247fb0..4c553da786 100644 --- a/app/src/main/res/values-nl/strings.xml +++ b/app/src/main/res/values-nl/strings.xml @@ -739,5 +739,52 @@ Enkel negatief Maximum IOB juist ingesteld Trend berekening - Profiel wiissel ontvangen via NS maar dit profiel bestaat niet op gsm + Profiel wissel ontvangen via NS maar dit profiel bestaat niet op gsm + "Bolus in pomp programmeren " + Vernieuw + Status + Geen verbinding%d%% (%d min resterend) + %.1f E (%s, %s) + Initialiseren + Verbinding verbroken + Herstel van verbroken verbindng + Waarschuwing + Pomp klok moet bijgesteld worden + Leeg + Bijna leeg + Maximum: %3.1f E + Normaal + Nooit + Vernieuwen + Historiek + Storingen + Batterij pomp is bijna leeg + Gevraagde is niet momeglijk met de pomp + Zojuist + TB GEANNULEERD Waarschuwing is bevestigd + Annuleren van TB + Gestopt door een storing + Gestopt door de gebruiker + Actief + Insuline ampul is bijna leeg + Pomp is in storing, controleer op de pomp + Bolus (%.1f E) + Minimum: %3.1f E + Gemiddelde: %3.1f E + Instellen van basaal profiel + Lezen van pomp historiek + Ben je zeker dat je alle data van de pomp wil ophalen en de consequenties hiervan wil dragen? + Om de pomp fouthistoriek op te halen, druk lang op de Storingen knop OPGELET: dit kan een bug veroorzaken waardoor de pomp alle verbindingen verbreekt en het vereist is op een knop op de pomp te duwen, dit wordt daarom afgeraden. + Maar %.2f E van de gevraagde %.2f E zijn toegediend door een storing. Gelieve op de pomp te controleren en het gepaste gevolg uit te voeren. + "Om de TTD van de pomp op te halen, lang duwen op de TDDS knop OPGELET: dit kan een bug veroorzaken waardoor de pomp alle verbindingen verbreekt en het vereist is op een knop op de pomp te duwen, dit wordt daarom afgeraden." + Toedienen en controleren van de bolus in de pomp historiek is mislukt, controleer de pomp en creëer een manuele bolus in het Careportal tabblad + Bolus toedienen mislukt. Waarschijnlijk is er geen bolus toegediend. Gelieve de pomp te controleren om een dubbele bolus te vermijden. Als bescherming tegen programmeerfouten worden bolussen niet automatisch opnieuw uitgevoerd. + Actie + Instellen TBR (%d%% / %d min) + Dit zal de volledige hystoriek en status van de pomp ophalen. Alles in Mijn Gegevens en basale patronen. Bolussen en TBR zullen aan de behandelingen worden toegevoegd indien deze nog niet aanwezig zijn. Dit kan eveneens dubbele invoeren genereren als de pomp tijd niet synchroon is. Gebruik maken van deze functie tijdens looped wordt afgeraden enkel gebruiken in speciale gevallen. Als je dit echt wil doen, duw lang op deze knop. OPGELET: dit kan een bug veroorzaken waardoor de pomp alle verbindingen verbreekt en het vereist is op een knop op de pomp te duwen, dit wordt daarom afgeraden. + Onvoorzichtig gebruik: Vertraagde of multi wave bolussen zijn toegediend in de afgelopen 6 uur op het geselecteerde basaal patroon is niet 1. Loop is onderbroken tot de 6 uur nadat deze bolussen of andere basale patronen zijn gedetecteerd. Alleen normale bolussen en basaal patroon 1 zijn mogelijk binnen basaal patroon 1 + TDDS + Opgelet: verlengde en multi wafe bolussen zijn actief. Loop is naar onderdruk lage waardes enkel overgeschakeld gedurende 6 uur. Alleen gewone bolussen worden onderdsteund in loop modus. + Niet genoeg insuline aanwezig in reservoir voor de bolus + Combinatie-Bolus From 864a5e6d81184c11fa73955c31b5856f2f92775d Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Wed, 10 Jan 2018 23:41:56 +0100 Subject: [PATCH 07/16] Missing string resources (en/de). --- app/src/main/res/values-de/strings.xml | 1 + app/src/main/res/values/strings.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 18c89eefeb..33a4b1bed4 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -760,6 +760,7 @@ Um die TDD-Statistik der Pumpe zu lesen, drücken Sie den TDDS Knopf lange.\nWARNUNG: Es gibt einen bekannten Fehler in der Pumpe der dazu führt, dass die Pumpe nach dieser Aktion erst wieder Verbindungen annimmt, wenn auf der Pumpe selbst ein Konpf gedrückt wird. Aus diesem Grund sollte diese Aktion nicht durchgeführt werden. Dies wird den gesamten Speicher und den Status der Pumpe auslesen sowie alle Einträge in „Meine Daten“ und die Basalrate. Boli und TBR werden unter Behandlungen gespeichert, sofern sie nicht bereits vorhanden sind. Dies kann zu doppelten Einträgen führen, wenn die Uhrzeit der Pumpe abweicht. Das Auslesen des Speichers ist normaler Weise für das Loopen unnötig und nur für besondere Umstände vorgesehen. Wenn Du es dennoch tun willst, drücke noch einmal länger den Button. ACHTUNG: Dies kann einen Fehler auslösen, der dazu führt, dass die Pumpe keine Verbindungsversuche mehr akzeptiert. Erst die Betätigung einer Taste an der Pumpe beendet diesen Zustand. Nach Möglichkeit sollte daher das Auslesen vermieden werden. Möchtest Du wirklich den gesamten Speicher der Pumpe auslesen und die möglichen Konsequenzen des Vorgangs tragen? + Nicht mehr genug Insulin im Reservoir für den Bolus Ja Nein BZ Berechnung diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 100d35e2d4..b4d6b1a86c 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -865,5 +865,6 @@ Only %.2f U of the requested bolus of %.2f U was delivered due to an error. Please check the pump to verify this and take appropriate actions. Delivering the bolus and verifying the pump\'s history failed, please check the pump and manually create a bolus record using the Careportal tab if a bolus was delivered. Recovering from connection loss + Not enough insulin for bolus left in reservoir From 99eef3b19ab300d84c4d506b57e93efbe5c741a6 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Wed, 10 Jan 2018 23:57:02 +0100 Subject: [PATCH 08/16] more round tests --- app/src/test/java/info/nightscout/utils/RoundTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/test/java/info/nightscout/utils/RoundTest.java b/app/src/test/java/info/nightscout/utils/RoundTest.java index d95ab2b391..1a801d2a7d 100644 --- a/app/src/test/java/info/nightscout/utils/RoundTest.java +++ b/app/src/test/java/info/nightscout/utils/RoundTest.java @@ -14,18 +14,21 @@ public class RoundTest { public void roundToTest() throws Exception { assertEquals( 0.55d, Round.roundTo(0.54d, 0.05d), 0.00000001d ); assertEquals( 1d, Round.roundTo(1.49d, 1d), 0.00000001d ); + assertEquals( 0d, Round.roundTo(0d, 1d), 0.00000001d ); } @Test public void floorToTest() throws Exception { assertEquals( 0.5d, Round.floorTo(0.54d, 0.05d), 0.00000001d ); assertEquals( 1d, Round.floorTo(1.59d, 1d), 0.00000001d ); + assertEquals( 0d, Round.floorTo(0d, 1d), 0.00000001d ); } @Test public void ceilToTest() throws Exception { assertEquals( 0.6d, Round.ceilTo(0.54d, 0.1d), 0.00000001d ); assertEquals( 2d, Round.ceilTo(1.49999d, 1d), 0.00000001d ); + assertEquals( 0d, Round.ceilTo(0d, 1d), 0.00000001d ); } } \ No newline at end of file From 92642c5d0cbf4a6a10f082692da822ce64a95471 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Thu, 11 Jan 2018 10:01:33 +0100 Subject: [PATCH 09/16] update badge --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 638bbecf13..54d9bb092a 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,5 @@ [![Gitter](https://badges.gitter.im/MilosKozak/AndroidAPS.svg)](https://gitter.im/MilosKozak/AndroidAPS?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Build status](https://travis-ci.org/MilosKozak/AndroidAPS.svg?branch=master)](https://travis-ci.org/MilosKozak/AndroidAPS) -[![Coverage Status][coverage-img]][coverage-url] - -[coverage-img]: https://img.shields.io/coveralls//MilosKozak/AndroidAPS/dev.svg -[coverage-url]: https://coveralls.io/github//MilosKozak/AndroidAPS?branch=dev \ No newline at end of file +[![codecov](https://codecov.io/gh/MilosKozak/AndroidAPS/branch/master/graph/badge.svg)](https://codecov.io/gh/MilosKozak/AndroidAPS) +dev: [![codecov](https://codecov.io/gh/MilosKozak/AndroidAPS/branch/dev/graph/badge.svg)](https://codecov.io/gh/MilosKozak/AndroidAPS) \ No newline at end of file From 51ca0e0d121c985009330d05bf145b700f5afc1d Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Thu, 11 Jan 2018 14:14:53 +0100 Subject: [PATCH 10/16] Update build.gradle --- app/build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/app/build.gradle b/app/build.gradle index 832d0cf30f..524c7af381 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -58,6 +58,7 @@ android { } lintOptions { disable 'MissingTranslation' + disable 'ExtraTranslation' } buildTypes { release { From be8534db5120a5ddb1c6f908a6f1fb074a33e002 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Thu, 11 Jan 2018 17:58:31 +0100 Subject: [PATCH 11/16] Add strings for the Combo pump, including some renames. Some virtualpump_* strings have been renamed to pump_* since they're now used for multiple pumps. --- .../plugins/Overview/OverviewFragment.java | 4 +- app/src/main/res/layout/danar_fragment.xml | 12 +-- .../layout/overview_newtempbasal_dialog.xml | 2 +- .../main/res/layout/virtualpump_fragment.xml | 8 +- app/src/main/res/values-bg/strings.xml | 12 +-- app/src/main/res/values-cs/strings.xml | 12 +-- app/src/main/res/values-de/strings.xml | 100 +++++++++++++----- app/src/main/res/values-el/strings.xml | 12 +-- app/src/main/res/values-es/strings.xml | 12 +-- app/src/main/res/values-it/strings.xml | 12 +-- app/src/main/res/values-ko/strings.xml | 14 ++- app/src/main/res/values-nl/strings.xml | 57 ++++++++-- app/src/main/res/values-ru/strings.xml | 12 +-- app/src/main/res/values-sv/strings.xml | 12 +-- app/src/main/res/values/strings.xml | 67 ++++++++++-- 15 files changed, 244 insertions(+), 104 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java index 8e4ba0b332..d18db85880 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java @@ -1059,9 +1059,9 @@ public class OverviewFragment extends Fragment implements View.OnClickListener, baseBasalView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { - String fullText = MainApp.sResources.getString(R.string.virtualpump_basebasalrate_label) + ": " + DecimalFormatter.to2Decimal(MainApp.getConfigBuilder().getProfile().getBasal()) + "U/h\n"; + String fullText = MainApp.sResources.getString(R.string.pump_basebasalrate_label) + ": " + DecimalFormatter.to2Decimal(MainApp.getConfigBuilder().getProfile().getBasal()) + "U/h\n"; if (activeTemp != null) { - fullText += MainApp.sResources.getString(R.string.virtualpump_tempbasal_label) + ": " + activeTemp.toStringFull(); + fullText += MainApp.sResources.getString(R.string.pump_tempbasal_label) + ": " + activeTemp.toStringFull(); } OKDialog.show(getActivity(), MainApp.sResources.getString(R.string.basal), fullText, null); } diff --git a/app/src/main/res/layout/danar_fragment.xml b/app/src/main/res/layout/danar_fragment.xml index ac48032690..93166c9483 100644 --- a/app/src/main/res/layout/danar_fragment.xml +++ b/app/src/main/res/layout/danar_fragment.xml @@ -151,7 +151,7 @@ android:layout_weight="1" android:gravity="end" android:paddingRight="5dp" - android:text="@string/virtualpump_battery_label" + android:text="@string/pump_battery_label" android:textSize="14sp" /> IOB от болуси ОБШО Старт сега - Базова базална стойност - Батерия + Базова базална стойност + Батерия Удължен болус - Резервоар + Резервоар OK Грешка в базата данни - Временен базал + Временен базал ВИРТУАЛНА ПОМПА Последно изпълнение Параметри на входа @@ -223,7 +223,7 @@ Грешка при свързване с помпата IOB на помпата Инсулин за деня - Последен болус: + Последен болус: ч по-рано Грешни входящи данни Неправилна стойност @@ -543,7 +543,7 @@ PRE BAS Firmware - Последно свързване + Последно свързване Bluetooh статус За приложението Missing SMS permission diff --git a/app/src/main/res/values-cs/strings.xml b/app/src/main/res/values-cs/strings.xml index 1d43753930..751d559130 100644 --- a/app/src/main/res/values-cs/strings.xml +++ b/app/src/main/res/values-cs/strings.xml @@ -153,13 +153,13 @@ Bezpečnost zadání ošetřeni Nepodporovaná verze NSClient Virtualní pumpa - Základní hodnota bazálu - Baterie + Základní hodnota bazálu + Baterie Prodloužený bolus - Zásobník + Zásobník OK Chyba databáze - Dočasný bazál + Dočasný bazál VIRTUÁLNÍ PUMPA xDrip Prodloužený bolus @@ -199,7 +199,7 @@ Jednotek za den Chybná vstupní data IOB z pumpy - Poslední bolus + Poslední bolus Hodnota nenastavena správně Zobrazit profil Vybrané zařízení nenalezeno @@ -212,7 +212,7 @@ Obnovit profil Uložit Úspěch - Poslední spojení + Poslední spojení Zrušit dočasný bazál Bolus %.2fU aplikován úspěšně Chyba při aplikování bolusu diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 8d178cb301..33a4b1bed4 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -23,6 +23,7 @@ Ratio: Dauer: Bolus-Abgabefehler + Batterie OK Basal Bolus @@ -91,11 +92,13 @@ IE Auf Virtuelle Pumpe + Reservoir xDrip VIRTUELLE PUMPE SQL Error Verlängerter Bolus Sichtbar + Basis-Basalrate GESAMT Nicht unterstützte Version des Nightscout-Clients BZ @@ -204,6 +207,8 @@ Profil neuladen Speichern Erfolgreich + Letzte Verbindung + Letzter Bolus: Profil anzeigen DanaR Profil-Einstellungen DIA [h] @@ -300,7 +305,7 @@ SP PROF HOME - OBJ + ZIEL OAPS LOOP LP @@ -314,7 +319,7 @@ Bitte verwende nur Ziffern von %1$s - %2$s. Warte auf Pumpe Wear - Verwende das kurze durchschnittliche Delta statt des einfachen Deltas + Verwende immer das kurze durchschnittliche Delta statt des einfachen Deltas Sinnvoll, wenn die Daten von einer ungefilterten Quelle Signalrauschen haben. Tagesinsulin-Limit wird erreicht BR @@ -327,11 +332,11 @@ Bluetooth-Status Kumulative TDD Datum - Exponentiell Gewichtete TDD + Exponentiell gewichtete TDD Veraltete Daten, bitte klicke auf \"Reload\" xds - xDrip Statuszeile (Uhr) - xDrip Status (Uhr) + xDrip+ Statuszeile (Uhr) + xDrip+ Status (Uhr) xDrip+ nicht installiert Zeige BGI Füge BGI zur Statuszeile hinzu @@ -444,7 +449,7 @@ Logs anzeigen nicht erfolgreich - bitte Telefon prüfen Nicht verfügbar - NSClient hat keine Schreibrechte. Falscher API-Key? + Nightscout-Client hat keine Schreibrechte. Falscher API-Key? Alarm-Optionen Aktiviere Broadcasts für andere Apps (z. B. xDrip+). Aktiviere lokale Broadcasts. @@ -543,7 +548,7 @@ Bitte Rechte gewähren Hoch- und Niedrig-Werte für die Übersicht- und die Smartwatch-Anzeige Zielbereich für die Grafikanzeige - Stelle bei aktivierter Autosense-Funktion sicher, dass du alle gegessenen Kohlenhydrate eingibst. Ansonsten können die Kohlenhydrate-Abweichung zu falsche Resistenz-/Empfindlichkeitswerten führen! + Stelle bei aktivierter Autosense-Funktion sicher, dass du alle gegessenen Kohlenhydrate eingibst. Ansonsten können die Kohlenhydrate-Abweichung zu falschen Resistenz-/Empfindlichkeitswerten führen! Sensitivität AAPS Sensitivität Oref0 Durchschnittliche Sensitivität @@ -587,7 +592,7 @@ Zeige die Übersichtsbenachrichtigungen auch auf der Uhr an. Kurzes durchschnittl. Delta Rapid-Acting Oref - Vorgabe: true. Erlaubt Autosense den Ziel-BZ-Bereich in Verbindung mit ISF und Basal anzupassen. + Vorgabe: erlaubt. Erlaubt Autosense den Ziel-BZ-Bereich in Verbindung mit ISF und Basal anzupassen. Intervall für Autosense [h] Anzahl der vergangenen Stunden, die verwendet werden, um die Sensitivität zu erkennen (Zeit, in der KH resorbiert werden, ist nicht berücksichtigt) Entscheide anhand von dieser Erfahrung, wie hoch max Basal sein sollte, und übernehme den Wert in die Pumpen- und AAPS-Einstellungen @@ -597,7 +602,7 @@ Fein-Einstellung des Closed-Loops, Erhöhen von max IOB über 0 und langsames Heruntersetzen des Zielbereichs Eine Woche erfolgreiches Loopen am Tag mit regelmäßiger Kohlenhydrat-Eingabe Passe, falls notwendig, Basal und Faktoren an und aktiviere dann die Autosense-Funktion - Aktiviere zusätzliche Funktionen wie z. B. den Mahlzeitenassistent + Aktiviere zusätzliche Funktionen, wie z. B. den Mahlzeitenassistent Stark veraltete Daten Stark veraltete Daten seit [Min.] Dutch @@ -665,8 +670,8 @@ Alarm, wenn keine Glukose-Daten empfangen werden Alarm, wenn die Pumpe nicht erreichbar ist Pumpe ist nicht erreichbar Grenze [Min.] + Aktualisieren TZ - Bitte starte dein Telefon neu oder starte AndroidAPS in den System-Einstellungen neu. Andernfalls wird AndroidAPS nicht protokolliert (wichtig zum Nachverfolgen und Verifizieren, dass der Algorithmus korrekt funktioniert) TBR Pumpen-Speicher Aktiviere die SuperBolus-Funktion im Wizard. Nicht aktivieren, wenn du nicht weißt, welche Auswirkungen dieser Bolus hat! ES KANN ZU EINER ÜBERDOSIERUNG AN INSULIN KOMMEN! @@ -695,6 +700,67 @@ Wähle in xDrip+ 640g/Eversense als Daten-Quelle Nightscout-Client BZ Basal-Wert wurde durch den kleinst möglichen Wert ersetzt + APS ausgewählt + Loop aktiviert + Nightscout-Client hat Schreibrechte + Maximales IOB richtig gesetzt + Closed mode aktiviert + Aktiviere zusätzliche Funktionen wie z. B. den SMB + BT Watchdog + DexcomG5 App (patched) + Aktivität + %d%% (%d Min. verbleibend) + Keine Verbindung zur Pumpe seit %d Min. + Bolusabgabe gestoppt + Bolusabgabe wird abgebrochen + Fehlerprotokol + Status + Keine Verbindung zur Pumpe + Gestoppt (Benutzer) + Gestoppt (Fehler) + In Betrieb + TDDS + Bolusabgabe wird vorbereitet + TBR wird abgebrochen + TBR wird gesetzt (%d%% / %d Min.) + Bolus (%.1f IE) wird abgegeben + Bitte starte dein Telefon neu oder starte AndroidAPS in den System-Einstellungen neu. Andernfalls wird AndroidAPS nicht protokolliert (wichtig zum Nachverfolgen und Verifizieren, dass der Algorithmus korrekt funktioniert) + TBR + %.1f IE (%s, %s) + Nutze System-Benachrichtigungen für Alarme + Ein gleich großer Bolus wurde in der letzten Minute angefordert. Dies ist nicht zulässig, um ungewollte Doppelboli zu verhindern und vor eventuellen Bugs zu schützen. + Historie wird gelesen + Basalratenprofil wird aktualisiert + Verbindung wird wieder hergestellt + Der abgegebene Bolus konnte nicht bestätigt werden. Bitte prüfe auf der Pumpe, ob ein Bolus abgegeben wurde und erstelle einen Eintrag im Careportal falls nötig. + Die Bolusabgabe ist fehlgeschlagen: Es wurde scheinbar kein Bolus abgegeben. Bitte prüfe auf der Pumpe, ob ein Bolus abgegeben wurde. Um doppelte Boli durch Programmfehler zu vermeiden, werden Boli nicht automatisch wiederholt. + Wegen eines Fehlers wurden nur %.2f IE von den angeforderten %.2f IE abgegeben. Bitte prüfe den abgegebenen Bolus auf der Pumpe. + Historie + Status wird aktualisiert + Die Pumpe wird initialisiert + Jetzt + Nie + Der Alarm \"TBR ABBRUCH\" wurde bestätigt + Warnung + Leer + Niedrig + Normal + Durchschnitt: %3.1f IE + Maximum: %3.1f IE + Minimum: %3.1f IE + Diese Aktion wird von der Pumpe nicht unterstützt + Alarme + Die Batterie in der Pumpe ist fast leer + Das Reservoir in der Pumpe ist fast leer + Die Pumpe zeigt einen Fehler an E%d: %s + Unsichere Verwendung: In der Pumpe ist nicht das erste Basalratenprofil gewählt. Der Loop wird deaktiviert bis dies korrigiert ist. + Unsichere Verwendung: Ein erweiterter oder Multiwave-Bolus ist aktiv. Der Loop wird für die nächsten 6 Stunden kein zusätzliches Insulin abgeben. + Um die Fehlerhistorie der Pumpe zu lesen, drücke lange auf ALARME.\nWARNUNG: Es gibt einen bekannten Fehler in der Pumpe, der dazu führt, dass die Pumpe nach dieser Aktion erst wieder Verbindungen annimmt, wenn auf der Pumpe selbst eine Taste gedrückt wird. Aus diesem Grund sollte diese Aktion nicht durchgeführt werden. + Bitte aktualisiere die Uhrzeit der Pumpe + Um die TDD-Statistik der Pumpe zu lesen, drücken Sie den TDDS Knopf lange.\nWARNUNG: Es gibt einen bekannten Fehler in der Pumpe der dazu führt, dass die Pumpe nach dieser Aktion erst wieder Verbindungen annimmt, wenn auf der Pumpe selbst ein Konpf gedrückt wird. Aus diesem Grund sollte diese Aktion nicht durchgeführt werden. + Dies wird den gesamten Speicher und den Status der Pumpe auslesen sowie alle Einträge in „Meine Daten“ und die Basalrate. Boli und TBR werden unter Behandlungen gespeichert, sofern sie nicht bereits vorhanden sind. Dies kann zu doppelten Einträgen führen, wenn die Uhrzeit der Pumpe abweicht. Das Auslesen des Speichers ist normaler Weise für das Loopen unnötig und nur für besondere Umstände vorgesehen. Wenn Du es dennoch tun willst, drücke noch einmal länger den Button. ACHTUNG: Dies kann einen Fehler auslösen, der dazu führt, dass die Pumpe keine Verbindungsversuche mehr akzeptiert. Erst die Betätigung einer Taste an der Pumpe beendet diesen Zustand. Nach Möglichkeit sollte daher das Auslesen vermieden werden. + Möchtest Du wirklich den gesamten Speicher der Pumpe auslesen und die möglichen Konsequenzen des Vorgangs tragen? + Nicht mehr genug Insulin im Reservoir für den Bolus Ja Nein BZ Berechnung @@ -713,18 +779,4 @@ Standarwert: 2\nBolus snooze (\"Bolus-Schlummer\") bremst den Loop nach einem Mahleiten-Bolus, damit dieser nicht mit niedrigen TBR reagiert, wenn Du gerade gegessen hast. Beispiel: Der Standardwert 2 bewirkt, dass bei einem 3 Stunden DIA der Bolus snooze während 1.5 Stunden nach dem Bolus linear ausläuft (3 h Dia / 2 = 1.5 h Bolus snooze). Standardwert: 3.0\nDies ist eine Einstellung für die Standard-Kohlenhydrat-Absorptionswirkung pro 5 Minuten. Der Standardwert ist 3mg/dl/5min. Dies wirkt sich darauf aus, wie schnell der COB-Wert fällt und wieviel KH-Absorption bei der Berechnung des vorhergesagten BZ angenommen wird, wenn der BZ stärker als erwartet fällt oder nicht so stark wie erwartet steigt. Achtung! Normalerweise musst Du diese Werte nicht ändern. Bitte KLICKE HIER und LESE den Text. Verändere Werte erst, wenn Du den Inhalt des Textes verstanden hast. - APS ausgewählt - Loop aktiviert - Nightscout-Client hat Schreibrechte - Maximales IOB richtig gesetzt - Closed mode aktiviert - Letzte Verbindung - Basis-Basalrate - TBR - Batterie - Reservoir - Letzter Bolus: - Aktiviere zusätzliche Funktionen wie z. B. den SMB - BT Watchdog - DexcomG5 App (patched) diff --git a/app/src/main/res/values-el/strings.xml b/app/src/main/res/values-el/strings.xml index c986fdba7f..b9fd9bff78 100644 --- a/app/src/main/res/values-el/strings.xml +++ b/app/src/main/res/values-el/strings.xml @@ -50,11 +50,11 @@ Σύνολο Έναρξη τώρα ΕΙΚΟΝΙΚΗ ΑΝΤΛΙΑ - Βάση Βασικού Ρυθμού - Προσωρ. Ρυθμός + Βάση Βασικού Ρυθμού + Προσωρ. Ρυθμός Εκτετεμμένο bolus - Μπαταρία - Ρεζερβουάρ + Μπαταρία + Ρεζερβουάρ ΟΚ Λάθος SQL Τελευταίος Υπολογισμός @@ -219,7 +219,7 @@ Λάθος σύνδεσης αντλίας IOB αντλίας "Μονάδες ανά ημέρα " - Τελευταίο Bolus: + Τελευταίο Bolus: ώρες πριν Μη έγκυρα δεδομένα Η τιμή δεν μπήκε σωστά @@ -540,7 +540,7 @@ PRE Β.Ρ. Firmware - Τελευταία σύνδεση + Τελευταία σύνδεση Κατάσταση Bluetooth Σχετικά με Λείπει εξουσιοδότηση SMS diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index a87b40330f..7259194dee 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -46,11 +46,11 @@ TOTAL Ejecutar ahora BOMBA VIRTUAL - Dosis Basal Base - Basal Temporal + Dosis Basal Base + Basal Temporal Bolo extendido - Batería - Depósito: + Batería + Depósito: OK Error de SQL Última ejecución @@ -210,10 +210,10 @@ No se encuentra adaptador Bluetooth El dispositivo seleccionado no se encuentra Error de conexión de la bomba - Última conexión + Última conexión Bomba IOB Unidades diarias - Último bolo: + Último bolo: h antes Datos invalidos Valor no establecido correctamente diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 5e72429865..148b1aab2d 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -115,7 +115,7 @@ Ricaricare Data Errata IOB Microinfusore - Ultimo Bolo + Ultimo Bolo Password Microinfusore Setting Micro ricarica @@ -412,7 +412,7 @@ Abilitazione di funzioni aggiuntive per l\'uso quotidiano, ad esempio assistenza avanzata del pasto Errore SQL - Basale temporale + Basale temporale Visibile Pompa Virtuale In attesa del micro @@ -437,12 +437,12 @@ VPUMP Impostazioni del Micro virtuale ok - Serbatoio - Ultima conessione + Serbatoio + Ultima conessione Firmware Bolo Esteso - Batteria - Base basale + Batteria + Base basale Micro Virtuale UpLoading Aggiornamento basale diff --git a/app/src/main/res/values-ko/strings.xml b/app/src/main/res/values-ko/strings.xml index 538dbb2023..3b62dffeab 100644 --- a/app/src/main/res/values-ko/strings.xml +++ b/app/src/main/res/values-ko/strings.xml @@ -48,11 +48,11 @@ 지금 실행 가상 펌프 - 기본 기초주입량 - 임시기초주입 + 기본 기초주입량 + 임시기초주입 확장식사주입 - 배터리 - 인슐린 잔량 + 배터리 + 인슐린 잔량 OK SQL 에러 최근 실행 @@ -224,7 +224,7 @@ 펌프 연결 에러 펌프 IOB 일 인슐린 총량 - 최근 식사주입: + 최근 식사주입: 시간 전 사용할수 없는 입력 데이터 값이 제대로 설정되지 않았습니다 @@ -553,7 +553,7 @@ PRE BAS 펌웨어 - 최근 연결 + 최근 연결 블루투스 상태 버전정보 SMS 권한 누락 @@ -646,7 +646,6 @@ ACTIVATE PROFILE Date INVALID - 펌프연동 대기중 연동완료 연동시간초과 @@ -679,5 +678,4 @@ 워치로 작동하기 임시목표와 관리입력을 워치로 설정합니다. 연결시간초과 - diff --git a/app/src/main/res/values-nl/strings.xml b/app/src/main/res/values-nl/strings.xml index 6c49e4fb4c..4c553da786 100644 --- a/app/src/main/res/values-nl/strings.xml +++ b/app/src/main/res/values-nl/strings.xml @@ -91,7 +91,6 @@ CGM & OPENAPS CGM Sens. ingebracht CGM Sens. Start - Multiwave bolus Correctie bolus Sport Ouderdom insuline @@ -739,13 +738,53 @@ Enkel positief Enkel negatief Maximum IOB juist ingesteld - Basis basaal patroon - Tijdelijk basaal - Batterij - Reservoir - Multiwave bolus - Laatste bolus: - Laatste verbinding Trend berekening - Profiel wiissel ontvangen via NS maar dit profiel bestaat niet op gsm + Profiel wissel ontvangen via NS maar dit profiel bestaat niet op gsm + "Bolus in pomp programmeren " + Vernieuw + Status + Geen verbinding%d%% (%d min resterend) + %.1f E (%s, %s) + Initialiseren + Verbinding verbroken + Herstel van verbroken verbindng + Waarschuwing + Pomp klok moet bijgesteld worden + Leeg + Bijna leeg + Maximum: %3.1f E + Normaal + Nooit + Vernieuwen + Historiek + Storingen + Batterij pomp is bijna leeg + Gevraagde is niet momeglijk met de pomp + Zojuist + TB GEANNULEERD Waarschuwing is bevestigd + Annuleren van TB + Gestopt door een storing + Gestopt door de gebruiker + Actief + Insuline ampul is bijna leeg + Pomp is in storing, controleer op de pomp + Bolus (%.1f E) + Minimum: %3.1f E + Gemiddelde: %3.1f E + Instellen van basaal profiel + Lezen van pomp historiek + Ben je zeker dat je alle data van de pomp wil ophalen en de consequenties hiervan wil dragen? + Om de pomp fouthistoriek op te halen, druk lang op de Storingen knop OPGELET: dit kan een bug veroorzaken waardoor de pomp alle verbindingen verbreekt en het vereist is op een knop op de pomp te duwen, dit wordt daarom afgeraden. + Maar %.2f E van de gevraagde %.2f E zijn toegediend door een storing. Gelieve op de pomp te controleren en het gepaste gevolg uit te voeren. + "Om de TTD van de pomp op te halen, lang duwen op de TDDS knop OPGELET: dit kan een bug veroorzaken waardoor de pomp alle verbindingen verbreekt en het vereist is op een knop op de pomp te duwen, dit wordt daarom afgeraden." + Toedienen en controleren van de bolus in de pomp historiek is mislukt, controleer de pomp en creëer een manuele bolus in het Careportal tabblad + Bolus toedienen mislukt. Waarschijnlijk is er geen bolus toegediend. Gelieve de pomp te controleren om een dubbele bolus te vermijden. Als bescherming tegen programmeerfouten worden bolussen niet automatisch opnieuw uitgevoerd. + Actie + Instellen TBR (%d%% / %d min) + Dit zal de volledige hystoriek en status van de pomp ophalen. Alles in Mijn Gegevens en basale patronen. Bolussen en TBR zullen aan de behandelingen worden toegevoegd indien deze nog niet aanwezig zijn. Dit kan eveneens dubbele invoeren genereren als de pomp tijd niet synchroon is. Gebruik maken van deze functie tijdens looped wordt afgeraden enkel gebruiken in speciale gevallen. Als je dit echt wil doen, duw lang op deze knop. OPGELET: dit kan een bug veroorzaken waardoor de pomp alle verbindingen verbreekt en het vereist is op een knop op de pomp te duwen, dit wordt daarom afgeraden. + Onvoorzichtig gebruik: Vertraagde of multi wave bolussen zijn toegediend in de afgelopen 6 uur op het geselecteerde basaal patroon is niet 1. Loop is onderbroken tot de 6 uur nadat deze bolussen of andere basale patronen zijn gedetecteerd. Alleen normale bolussen en basaal patroon 1 zijn mogelijk binnen basaal patroon 1 + TDDS + Opgelet: verlengde en multi wafe bolussen zijn actief. Loop is naar onderdruk lage waardes enkel overgeschakeld gedurende 6 uur. Alleen gewone bolussen worden onderdsteund in loop modus. + Niet genoeg insuline aanwezig in reservoir voor de bolus + Combinatie-Bolus diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index ba0e44644c..1535d82c26 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -136,7 +136,7 @@ замена введенные данные неверны активный инсулин на помпе - предыдущий болюс + предыдущий болюс модель: %02X протокол: %02X код: %02X пароль помпы настройки помпы DanaR @@ -527,17 +527,17 @@ обновление значений базала передача данных виртуальная помпа - базовая величина базала - батарея + базовая величина базала + батарея продленный болюс прошивка - прошлое соединение - резервуар + прошлое соединение + резервуар OK настройки вирт помпы ВиртПомпа ошибка SQL - врем базал + врем базал статус передачи данных в NS виден ВИРТУАЛЬНАЯ ПОМПА diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index 9b84ac7660..b27b70da43 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -134,7 +134,7 @@ Ladda om Fel på inlagd data Pump IOB - Sista bolus + Sista bolus Lösenord Pump DanaR pump inställningar Påfyllnad @@ -307,17 +307,17 @@ Virtuell Synlig Ladda upp till NS - Temp basal + Temp basal SQL Error VPUMP Virtuell pump inställningar OK - Reservoir - Sista kontakt + Reservoir + Sista kontakt Programversion Förlängd bolus - Batteri - Grund basal hastighet + Batteri + Grund basal hastighet Virtuell Pump Uppladdning Uppdaterar basal hastigheter diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 510f7cf80d..27d56f524e 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -50,11 +50,11 @@ TOTAL Run now VIRTUAL PUMP - Base basal rate - Temp basal + Base basal rate + Temp basal Extended bolus - Battery - Reservoir + Battery + Reservoir OK SQL Error Last run @@ -234,7 +234,7 @@ Pump connection error Pump IOB Daily units - Last bolus: + Last bolus h ago Invalid input data Value not set properly @@ -268,7 +268,7 @@ DIA [h] Duration of Insulin Activity Failed to update basal profile - History + Errors Reload Uploading E bolus @@ -397,7 +397,7 @@ MM640g Ongoing Notification OLD DATA - %dmin ago + %d min ago %dmin ago Local Profile OpenAPS AMA @@ -591,7 +591,7 @@ PRE BAS Firmware - Last connection + Last connection Bluetooh status About Missing SMS permission @@ -682,6 +682,8 @@ Values not stored! Overview Notifications Pass the Overview Notifications through as wear confirmation messages. + Accu-Chek Combo + COMBO Enable broadcasts to other apps (like xDrip). Enable local Broadcasts. ACTIVITY & FEEDBACK @@ -810,5 +812,54 @@ Basal values not aligned to hours Zero value in profile Received profile switch from NS but profile doesn\'t exist localy + Programming pump for bolusing + Refresh + TDDS + State + Activity + No connection for %d min + %d%% (%d min remaining) + %.1f U (%s, %s) + Initializing + Disconnected + Suspended due to error + Suspended by user + Running + Cancelling TBR + Setting TBR (%d%% / %d min) + Bolusing (%.1f U) + Refreshing + Never + Requested operation not supported by pump + Unsafe usage: extended or multiwave boluses are active. Loop mode has been set to low-suspend only 6 hours. Only normal boluses are supported in loop mode + Unsafe usage: the pump uses a different basal rate profile than the first. The loop has been disabled. Select the first profile on the pump and refresh. + A bolus with the same amount was requested within the last minute. To prevent accidental double boluses and to guard against bugs this is disallowed. + Now + Reading pump history + pump history + Alerts + Setting basal profile + Pump cartridge level is low + Pump battery is low + The pump is showing the error E%d: %s + To read the pump\'s error history, long press the ALERTS button\n\nWARNING: this can trigger a bug which causes the pump to reject all connection attempts and requires pressing a button on the pump to recover and should therefore be avoided. + To read the pump\'s TDD history, long press the TDDS button\n\nWARNING: this can trigger a bug which causes the pump to reject all connection attempts and requires pressing a button on the pump to recover and should therefore be avoided. + Minimum: %3.1f U + Average: %3.1f U + Maximum: %3.1f U + Low + Empty + Normal + Pump clock update needed + History + Warning + This will read the full history and state of the pump. Everything in \"My Data\" and the basal rate. Boluses and TBRs will be added to Treatments if they don\'t already exist. This can cause entries to be duplicated because the pump\'s time is imprecise. Using this when normally looping with the pump is highly discouraged and reserved for special circumstances. If you still want to do this, long press this button again.\n\nWARNING: this can trigger a bug which causes the pump to reject all connection attempts and requires pressing a button on the pump to recover and should therefore be avoided. + Are you really sure you want to read all pump data and take the consequences of this action? + TBR CANCELLED warning was confirmed + Bolus delivery failed. It appears no bolus was delivered. To be sure, please check the pump to avoid a double bolus and then bolus again. To guard against bugs, boluses are not automatically retried. + Only %.2f U of the requested bolus of %.2f U was delivered due to an error. Please check the pump to verify this and take appropriate actions. + Delivering the bolus and verifying the pump\'s history failed, please check the pump and manually create a bolus record using the Careportal tab if a bolus was delivered. + Recovering from connection loss + Not enough insulin for bolus left in reservoir From 8cd3e3ec9fb641369591679f5a55d2a2c47bbb7c Mon Sep 17 00:00:00 2001 From: MasterPlexus Date: Fri, 12 Jan 2018 21:36:14 +0100 Subject: [PATCH 12/16] Update Readme-Combo.md Add recommendation for ruffy to put screen rotation off,and an additional way for possible pairing. --- README-Combo.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README-Combo.md b/README-Combo.md index 86ad5a73b2..9ae7f56443 100644 --- a/README-Combo.md +++ b/README-Combo.md @@ -12,6 +12,8 @@ Hardware requirements: Roche sends out Smartpix devices and the configuration software free of charge to their customers upon request. - A compatible phone: An Android phone with a phone running LineageOS 14.1 (formerly CyanogenMod) or Android 8.1 (Oreo) + If the daily-driver phone wich wnated to be used can not fullfill the LineageOS or Android requirement, + an other way could be tryed, but with no gurantee (see here: https://github.com/gregorybel/combo-pairing/blob/master/README.md - To build AndroidAPS with Combo support you need the latest Android Studio 3 version Limitations: @@ -58,8 +60,11 @@ Setup: - Get Android Studio 3 https://developer.android.com/studio/index.html - Follow the link http://ruffy.AndroidAPS.org and clone via git (branch `combo-scripter-v2`) - Pair the pump using ruffy, if it doesn't work after multiple attempts, switch to the `pairing` branch, pair, - then switch back the original branch. If the pump is already paired and - can be controlled via ruffy, installing the above version is sufficient. + then switch back the original branch. + As Ruffy has on some phones problems during screen rotation, + it is helpfull to put the setting of automatic screen rotation to off. + If the pump is already paired and can be controlled via ruffy, installing the + above version is sufficient. If AAPS is already installed, switch to the MDI plugin to avoid the Combo plugin from interfering with ruffy during the pairing process. Note that the pairing processing is somewhat fragile (but only has to be done once) From f5cc2debd7f9a69e50dcffd4a88bce57e9f2ba53 Mon Sep 17 00:00:00 2001 From: "Markus M. May" Date: Sat, 13 Jan 2018 21:34:38 +0100 Subject: [PATCH 13/16] Cleanup gradle build files --- app/build.gradle | 94 ++++++++++++++++++++++++++--------------------- wear/build.gradle | 21 +++++++---- 2 files changed, 65 insertions(+), 50 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 524c7af381..e37c577e97 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,9 +9,17 @@ buildscript { classpath 'com.dicedmelon.gradle:jacoco-android:0.1.2' } } -apply plugin: 'com.android.application' -apply plugin: 'io.fabric' -apply plugin: 'jacoco-android' +apply plugin: "com.android.application" +apply plugin: "io.fabric" +apply plugin: "jacoco-android" + +ext { + supportLibraryVersion = "23.4.0" + ormLiteVersion = "4.46" + powermockVersion = "1.7.3" + dexmakerVersion = "1.2" +} + repositories { maven { url 'https://maven.fabric.io/public' } @@ -152,53 +160,55 @@ dependencies { wearApp project(':wear') compile fileTree(include: ['*.jar'], dir: 'libs') - compile('com.crashlytics.sdk.android:crashlytics:2.6.7@aar') { + compile("com.crashlytics.sdk.android:crashlytics:2.6.7@aar") { transitive = true; } - compile('com.crashlytics.sdk.android:answers:1.3.12@aar') { + compile("com.crashlytics.sdk.android:answers:1.3.12@aar") { transitive = true; } - compile 'com.android.support:appcompat-v7:23.4.0' - compile 'com.android.support:support-v4:23.4.0' - compile 'com.android.support:cardview-v7:23.4.0' - compile 'com.android.support:recyclerview-v7:23.4.0' - compile 'com.android.support:gridlayout-v7:23.4.0' - compile "com.android.support:design:23.4.0" - compile "com.android.support:percent:23.4.0" - compile 'com.wdullaer:materialdatetimepicker:2.3.0' - compile 'com.squareup:otto:1.3.7' - compile 'com.j256.ormlite:ormlite-core:4.46' - compile 'com.j256.ormlite:ormlite-android:4.46' - compile('com.github.tony19:logback-android-classic:1.1.1-6') { - exclude group: 'com.google.android', module: 'android' + compile "com.android.support:appcompat-v7:${supportLibraryVersion}" + compile "com.android.support:support-v4:${supportLibraryVersion}" + compile "com.android.support:cardview-v7:${supportLibraryVersion}" + compile "com.android.support:recyclerview-v7:${supportLibraryVersion}" + compile "com.android.support:gridlayout-v7:${supportLibraryVersion}" + compile "com.android.support:design:${supportLibraryVersion}" + compile "com.android.support:percent:${supportLibraryVersion}" + compile "com.wdullaer:materialdatetimepicker:2.3.0" + compile "com.squareup:otto:1.3.7" + compile "com.j256.ormlite:ormlite-core:${ormLiteVersion}" + compile "com.j256.ormlite:ormlite-android:${ormLiteVersion}" + compile("com.github.tony19:logback-android-classic:1.1.1-6") { + exclude group: "com.google.android", module: "android" } - compile 'org.apache.commons:commons-lang3:3.6' - compile 'org.slf4j:slf4j-api:1.7.12' - compile 'com.jjoe64:graphview:4.0.1' - compile 'com.joanzapata.iconify:android-iconify-fontawesome:2.1.1' - compile 'com.google.android.gms:play-services-wearable:7.5.0' - compile 'junit:junit:4.12' - testCompile 'org.json:json:20140107' - testCompile 'org.mockito:mockito-core:2.7.22' - testCompile 'org.powermock:powermock-api-mockito2:1.7.3' - testCompile 'org.powermock:powermock-module-junit4-rule-agent:1.7.3' - testCompile 'org.powermock:powermock-module-junit4-rule:1.7.3' - testCompile 'org.powermock:powermock-module-junit4:1.7.3' - androidTestCompile 'org.mockito:mockito-core:2.7.22' - androidTestCompile 'com.google.dexmaker:dexmaker:1.2' - androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.2' - compile(name: 'android-edittext-validator-v1.3.4-mod', ext: 'aar') - compile('com.google.android:flexbox:0.3.0') { - exclude group: 'com.android.support' + compile "org.apache.commons:commons-lang3:3.6" + compile "org.slf4j:slf4j-api:1.7.12" + compile "com.jjoe64:graphview:4.0.1" + compile "com.joanzapata.iconify:android-iconify-fontawesome:2.1.1" + compile "com.google.android.gms:play-services-wearable:7.5.0" + compile(name: "android-edittext-validator-v1.3.4-mod", ext: "aar") + compile("com.google.android:flexbox:0.3.0") { + exclude group: "com.android.support" } - compile('io.socket:socket.io-client:0.8.3') { + compile("io.socket:socket.io-client:0.8.3") { // excluding org.json which is provided by Android - exclude group: 'org.json', module: 'json' + exclude group: "org.json", module: "json" } - compile 'com.google.code.gson:gson:2.7' - compile 'com.google.guava:guava:20.0' + compile "com.google.code.gson:gson:2.7" + compile "com.google.guava:guava:20.0" - compile 'net.danlew:android.joda:2.9.9.1' - testCompile 'joda-time:joda-time:2.9.4.2' + compile "net.danlew:android.joda:2.9.9.1" + + testCompile "junit:junit:4.12" + testCompile "org.json:json:20140107" + testCompile "org.mockito:mockito-core:2.7.22" + testCompile "org.powermock:powermock-api-mockito2:${powermockVersion}" + testCompile "org.powermock:powermock-module-junit4-rule-agent:${powermockVersion}" + testCompile "org.powermock:powermock-module-junit4-rule:${powermockVersion}" + testCompile "org.powermock:powermock-module-junit4:${powermockVersion}" + testCompile "joda-time:joda-time:2.9.4.2" + + androidTestCompile "org.mockito:mockito-core:2.7.22" + androidTestCompile "com.google.dexmaker:dexmaker:${dexmakerVersion}" + androidTestCompile "com.google.dexmaker:dexmaker-mockito:${dexmakerVersion}" } diff --git a/wear/build.gradle b/wear/build.gradle index 682577fc8e..a28a5cc5cd 100644 --- a/wear/build.gradle +++ b/wear/build.gradle @@ -1,5 +1,10 @@ apply plugin: 'com.android.application' +ext { + supportLibraryVersion = "23.0.1" + wearableVersion = "2.0.1" +} + def generateGitBuild = { -> StringBuilder stringBuilder = new StringBuilder(); @@ -56,12 +61,12 @@ allprojects { dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') - //compile 'com.ustwo.android:clockwise-wearable:1.0.2' - provided 'com.google.android.wearable:wearable:2.0.1' - compile 'com.google.android.support:wearable:2.0.1' - compile 'com.google.android.gms:play-services-wearable:7.3.0' - compile files('libs/hellocharts-library-1.5.5.jar') - compile(name:'ustwo-clockwise-debug', ext:'aar') - compile 'com.android.support:support-v4:23.0.1' - compile 'me.denley.wearpreferenceactivity:wearpreferenceactivity:0.5.0' + compile files("libs/hellocharts-library-1.5.5.jar") + //compile "com.ustwo.android:clockwise-wearable:1.0.2" + provided "com.google.android.wearable:wearable:${wearableVersion}" + compile "com.google.android.support:wearable:${wearableVersion}" + compile "com.google.android.gms:play-services-wearable:7.3.0" + compile(name:"ustwo-clockwise-debug", ext:"aar") + compile "com.android.support:support-v4:23.0.1" + compile "me.denley.wearpreferenceactivity:wearpreferenceactivity:0.5.0" } From ad54c67c234aaa91bc86203e7be9c652f87227f1 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Sat, 13 Jan 2018 23:36:01 +0100 Subject: [PATCH 14/16] README-Combo: ruffy tips & tricks. --- README-Combo.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README-Combo.md b/README-Combo.md index 9ae7f56443..b9f3bd8076 100644 --- a/README-Combo.md +++ b/README-Combo.md @@ -11,9 +11,10 @@ Hardware requirements: Software to configure the pump. Roche sends out Smartpix devices and the configuration software free of charge to their customers upon request. -- A compatible phone: An Android phone with a phone running LineageOS 14.1 (formerly CyanogenMod) or Android 8.1 (Oreo) - If the daily-driver phone wich wnated to be used can not fullfill the LineageOS or Android requirement, - an other way could be tryed, but with no gurantee (see here: https://github.com/gregorybel/combo-pairing/blob/master/README.md +- A compatible phone: An Android phone with a phone running LineageOS 14.1 (formerly CyanogenMod) or Android 8.1 (Oreo). + For advanced users, it is possible to perform the pairing on a rooted phone and transfer it to another rooted + phone to use with ruffy/AAPS, which must also be rooted. This allows using phones with Android < 8.1 but + has not been widely tested: https://github.com/gregorybel/combo-pairing/blob/master/README.md - To build AndroidAPS with Combo support you need the latest Android Studio 3 version Limitations: @@ -59,18 +60,17 @@ Setup: - Enable keylock (can also be set on the pump directly, see usage section on reasoning) - Get Android Studio 3 https://developer.android.com/studio/index.html - Follow the link http://ruffy.AndroidAPS.org and clone via git (branch `combo-scripter-v2`) -- Pair the pump using ruffy, if it doesn't work after multiple attempts, switch to the `pairing` branch, pair, - then switch back the original branch. - As Ruffy has on some phones problems during screen rotation, - it is helpfull to put the setting of automatic screen rotation to off. - If the pump is already paired and can be controlled via ruffy, installing the - above version is sufficient. +- Pair the pump using ruffy. If it doesn't work after multiple attempts, switch to the `pairing` branch, + pair the pump and then switch back the original branch. + If the pump is already paired and can be controlled via ruffy, installing the + `combo-scripter-v2` branch is sufficient. If AAPS is already installed, switch to the MDI plugin to avoid the Combo plugin from interfering with ruffy during the pairing process. Note that the pairing processing is somewhat fragile (but only has to be done once) - and may need a few attempts; - quickly acknowledge prompts and when starting over, remove the pump device - from the bluetooth settings beforehand. + and may need a few attempts; quickly acknowledge prompts and when starting over, remove the pump device + from the bluetooth settings beforehand. Another option to try is to go to the bluetooth menu after + initiating the pairing process (this keeps the phone's bluetooth discoverable as long as the menu is displayed + and switch back to ruffy after confirming the pairing on the pump, when the pump displays the authorization code. When AAPS is using ruffy, the ruffy app can't be used. The easiest way is to just reboot the phone after the pairing process and let AAPS start ruffy in the background. - Clone AndroidAPS from https://github.com/jotomo/AndroidAPS (branch `combo-scripter-v2`) From 723bcc4ee3167762d21a4434ef275dc446d61095 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Sun, 7 Jan 2018 17:54:01 +0100 Subject: [PATCH 15/16] Remove 'queued activities' from ComboFragment. (cherry picked from commit 57a4449) --- .../androidaps/plugins/PumpCombo/ComboFragment.java | 13 ------------- app/src/main/res/layout/combopump_fragment.xml | 8 -------- 2 files changed, 21 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboFragment.java index 506bce7be5..8419478725 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboFragment.java @@ -35,8 +35,6 @@ public class ComboFragment extends SubscriberFragment implements View.OnClickLis private Button alertsButton; private Button tddsButton; private Button fullHistoryButton; - private TextView queueView; - @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, @@ -49,7 +47,6 @@ public class ComboFragment extends SubscriberFragment implements View.OnClickLis reservoirView = (TextView) view.findViewById(R.id.combo_insulinstate); lastConnectionView = (TextView) view.findViewById(R.id.combo_lastconnection); tempBasalText = (TextView) view.findViewById(R.id.combo_temp_basal); - queueView = (TextView) view.findViewById(R.id.combo_queue); refreshButton = (Button) view.findViewById(R.id.combo_refresh_button); refreshButton.setOnClickListener(this); @@ -210,16 +207,6 @@ public class ComboFragment extends SubscriberFragment implements View.OnClickLis } } tempBasalText.setText(tbrStr); - - // TODO clean up & i18n or remove - // Queued activities - Spanned status = ConfigBuilderPlugin.getCommandQueue().spannedStatus(); - if (status.toString().equals("")) { - queueView.setVisibility(View.GONE); - } else { - queueView.setVisibility(View.VISIBLE); - queueView.setText("Queued activities:\n" + status); - } } }); } diff --git a/app/src/main/res/layout/combopump_fragment.xml b/app/src/main/res/layout/combopump_fragment.xml index ecbaf90ef6..7fb016bb83 100644 --- a/app/src/main/res/layout/combopump_fragment.xml +++ b/app/src/main/res/layout/combopump_fragment.xml @@ -336,14 +336,6 @@ android:layout_marginRight="20dp" android:layout_marginTop="5dp" android:background="@color/listdelimiter" /> - - - From fcd7c91b82da46077e770cb93e4a21a1b910c246 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Mon, 15 Jan 2018 21:57:08 +0100 Subject: [PATCH 16/16] Typo. --- README-Combo.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README-Combo.md b/README-Combo.md index b9f3bd8076..a13f5af94c 100644 --- a/README-Combo.md +++ b/README-Combo.md @@ -69,7 +69,7 @@ Setup: Note that the pairing processing is somewhat fragile (but only has to be done once) and may need a few attempts; quickly acknowledge prompts and when starting over, remove the pump device from the bluetooth settings beforehand. Another option to try is to go to the bluetooth menu after - initiating the pairing process (this keeps the phone's bluetooth discoverable as long as the menu is displayed + initiating the pairing process (this keeps the phone's bluetooth discoverable as long as the menu is displayed) and switch back to ruffy after confirming the pairing on the pump, when the pump displays the authorization code. When AAPS is using ruffy, the ruffy app can't be used. The easiest way is to just reboot the phone after the pairing process and let AAPS start ruffy in the background.