From ad3d175b021fc8ec8027d1a64964ad553ee2c640 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Wed, 23 Aug 2017 23:03:28 +0200 Subject: [PATCH 01/53] better handling DetailedBolusInfo in v2 driver --- .../ConfigBuilder/DetailedBolusInfoStorage.java | 12 +++++++++++- .../plugins/PumpDanaRv2/DanaRv2Plugin.java | 14 ++++++++++++-- .../PumpDanaRv2/comm/MsgHistoryEvents_v2.java | 15 ++++++++------- 3 files changed, 31 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/DetailedBolusInfoStorage.java b/app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/DetailedBolusInfoStorage.java index e99c5a8f22..d6352cdb18 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/DetailedBolusInfoStorage.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/ConfigBuilder/DetailedBolusInfoStorage.java @@ -32,10 +32,20 @@ public class DetailedBolusInfoStorage { log.debug("Existing info: " + new Date(infoTime).toLocaleString()); if (bolustime > infoTime - 60 * 1000 && bolustime < infoTime + 60 * 1000) { found = store.get(i); - store.remove(i); break; } } return found; } + + public static void remove(long bolustime) { + for (int i = 0; i < store.size(); i++) { + long infoTime = store.get(i).date; + if (bolustime > infoTime - 60 * 1000 && bolustime < infoTime + 60 * 1000) { + log.debug("Removing info: " + new Date(infoTime).toLocaleString()); + store.remove(i); + break; + } + } + } } diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpDanaRv2/DanaRv2Plugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpDanaRv2/DanaRv2Plugin.java index ca1e1e6e3e..6960e96b17 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpDanaRv2/DanaRv2Plugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpDanaRv2/DanaRv2Plugin.java @@ -286,10 +286,20 @@ public class DanaRv2Plugin implements PluginBase, PumpInterface, DanaRInterface, detailedBolusInfo.insulin = configBuilderPlugin.applyBolusConstraints(detailedBolusInfo.insulin); if (detailedBolusInfo.insulin > 0 || detailedBolusInfo.carbs > 0) { DetailedBolusInfoStorage.add(detailedBolusInfo); // will be picked up on reading history + // v2 stores end time for bolus, we need to adjust time + // delivery speed is 12 U/min + detailedBolusInfo.date += detailedBolusInfo.insulin / 12d * 60 * 1000; + // clean carbs to prevent counting them as twice because they will picked up as another record + // I don't think it's necessary to copy DetailedBolusInfo right now for carbs records + double carbs = detailedBolusInfo.carbs; + detailedBolusInfo.carbs = 0; + int carbTime = detailedBolusInfo.carbTime; + detailedBolusInfo.carbTime = 0; + Treatment t = new Treatment(); boolean connectionOK = false; - if (detailedBolusInfo.insulin > 0 || detailedBolusInfo.carbs > 0) - connectionOK = sExecutionService.bolus(detailedBolusInfo.insulin, (int) detailedBolusInfo.carbs, System.currentTimeMillis() + detailedBolusInfo.carbTime * 60 * 1000 + 1000, t); // +1000 to make the record different + if (detailedBolusInfo.insulin > 0 || carbs > 0) + connectionOK = sExecutionService.bolus(detailedBolusInfo.insulin, (int) carbs, System.currentTimeMillis() + carbTime * 60 * 1000 + 1000, t); // +1000 to make the record different PumpEnactResult result = new PumpEnactResult(); result.success = connectionOK; result.bolusDelivered = t.insulin; diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpDanaRv2/comm/MsgHistoryEvents_v2.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpDanaRv2/comm/MsgHistoryEvents_v2.java index 416a96c269..f04218ac61 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpDanaRv2/comm/MsgHistoryEvents_v2.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpDanaRv2/comm/MsgHistoryEvents_v2.java @@ -67,15 +67,10 @@ public class MsgHistoryEvents_v2 extends MessageBase { if (detailedBolusInfo == null) { log.debug("DetailedBolusInfo not found for " + datetime.toLocaleString()); detailedBolusInfo = new DetailedBolusInfo(); - } else { - log.debug("DetailedBolusInfo found for " + datetime.toLocaleString() + ": " + new Date(detailedBolusInfo.date).toLocaleString()); - detailedBolusInfo.carbTime = 0; - detailedBolusInfo.carbs = 0; } detailedBolusInfo.date = datetime.getTime(); detailedBolusInfo.source = Source.PUMP; detailedBolusInfo.pumpId = datetime.getTime(); - detailedBolusInfo.source = Source.PUMP; switch (recordCode) { case DanaRPump.TEMPSTART: @@ -102,11 +97,13 @@ public class MsgHistoryEvents_v2 extends MessageBase { detailedBolusInfo.insulin = param1 / 100d; boolean newRecord = MainApp.getConfigBuilder().addToHistoryTreatment(detailedBolusInfo); log.debug((newRecord ? "**NEW** " : "") + "EVENT BOLUS (" + recordCode + ") " + datetime.toLocaleString() + " Bolus: " + (param1 / 100d) + "U Duration: " + param2 + "min"); + DetailedBolusInfoStorage.remove(detailedBolusInfo.date); break; case DanaRPump.DUALBOLUS: detailedBolusInfo.insulin = param1 / 100d; newRecord = MainApp.getConfigBuilder().addToHistoryTreatment(detailedBolusInfo); log.debug((newRecord ? "**NEW** " : "") + "EVENT DUALBOLUS (" + recordCode + ") " + datetime.toLocaleString() + " Bolus: " + (param1 / 100d) + "U Duration: " + param2 + "min"); + DetailedBolusInfoStorage.remove(detailedBolusInfo.date); break; case DanaRPump.DUALEXTENDEDSTART: log.debug("EVENT DUALEXTENDEDSTART (" + recordCode + ") " + datetime.toLocaleString() + " Amount: " + (param1 / 100d) + "U Duration: " + param2 + "min"); @@ -134,8 +131,12 @@ public class MsgHistoryEvents_v2 extends MessageBase { log.debug("EVENT PROFILECHANGE (" + recordCode + ") " + datetime.toLocaleString() + " No: " + param1 + " CurrentRate: " + (param2 / 100d) + "U/h"); break; case DanaRPump.CARBS: - detailedBolusInfo.carbs = param1; - newRecord = MainApp.getConfigBuilder().addToHistoryTreatment(detailedBolusInfo); + DetailedBolusInfo emptyCarbsInfo = new DetailedBolusInfo(); + emptyCarbsInfo.carbs = param1; + emptyCarbsInfo.date = datetime.getTime(); + emptyCarbsInfo.source = Source.PUMP; + emptyCarbsInfo.pumpId = datetime.getTime(); + newRecord = MainApp.getConfigBuilder().addToHistoryTreatment(emptyCarbsInfo); log.debug((newRecord ? "**NEW** " : "") + "EVENT CARBS (" + recordCode + ") " + datetime.toLocaleString() + " Carbs: " + param1 + "g"); break; default: From 196e0bb3097d9371f79cd4fa68d41baf51a64ad9 Mon Sep 17 00:00:00 2001 From: boysim <18055382+boysim@users.noreply.github.com> Date: Thu, 24 Aug 2017 23:18:21 +0200 Subject: [PATCH 02/53] Update strings.xml --- app/src/main/res/values-nl/strings.xml | 651 ++++++++++++++++++++++++- 1 file changed, 650 insertions(+), 1 deletion(-) diff --git a/app/src/main/res/values-nl/strings.xml b/app/src/main/res/values-nl/strings.xml index c93f92ba38..d35103cb36 100644 --- a/app/src/main/res/values-nl/strings.xml +++ b/app/src/main/res/values-nl/strings.xml @@ -1,4 +1,653 @@ AndroidAPS - \ No newline at end of file + Glimp + MM640g + Absoluut + Verwachte tijd in uren vooraleer alle koolhydraten opgenomen zijn + Max absorbtietijd maaltijd [u] + Opname instellingen + Acties + ACT + Actief + Volwassene + Uitgebreide instellingen + Herstart je telefoon of herstart AndroidAPS vanuit de systeem instellingen a.u.b. anders zal AndroidAPS geen logboek hebben (Belangrijk om te controleren of de algoritmes correct werken)! + Nuttig wanneer gevens van niet gefilterde bronnes zoals Xdrip wispelturig zijn + AndroidAPS gestart + Insuline daglimiet bereikt + APS Mode + Limiet bereikt + xds + xDrip Status (Horloge) + xDrip Statuslijn (Horloge) + xDrip+ niet geïnstalleerd + xDrip + Verkeerd pomp wachtwoord! + Verkeerde pomp driver geselecteerd + Verkeerd wachtwoord + Toon BGI + Voeg BGI toe aan status lijn + WEAR + Wear instellingen + Geef de overzicht notificaties door als wear bevestigings berichten + Overzicht Notificaties + Toon gedetailleerde IOB + Splits IOB in bolus en basaal op de watchface + Wear + Wacht op het resultaat + Wacht op pomp. Klik om te vernieuwen. + Wacht op pomp + VIRTUELE POMP + Zichtbaar + Upload status naar NS + Tijdelijk basaal + SQL Storing + VP + Virtuele pomp instellingen + OK + Reservoir + Laatste verbinding + Firmware + EXT + Vertraagde bolus + Batterij + Virtuele Pomp + Uploaden + UPLD + Uploader + Bijwerken basaal patroon + Omhoog + Niet ondersteunde versie van Nightscout + Niet ondersteunde versie van NSClient + Instellingen ontgrendelen + Eenheden: + Max toegestaane koolhydraten [g] + Basaal + BAS + Basaal ontbreekt in profiel. Standaard actief + BAS + Basis Profiel + Pomp Batterij Leeg + Toestel ondersteund klaarblijkelijk geen baterij optimalisatie vrijschakeling! + български + Bolus + Bolus Stap + Bolus %.2fU succesvol toegediend + Toedienen %.2fU + Klaar om %.2fE toe te dienen + Knop 1 + Knop 2 + Knop 3 + Kalibratie naat xDrip verzonden + Annuleer + Annuleer tijdelijk basaal + Koolhydraten + Careportal + Mededeling + BG Controle + Ouderdom katheter + CAGE + KOOLHYDRATEN & BOLUS + Koolhydraten correctie + CGM & OPENAPS + CGM Sensor geplaatst + CGM Sensor Start + Multiwave bolus + Correctie bolus + Sport + Insuline leeftijd + IAGE + Insuline ampul wissel + Maaltijd bolus + Absoluut + Koolhydraten + Tijdsduur + Tijdsduur [min] + Ingegeven door + Gebeurtenis tijdstip + Gebeurtenis type + Glucose type + Insuline + Meter + Notities + Andere + Percent + Profiel + Sensor + Splitzen + Notitie + OpenAPS Offline + Leeftijd batterij + Profiel wissel + Pomp + Pomp batterij wissel + Infusieplaats wissel + Vraag + Leeftijd sensor + SAGE + CP + Snack bolus + Einde tijdelijk basaal + Begin tijdelijk basaal + Tijdelijk streefdoel + Tijdelijk streefdoel annuleren + Wijzig het ingegevene! + Kind + Logboek wissen + Closed loop + COB + Commentaar + Configurator + APS + BG bron + Beperkingen + Algemeen + insuline + Ledig wachtrij + Loop + Nightscout versie: + Profiel + Pomp + Gevoeligheid detectie + CONF + Tijdelijke basalen + Behandelingen + Bevestiging + Verbonden + Verbinden + Pomp verbindings storing + Beperking toegepast + In strijd met beperkingen + Gekopieerd naar klembord + Kopieren naar klembord + Correctie + Niet alle profielen zijn geladen! + Moet geactiveerd worden om waardes naat de pomp te verzenden! + Waarden niet opgeslagen! + Čeština + Alarm + Basaal uur + Bluetooh status + DanaR Bluetooth toestel + Koolhydraten + Dag totaal + EasyUI modus in pomp deactiveren + Activeer vertraagde bolussen op de pomp + Storing + glucose + Geschiedenis + Alarm + Herstart + Resultaat + Hervatten + Opslaan + Veiligheid + VERZEND + Verzend calibratie %.1f naar xDrip? + VERZEND NAAR POMP + Vergeet niet alle gegeten koolhydraten in te geven bij het activeren van de Autosens functie. Anders zullen BG wijzigingen door maaltijden foutief geïnterpreteerd worden!! + Gevoeligheid AAPS + Gevoeligheid Oref0 + Accepteer nieuw tijdelijk basaal: + Stel nieuwe vertraagde bolus in: + Instellingen geïnporteerd + Instellingen vertraagde bolus + Wachtwoord voor instelligen + Instellingen tijdelijk basaal + Toon wachtrij + Eenvoudig profiel + EP + BG: + Basaal: + Bolus: + IOB + Laatste BG: + SMS Communicator + Geautoriseerde telefoon nummers + +XXXXXXXXXX;+YYYYYYYYYY + Om het basaal %.2fU/u te starten antwoord met de code %s + Om het tijdelijke basaal te stoppen antwoord met de code %s + Bolus %.2fU succesvol toegediend + Bolus mislukt + Om de bolus %.2fU toe te dienen antwoord met de code %s + XDrip ontvangt geen callibraties + Om calibratie %.2f te verzenden antwoord met de code %s + Callibratie verzonden. Het ontvangen van callibraties moet actief zijn in xDrip. + 한국어 + Taal + Lokaal profiel + LP + Vergrendel scherm + Vergrendel + Loop + APS + Berekening met toepassing van limieten + Gedefinieerd door de pomp + LOOP + Italiano + Nederlands + ISF ontbreekt in profiel. Standaard waarden toegepast. + Vingerprik + Sensor + Hoog grens + Uren + KH ratio ontbreekt in profieel. Standaard waarde toegepast + Importeer instellingen van + Initialisering + http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-3/beyond-low-glucose-suspend.html + Bulossen + Koolhydraten + Storing + Glucose + Hervullen + Onderbreken + Vernieuw + Dagen + Deutsch + Toedienen + Toestel + Geselecteerd toestel niet gevonden + Loop gedeactiveerd + Loop deactiveren + Niet verbonden + Verbreken + Verbreek verbinding 10u met pomp + Verbreek verbinding 1u met pomp + Verbreek verbinding 2u met pomp + Verbreek verbinding 30min met pomp + Verbreek verbinding 3u met pomp + NEGEER + Negeer profiel wijzigingen + IOB + Ongeldig profiel !!! + INS + Glucose + Opvragen pomp status + English + Activeer Loop + Eind gebruiker overeenkomst + Activeer de superbolus functie in de wizard. Activeer deze niet tot je begrijpt wat dit doet. OVERDOSISEN ZIJN MOGELIJK BIJ ONWETENDHEID + Activeer superbolus in de wizard + Geactiveerd + Toon niet opnieuw + Eet binnenkort + Verander basaal patroon + Oude gegevens + OpenAPS + OAPS + OpenAPS AMA + Laatste bolus + Pomp wachtwoord + DanaR pomp instellingen + Hervullen + # Dagen + Begrepen en goedgekeurd + Nieuwe behandeling ingeven: + Veld mag niet leeg zijn + Vertraagde bolus + Update basaal profiel mislukt + Snel werkende insuline + Novorapid, Novolog, Humalog + Bestand niet gevonden + Vull standaard hoeveelheid. + Verzeker u dat de vulhoeveelheid overeenkomt met de infusieset! + Voorkeuren geexporteerd + Español + Uitvoeren + Exporteer instellingen naar + Telefoon nummer niet conform + Alleen numerike waarden binnen het bereik %1$s - %2$s toegelaten. + Alleen numerieke waarden toegelaten. + Ελληνικά + NS API geheim + NSCI + NSClient + URL: + Nightscout URL ingeven + Nightscout URL + Doelstelling + ISF + NS API geheim + Verkeerde ingave + Pomp IOB + Basaal: + CPP + Dagtotaal insuline + Datum + Totaal basaal + Gewicht + Wijzig de mudus U/d naar U/u op de pomp + Gebruik vertraagde bolussen voor >200% + Waarde niet correct ingesteld + Profiel bekijken + Toon vertraagde bolussen in % aan + DanaR Korean + DanaR profiel instellingen + PIA [u] + Periode van insuline activiteit + DanaR + DANA + DanaRv2 + DEV + Geen bluetooth adapter gevonden + Geen aanpassing noodzakelijk + Nog geen profiel geladen van NS + Geen profiel geselecteerd + Geen profiel ingesteld + Niet geslaagd - controleer de telefoon + Niet beschikbaar + NSCLIENT heeft geen schrijfrechten. Verkeerd API geheim? + Nightscout + Ok + Basaal + Loop gedeactiveerd door beperkingen + Loop menu + Superbolus (%d m) + Loop pauzeren + Pauzeer (%d m) + Batterij bijna leeg + Maneel + MDI + Afbreken + OK + Maaltijd bolus + mg/dl + Te weinig + mmol/l + Over + Backup + Exit + Exporteer instellingen + Importeer instellingen + Voorkeuren + Haal wijzigingen op van NS + Reset databanken + Toon logboek + Test alarm + %s benodigd batterij omptimalistaie vrijwaring voor performate werking + Alarm opties + Geen upload naar NS + Enkel NS upload (sync. gedeactiveerd) + Hoog + Laag + Ingesteld op %f + Zeer hoog + Zeer laag + NSClient + NSClient + Autoscroll + Toestelnaam ingeven + Toestel naam + Geen NS API geheim op (min 12 kar.) + Max toegestane bolus [E] + E + Totaal + Correctie + COB + Koolhydraten + Bolus IOB + 15min trend + BG + Basaal IOB + BEHAND + Insuline hoeveelheid + Koolhydraten hoeveelheid + Totale IOB: + Totale IOB activiteit: + IOB: + Foutief SMS telefoon nummer + Loop was uitgeschakeld + Loop was ingeschakeld + Loop is uitgeschakeld + Loop is ingeschakeld + Insuline: + Koolhydraten: + Actief: + Behandeling + Bolus toedien storing + Basaal onder minimum. Profiel niet ingesteld! + % (100% = actueel) + Bolus + Voorstel + Open loop + Nieuw voorstel beschikbaar + Andere + Geen pomp beschikbaar + Overzicht + Bolus + Toegediend + Er worden %.2fE toegediend + Stop + Gestopt + STOP INGEDRUKT + Kalibratie + Oude gegevens druk \"VERNIEUW\" a.u.b. + u geleden + %d min geleden + Berekening + Dosis + Periode + Script debug + Maaltijd gegevens + éénheid + Doelen + Controleren dat BG beschikbaar is op Nightscout en dat de insulinepomp data is geupload + Opzetten van visualisatie en monitoring eveneens onalyze van basaal en ratio\'s + Werking in Open Loop modus voor enkele dagen, manueel vele tijdelijke basalen instellen + Starten met de Open Loop modus + Gebaseerd op deze ervarinegen beslissen wat het maximale basaal mag zijn en dit in de pomp instellen + De Open Loop begrijpen, inclusief de voorgestelde tijdelijke basalen + In gesloten Loop werken met een max. IOB = 0 voor enkele dagen met een beperkt aantal LBG + Starten met gesloten Loop met lage glucose begrenzing + Gebruik enkele dagen en ten miinste 1 naght zonder een laag BG alarm voordat je je BG doel laat dalen + BG beschikbaar op NS + Pas het basaal en de ratios aan indien nodig, activeer hierna de auto-sens optie + Bereken nu + Standaardwaarde: waar Dit wordt gebruikt om autosens de bevoegdheid te geven BG doelen aan te passen alsook ISF en basalen + Interval voor autosens [u] + Aantal uren in het verleden voor gevoeligheids detectie (koolhy. absorbtie tijd niet meegerekend) + Gebruik de AMA autosens functie + OpenAPS MA + Autosens gegevens + Plugin is gedeactiveerd + Geen BG gegevens beschikbaar + Geen profiel beschikbaar + Maximaal basaal IOB OpenAPS kan toedienen [E] + Profiel + Waarde %s is buiten de toegestane limieten + Basis basale dosis + Laatse berekening + Laatste uitvoering + Glucose gegevens + Actueel + Berekende gegevens + IOB gegevens + DIt is de maximale waarde waarop het basaal door OpenAPS ingesteld kan worden + Profiel wissel + NS Profiel + NSPROFIEL + Pomp + Tijdelijk basaal + Tijdelijk basaal + Tijdelijk streefdoel + Actie + Start + Controleer + Wachtend: + Gepauzeerd + Leeftijd Patient + Voeg toe + Profiel + Percent + Kies leeftijd van de patient voor veiligheids limieten + Percentage factor waarmee het basaal profiel mag vermenigvuldigd worden + Sta wijzigingen toe + PRE + Streefdoel: + Vertraagde bolus + Annuleer vertraagde bolus + Basale waarde [E/u] + KH tijdsduur + Haal wijzigingen op van NS + Herlaad profiel + Sluiten van applicatie om instellingen bij te werken + Doel: + Bolus via sms niet toegestaan + Geen SMS bevoegdheid + Sta SMS bevelen toe + SMS + Onderbreek loop voor 10u + Onderbreek loop voor 1u + Onderbreek loop voor 2u + Onderbreek loop voor 3u + svenska + Tiener + Tijdelijk basaal toedien storing + Totale IOB: + русский + Gemiddeld verschil + Gebruik altijd kleine gemiddelde verschillen ipv gewone verschillen + Tabel met %d elementen. Actuele waarde: + Verwijder + Wijzig + Home + Geldigheid: + Koolhydraten: + Knop tekst: + Kalibratie + Bolus wizard + E bolus + DS bolus + DE bolus + Basale uren + Basale waarde [%] + Basaal type + Basaal stap + Bolus limiet ingesteld + KH limiet ingesteld + CircadianPercentageProfiel + S Bolus + DanaR Statistiek + Cumulative TDD + Exponentieel verhoogt TDD + Ratio + TBB * 2 + TDD + Mogelijks inacuraat bij gebruik van bolussen om infusieset te vullen + Verschil + DIA: + Alle profiel wijzigingen worden genegeerd, aktief profiel wordt gebruikt + Basis-IC aanpassen: + Basis-ISF aanpassen: + Uitgevoerd + Fast Acting Insulin Prolonged + Groot gemiddeld verschil + LAAG grens + GEEN APS GESLECTEERD OF TOEGEKENT RESULTAAT + Activeer delen met andere apps (zoals xDrip). + Activeer locaal delen + Log app start naar NS + AAPS is verbonden met NS maar er worden geen wijzigingen uitgevoerd op NS + Gebruik altijd absolute basale waarden + NSClient niet geïnstalleerd. Gegevens verloren! + Actief profiel + Basaal + DIA + KH ratio + Oude gegevens + Oude gegevens sinds [min] + Alarm oude gegevens sinds [min] + Dringend oude gegevens vernieuwen + Dit zal worden gebruikt in het Ingegeven door vak + OAPS + Activeren van extra functies tijdens de dag zoals AMA + Manuele correcties + Minimale tijdsduur + Pomp status beschikbaar op NS + DOEL + Afsluiting + Lopende berichten + Opene instellingen op Wear + Maximale E/u dat OpenAPS kan toedienen + Verschil instellingen + Bereik voor visualisatie + Ontlucht/vul + Instelln van basaal profiel mislukt + Basaal profiel in pomp bijgewerkt + IOB: + Ins: + Ratio: + Tijdsduur: + TB + TT + Behandeling veiligheden + Pomp storing + Tijd in uren waarbij het profiel cilindrische verschoven wordt + Inregelen van de closed loop, verhoog de max IOB boven 0 en laat gelijdelijk het BG doel dalen + PBAGE + Standaard waarde: 1.2 Dit betekent dat de verhoging voor autosense ratio (en autotune ratio) is ingesteld op max 20%. Maw. een limiet in hoever je basaal kan verhooght worden en hoeveel je ISF en BG doel verlaagd kan worden. + Enkel NS upload. Heeft geen effect op de SGV tot als een lokale bron zoals xDipp geselecteerd is. Heeft geen effect op de profielen wanneer het ns profiel is gekozen. + Pomp niet geïnitialiseerd + Pomp niet geïnitialiseerd, profiel niet gekozen! + Pomp is in gebruik + Pomp uitschakelen + Pomp onderbreken + Pomp onderbroken. Klik om de status te vernieuwen + Instelassisten + Instelassistent instellingen + SEN + Verwijder gegeven: + Verzend alle gegevens opnieuw + Wil je echt de databank wissen? + SENS + Klein gemiddeld verschil + Kleine tab tittels + Verschil: + %dmin geleden + Loop hervat + Loop onderbroken + Basale instellingen op afstand zijn niet toegestaan + Kalibratie op afstand is niet toegestaan + Bevelen op astand zijn niet toegestaan + Tijdelijk basaal afgebroken + Afbreken van tijdelijk basaal mislukt + Streefdoel ontbreekt in profiel. Standaard waarde wordt gebruikt + Start tijdelijk basaal mislukt + Deze waarde wordt de MAx IOB in OpenAPS context genoemt. Dit is standaard 0. Na enkele dagen of weken naargelang uw vertrouwen kan je dit getal wijzigen. + Hoge en lage grens voor grafieken op het overzicht en op Wear + Onbekend bevel of verkeerd antwoord + Verkeerde tijdsduur + Status: + Stoppen van vertraagde bolus + Stoppen van tijdelijk basaal + Succes + Superbolus + Opgelet! Onderstaande waardes moeten normaal gezien niet worden aangepast. KLIK HIER en LEES de tekst zodat je alles volledig BEGRIJPT voordat je een waarde wijzigt. + Standaard waarde: 0.7 Dit is de andere kan van de autosens veiligheid limiet. Dit zet een limiet op hoe laag het basaal kan aangepast worden, en hoe hoog het ISF en het BG doel + Standaard waarde: 2 Bolus snooze is actief nadat je een maaltijd bolus toegediend hebt, zodat de loop geen tegenvoorstel met een verlaagd tijdelijk basaal doet nadat je gegeten hebt. Het voorbeeld hier van van standaard 2; dus een 3 u DIA betekent dat de bolus snooze gemiddeld 1.5u actief is (3DIA/2). + Standaard waarde: 4 Dit is een combinatie van enerzijds het OpenAPS veiligheid limieten en anderzijds van “3 x max dagelijks basaal ; 4x actueel”. Dit betekent dat het basaal niet hoger kan ingesteld worden dan het ingestelde nummer keer het actueel basaal waarbij de limiet in de pomp geen invloed heeft.Dit is een veiligheidsmaatregel om te vermijden dat patiënten in gevaarlijke laag bereik komen zonder te snappen hoe het algoritme werkt. Nogmaals de standaard waarde is 4x; de meeste zullen deze waarde nooit moeten aanpassen maar zullen eerder andere waardes moeten aanpassen als ze tegen een limiet aanstoten. + 1 week succesvol loop gedurende de dag met geregeld KH ingave + Synchroniseer profiel met de pomp + ACTIVITIJD & FEEDBACK + Model: %02X Protokoll: %02X Code: %02X + Verbonden gedurende %d s + Totaal %d gegevens geupload + %.2f gelimitteerd tot %.2f + Om de loop te onderbreken voor %d minuten antwoord met de code %s + Tijdelijk basaal %.2fE/u voor %d minuten succesvol gestart + Gemiddelde gevoeligheid + Dit mag niet gebruikt worden om medische besluiten te trekken. Er is geen garantie voor dit programma voor de werking en het gebruik van dit programma. Tenzij anders beschreven in het copy right. Gebruikers en andere partijen leven dit programma zoals het momenteel is, dit zonder enige garantie. + Standaard waarde: 3.0 Dit is een belangrijke veiligheid parameter van OpenAPS. Dit limiteert je basaal met een max va 3 maal je hoogste basale dosis. Normaal hoef je deze niet te veranderen. Het is echter belangrijk dat je de ingebouwde limieten kent + "Standaard waarde: 3.0 Dit is de instelling voor standaard KH absorbeer impact per 5 minuten. Deze standaard waarde slaat op 3mg/dl/5min. Dit heeft effect op hoe snel COB uitgewerkt zijn en hoeveel KH absorptie zal worden gebruikt in het berekenen van de volgende BG en dit wanneer de BG sneller daalt of stijgt dan verwacht. " + Activeer profiel + Datum + Free-Peak Oref + DIA van %s te kort - %s wordt inplaats gebruikt!\" + IOB curve piek tijd + Piek tijd [min] + Ongeldig + Snel-werkende Oref + Fiasp + Ultra-Rapid Oref + From 6ea7549e4fbc5cde73534d6fa903c904c5524f2d Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sat, 26 Aug 2017 12:07:37 +0200 Subject: [PATCH 03/53] update languages --- app/src/main/res/values-cs/strings.xml | 9 +++++++++ app/src/main/res/values-it/strings.xml | 2 +- app/src/main/res/values-ru/strings.xml | 2 +- app/src/main/res/values-sv/strings.xml | 3 ++- app/src/main/res/values/strings.xml | 2 +- 5 files changed, 14 insertions(+), 4 deletions(-) diff --git a/app/src/main/res/values-cs/strings.xml b/app/src/main/res/values-cs/strings.xml index e3605d0f5f..56ccf2a223 100644 --- a/app/src/main/res/values-cs/strings.xml +++ b/app/src/main/res/values-cs/strings.xml @@ -620,4 +620,13 @@ Uploader UPLD AndroidAPS + AKTIVOVAT PROFIL + Zobrazovat prodloužený bolus v % + Datum + DIA %s je příliž krátké - použito %s ! + Čas vrcholu IOB křivky + Vrchol křivky [min] + NEPLATNÝ + Nizozemština + Švédština diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 13ea3fe715..d57e7d5876 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -156,7 +156,7 @@ Modifica Base-IC: Modifica Base-ISF: Greco - Inglese + English Abilitare Abilitare Loop diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 03bc3dcebe..8a5910fb92 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -191,7 +191,7 @@ редактировать инсулин/ВХ: редактировать чувствительность к инсулину: греческий - английский + English активировано активировать цикличность активировать суперболюс diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index f8aff3bad7..a4ef3e7b2e 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -176,7 +176,7 @@ Duration Äta snart Ändra Base-Basal: - Engelska + English Startad Starta loop Aktivera superbolus i kalkylatorn @@ -586,4 +586,5 @@ Bråttom hög Bråttom låg Bråttom gammal data + AndroidAPS diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index b12e163a7e..9eb710ce9a 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -697,7 +697,7 @@ Free-Peak Oref Rapid-Acting Oref Ultra-Rapid Oref - "DIA of %s too short - using %s instead!" + DIA of %s too short - using %s instead! ACTIVATE PROFILE Date INVALID From 40d86eb87ac5ac4816a127a7cb581a9b91f9d36a Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sat, 26 Aug 2017 14:37:38 +0200 Subject: [PATCH 04/53] fix strings --- app/src/main/res/values-cs/strings.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/res/values-cs/strings.xml b/app/src/main/res/values-cs/strings.xml index 56ccf2a223..e656d0053d 100644 --- a/app/src/main/res/values-cs/strings.xml +++ b/app/src/main/res/values-cs/strings.xml @@ -623,7 +623,7 @@ AKTIVOVAT PROFIL Zobrazovat prodloužený bolus v % Datum - DIA %s je příliž krátké - použito %s ! + DIA %s je příliž krátké - použito %s ! Čas vrcholu IOB křivky Vrchol křivky [min] NEPLATNÝ From 3369ce17591869961e5a0a8b6cc34a086211aa46 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sat, 26 Aug 2017 20:42:25 +0200 Subject: [PATCH 05/53] temporary remove untested plugin for release --- app/src/main/java/info/nightscout/androidaps/MainApp.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/MainApp.java b/app/src/main/java/info/nightscout/androidaps/MainApp.java index 338b5f2e07..ac9aa93c7b 100644 --- a/app/src/main/java/info/nightscout/androidaps/MainApp.java +++ b/app/src/main/java/info/nightscout/androidaps/MainApp.java @@ -118,8 +118,8 @@ public class MainApp extends Application { pluginsList.add(InsulinOrefUltraRapidActingFragment.getPlugin()); pluginsList.add(InsulinOrefFreePeakFragment.getPlugin()); pluginsList.add(SensitivityOref0Plugin.getPlugin()); - pluginsList.add(SensitivityAAPSPlugin.getPlugin()); - pluginsList.add(SensitivityWeightedAveragePlugin.getPlugin()); + //pluginsList.add(SensitivityAAPSPlugin.getPlugin()); + //pluginsList.add(SensitivityWeightedAveragePlugin.getPlugin()); if (Config.DANAR) pluginsList.add(DanaRFragment.getPlugin()); if (Config.DANAR) pluginsList.add(DanaRKoreanFragment.getPlugin()); if (Config.DANARv2) pluginsList.add(DanaRv2Fragment.getPlugin()); From 491378caf52f0e8ccb77ce3d82943618d6203055 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sat, 26 Aug 2017 20:42:53 +0200 Subject: [PATCH 06/53] 1.51 bump --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 8585b54e63..d6f321e942 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -44,7 +44,7 @@ android { minSdkVersion 21 targetSdkVersion 23 versionCode 1500 - version "1.5h" + version "1.51" buildConfigField "String", "VERSION", '"' + version + '"' buildConfigField "String", "BUILDVERSION", generateGitBuild() } From b02b1829adc0f4afeaeab56160964d692e135c26 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sat, 26 Aug 2017 21:26:40 +0200 Subject: [PATCH 07/53] put back sensitivity plugins --- app/src/main/java/info/nightscout/androidaps/MainApp.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/MainApp.java b/app/src/main/java/info/nightscout/androidaps/MainApp.java index ac9aa93c7b..338b5f2e07 100644 --- a/app/src/main/java/info/nightscout/androidaps/MainApp.java +++ b/app/src/main/java/info/nightscout/androidaps/MainApp.java @@ -118,8 +118,8 @@ public class MainApp extends Application { pluginsList.add(InsulinOrefUltraRapidActingFragment.getPlugin()); pluginsList.add(InsulinOrefFreePeakFragment.getPlugin()); pluginsList.add(SensitivityOref0Plugin.getPlugin()); - //pluginsList.add(SensitivityAAPSPlugin.getPlugin()); - //pluginsList.add(SensitivityWeightedAveragePlugin.getPlugin()); + pluginsList.add(SensitivityAAPSPlugin.getPlugin()); + pluginsList.add(SensitivityWeightedAveragePlugin.getPlugin()); if (Config.DANAR) pluginsList.add(DanaRFragment.getPlugin()); if (Config.DANAR) pluginsList.add(DanaRKoreanFragment.getPlugin()); if (Config.DANARv2) pluginsList.add(DanaRv2Fragment.getPlugin()); From e4c98e6cd1cda813d27dc00a8379b6fd0ecb4df4 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sat, 26 Aug 2017 21:28:08 +0200 Subject: [PATCH 08/53] make dev 1.52 --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index d6f321e942..8d62dbe7f3 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -44,7 +44,7 @@ android { minSdkVersion 21 targetSdkVersion 23 versionCode 1500 - version "1.51" + version "1.52" buildConfigField "String", "VERSION", '"' + version + '"' buildConfigField "String", "BUILDVERSION", generateGitBuild() } From 6bf120e9da4df5004c777bbfab3b355fcd0306c5 Mon Sep 17 00:00:00 2001 From: Radoslav Radev Date: Sat, 26 Aug 2017 22:59:14 +0300 Subject: [PATCH 09/53] Update strings.xml --- app/src/main/res/values-bg/strings.xml | 77 ++++++++++++++++---------- 1 file changed, 48 insertions(+), 29 deletions(-) diff --git a/app/src/main/res/values-bg/strings.xml b/app/src/main/res/values-bg/strings.xml index 3293aa7f03..84ae6eaf3b 100644 --- a/app/src/main/res/values-bg/strings.xml +++ b/app/src/main/res/values-bg/strings.xml @@ -82,7 +82,7 @@ NS Профил Обикновен профил TempBasal - Treatments + Лечения Виртуална помпа Careportal @@ -96,8 +96,8 @@ дни Минимална продължителност Ограничения - Цикъл - Цикъл + Loop + Loop APS След ограничения Зададено на помпата @@ -106,7 +106,7 @@ Откажи НЕ Е ИЗБРАН APS ИЛИ НЯМА РЕЗУЛТАТ ОТ НЕГО Сигурност - Плъгина е изключен + Модула е изключен Нарушено ограничение Грешка при подаване на болус Грешка при подаване на временен базал @@ -130,10 +130,10 @@ NSClient APS режим - Затворен цикъл - Отворен цикъл - изключен - Изключи + Closed Loop + Open Loop + Loop изключен + Изключи Loop Включи Има ново предложение Несъвместима версия на NSClient @@ -142,7 +142,7 @@ КЗ да се вижда в NS Статуса на помпа да е достъпен в NS Ръчно приложени - ЦИКЪЛА Е СПРЯН ОТ ОГРАНИЧЕНИЯТА + LOOP Е СПРЯН ОТ ОГРАНИЧЕНИЯТА Czech English Базален IOB @@ -180,7 +180,7 @@ Бележки Време на събитие Профил - Въведен от + Въведено от Тип КЗ Още не е зареден профила от NS Временен базал @@ -283,7 +283,7 @@ КЗ Пълнене Спиране - Свързване с помпата за %d сек. + Свързва се с помпата за %d сек. Парола за помпата Грешна парола за помпата! Помпата е заета @@ -294,15 +294,15 @@ Натиснат е СТОП! Очаква помпата Очаква резутат. Натисни за обновяване. - Ще доставя %.2fЕ + Ще достави %.2fЕ Настройка на визуализацията и наблюдението, а също и анализиране на базалните нужди и коефициенти - Работете в Отворен режим няколко дни и ръчно прилагайте на много временни базали - Стартиране на Отворен режим + Работете в Open Loop няколко дни и ръчно прилагайте на много временни базали + Стартиране на Open Loop Определяне на макс. лимит на базалния инсулин и настройване в помпата и програмата - Разбиране на вашият Отворен режим, включително препоръчваните временни базали - Стартиране на Затворен цикъл с изключване на базал при ниска КЗ - Стартиране на Затворен цикъл с макс. IOB=0 без твърде много събития тип ниска КЗ - Настройване на Затворения цикъл чрез повишаване на максималният IOB над 0 и понижаване на целевите нива на КЗ + Разбиране на вашият Open Loop, включително препоръчваните временни базали + Стартиране на Closed Loop с изключване на базал при ниска КЗ + Стартиране на Closed Loop с макс. IOB=0 без твърде много събития тип ниска КЗ + Настройване на Closed Loop чрез повишаване на максималният IOB над 0 и понижаване на целевите нива на КЗ Прекарайте няколко дни по този начин, като поне една нощ нямате аларма за ниска КЗ. Настройване на базалния инсулин и коефициенти ако е необходимо и активиране на auto-sens Една седмица успешно дневно използване с редовно въвеждане на въглехидрати @@ -387,7 +387,7 @@ Писалки MM640g Текущи известия - ПЕКАЛЕНО СТАРИ ДАННИ + СТАРИ ДАННИ преди %d мин %dmin ago Локален профил @@ -440,14 +440,14 @@ Използвай краткоср. Δ вместо разлика от последната КЗ Полезно при данни за КЗ с много шум Разширени настройки - Медел: %02X Протокол: %02X Код: %02X + Модел: %02X Протокол: %02X Код: %02X Профил По подразбиране: 3 Това е основен параметър в сигурността на OpenAPS. Той ограничава максималният базал да бъде 3 пъти най-голямата стойност от дневните базали. Не би трябвало да има нужа от промяна, защото от опит сме проверили, че максимумите са “3x от най-високия дневен; 4x от текущия”. По подразбиране: 4\nТова е другият основен параметър в сигурността на OpenAPS, и другата половина от "3x от най-високия дневен; 4x от текущия". Това означава, че независимо от макс базал настроен в помпата, стойността на базала не може да е по-висока от тази стойност умножена по стойността на базала за текущият час от денонощието. Това е с цел да предпази от прекалено високи стойности на максималния базал преди да разбират как работи алгоритъма. Повечето от Вас няма да имат нужда от смяна на тази стойност и могат да се справят с настойки на другите параметри. По подразбиране: 1.2\nТова е максималният множител на autosens (а скоро autotune) за да позволи 20% максимален лимит на autosens коефициента, който от своя страна настройва базалите, колко може да намали ISF, и колко ниско може да свали целевата КЗ. По подразбиране: 0.7\nДругата част от сигурността на autosens, слагайки ограничение на колко ниско може да ограничи базалите, колко да повиши чувствителността (ISF) и целевите КЗ. По подразбиране: разрешено\nТова позволява на autosens да променя и целевите КЗ(освен чувствителност и базал). - По подразбиране: 2\nBolus snooze се активира след като поставите болус за основно хранене, така цикъла няма да пуснка/намаля базалите веднага след като сте се хранили. Примерът тук е с 2; така при 3 часа DIA това ще означава че bolus snooze ще бъде внимателно изместен 1.5 часа (3DIA/2). + По подразбиране: 2\nBolus snooze се активира след като поставите болус за основно хранене, така Loop няма да пуснка/намаля базалите веднага след като сте се хранили. Примерът тук е с 2; така при 3 часа DIA това ще означава че bolus snooze ще бъде внимателно изместен 1.5 часа (3DIA/2). По подразбиране: 3.0\nТова е настройка на количеството на покачване на КЗ при усвояване на въглехидратите за всеки 5 минути. По подразбиране 3мг/дл/5мин. Това се отразява на това колко бързо се усвояват COB според алгоритъма, и как това се отразява в предвиждането на КЗ, когато тя не се покачва или пада с различен темп от очакваното. Attention!\nNormally you do not have to change these values below. Please CLICK HERE and READ the text and make sure you UNDERSTAND it before change any of these values. http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-3/beyond-low-glucose-suspend.html @@ -487,7 +487,7 @@ вътрешен NSClient NSCI URL: - Autoscroll + Автопревъртане Рестарт Вътрешен NSClient Nightscout адрес @@ -511,16 +511,16 @@ Изберете възраст за определяне лимитите на безопасност Glimp Устройството изглежда не подържа изключване на оптимизиране на батерията! - Моля, позволете рарешение + Моля, добавете рарешение %s се нуждае от зключване на оптимизиране на батерията за пълна функционалност - Цикъл изключен + Loop изключен Изключен (%d мин) Суперболус (%d мин) - Меню Цикъл - Изключи цикъла за 1ч - Изключи цикъла за 2ч - Изключи цикъла за 3ч - Изключи цикъла за 10 ч + Меню Loop + Изключи Loop за 1ч + Изключи Loop за 2ч + Изключи Loop за 3ч + Изключи Loop за 10 ч Изключи помпата за 30 мин. Изключи помпата за 1 ч Изключи помпата за 2 ч @@ -631,4 +631,23 @@ Раздели IOB от болус и от базал на часовника Покажи подробен IOB AndroidAPS + Активирай профила + АКТИВНОСТ И ОБРАТНА ВРЪЗКА + ХРАНА И БОЛУС + CGM & OPENAPS + Продължителност [мин.] + ПОМПА + Дата + DIA от %s е твърде кратка - използвай %s вместо това! + със свободен пик по Oref + Пик на кривата на IOB + Време на пик [мин.] + НЕВАЛИДНО + Dutch + Базална стойност [Е/ч] + Бързодействащ по Oref + SEN + Swedish + Fiasp + Ултра бързодействащ по Oref From 761f9f5075c2fabcb53a8aeaf58c56225990c7be Mon Sep 17 00:00:00 2001 From: warstar2187 Date: Sun, 27 Aug 2017 06:09:17 +0900 Subject: [PATCH 10/53] Update strings.xml --- app/src/main/res/values-ko/strings.xml | 94 +++++++++++++------------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/app/src/main/res/values-ko/strings.xml b/app/src/main/res/values-ko/strings.xml index 33cf3ef855..5dce573231 100644 --- a/app/src/main/res/values-ko/strings.xml +++ b/app/src/main/res/values-ko/strings.xml @@ -42,7 +42,7 @@ 탄수화물 양 혈당 탄수화물 - Corr + 교정 U 식사주입 IOB @@ -98,7 +98,7 @@ Loop APS 제약 적용 후 - 펌프로 설정 + 펌프 설정 최근 주입 OK 취소 @@ -107,7 +107,7 @@ 플러그인이 사용불가능 합니다 제한 위반 식사주입 전송 에러 - 임시기초 전송 에러 + 임시기초주입 전송 에러 기초주입 값 [%] % (100% = 현재) 새 임시기초주입 적용: @@ -224,7 +224,7 @@ 선택된 기기를 찾지 못했습니다 펌프 연결 에러 펌프 IOB - 하루 인슐린양 + 일 인슐린 총량 최근 식사주입: 시간 전 사용할수 없는 입력 데이터 @@ -245,7 +245,7 @@ 보정값 %.2f을 전송하려면 %s 를 입력하고 답장하세요 Bolus failed Bolus %.2fU delivered successfully - Going to deliver %.2fU + %.2fU 주입 예정입니다. Bolus %.2fU delivered successfully %.2fU 주입중 SMS 원격 명령 사용하기 @@ -271,7 +271,7 @@ 혈당 탄수화물 알람 - Total %d records uploaded + 총 %d 기록들이 업로드되었습니다. S bolus 알람 기초주입 시간 @@ -294,19 +294,19 @@ 펌프를 기다리는 중 펌프를 기다리고 있습니다. 새로고침 하려면 클릭하세요. %.2fU을 주입합니다 - 나이트스카우트를 세팅하고, 기초주입과 비율을 분석한다. + 표시설정과 모니터링설정을 완료하고, 기초주입과 비율을 분석한다. 나이트스카우트에서 혈당 데이터가 잘 들어오는지, 펌프데이터가 업로드 되는지 확인한다. Open Loop를 시작한다. - Open Loop 모드에서 몇일동안 사용해보고, 수동으로 여러번 임시기초주입을 해본다. + Open Loop 모드에서 몇일간 사용하여보고, 임시기초주입을 여러번 수동으로 실행하여본다. 임시기초주입 추천기능을 포함해서, Open Loop에 대해 이해한다. 이 경험을 토대로, 최대 기초주입량을 결정하고 이를 펌프와 설정에 입력한다. Closed Loop를 시작하고 저혈당인슐린 중지 기능을 사용해본다. 최대 IOB = 0 인 상태로 Closed Loop를 몇일동안 실행시켜 본다. 저혈당 인슐린일시중지가 많이 발생하지 않도록 한다. - Closed Loop를 조정하고, 최대 IOB를 0 이상으로 올려서 서서히 혈당 목표치를 낮춘다. - 혈당을 낮추기 전에 최소한 하루는 저혈당 혈당 알람없게 하고 몇일간 사용해본다. + Closed Loop를 조정하여 최대 IOB를 0 이상으로 올려서 서서히 혈당 목표치를 낮춘다. + 혈당을 낮추기 전에 몇일간 사용해보되 최소한 하루는 저혈당 혈당 알람이 발생하지 않도록 해본다. 필요하면 기초주입과 비율을 조절하고, auto-sens를 활성화한다. - 평소 먹는 탄수화물 입력하면서 Loop를 실행하고 1주일간 성공적으로 낮시간을 관리한다. - AMA(Advanced Meal Assist)같은 주간용을 위한 추가적인 기능들을 실행하여 본다. + 평소의 탄수화물을 입력하면서 1주일동안 낮시간대에 loop를 성공적으로 사용해본다. + AMA(Advanced Meal Assist)같은 낮시간대를 위한 추가적인 기능들을 실행하여 본다. 허용된 제한값에 도달하였습니다 프로파일이 선택되지 않았습니다 Loop가 중지되었습니다. @@ -320,10 +320,10 @@ 기초주입 %.2fU/h 을 실행하려면 %s 를 입력하고 답장하세요 %d분동안 Loop 일시중지하려면 %s 를 입력하고 답장하세요 Temp basal %.2fU/h for %d min started successfully - 임시기초 시작을 실패하였습니다. + Temp basal start failed 임시기초주입을 중지하려면 %s 를 입력하고 답장하세요 - 임시기초가 취소되었습니다. - 임시기초 취소를 실패하였습니다. + Temp basal canceled + Canceling temp basal failed 알려지지 않은 명령이거나 잘못된 답장입니다. 빠른마법사 빠른마법사 설정 @@ -343,7 +343,7 @@ 펌프가 초기화 되지 않았습니다! 펌프가 초기화와 프로파일 설정이 되지 않았습니다! 공기/채움 - Please make sure the amount matches the specification of your infusion set! + 양이 인퓨전세트의 사양과 일치하는지 확인하세요! 기타 공기/채움 기본 인슐린양 버튼1 @@ -412,8 +412,8 @@ 비율 #일 가중 - Possibly inaccurate if using boluses for priming/filling! - Old Data Please Press "RELOAD" + 공기/채움을 위해 식사주입을 사용한 경우 부정확할 수 있습니다!! + 오래된 데이터입니다. "새로고침"을 누르세요. 총기초량 총기초량 * 2 초기화중 ... @@ -437,19 +437,19 @@ SMS 탭 이름 단축 Delta Settings - Always use short average delta instead of simple delta - Useful when data from unfiltered sources like xDrip gets noisy. + 단순델타값 대신 단기평균델타값을 항상 사용합니다. + xDrip의 혈당데이터에 노이즈가 심할경우 유용합니다. 고급 설정 Model: %02X Protocol: %02X Code: %02X 프로파일 - Default value: 3\nThis is a key OpenAPS safety cap. What this does is limit your basals to be 3x (in this people) your biggest basal rate. You likely will not need to change this, but you should be aware that’s what is discussed about “3x max daily; 4x current” for safety caps. - Default value: 4\nThis is the other half of the key OpenAPS safety caps, and the other half of “3x max daily; 4x current” of the safety caps. This means your basal, regardless of max basal set on your pump, cannot be any higher than this number times the current level of your basal. This is to prevent people from getting into dangerous territory by setting excessively high max basals before understanding how the algorithm works. Again, the default is 4x; most people will never need to adjust this and are instead more likely to need to adjust other settings if they feel like they are “running into” this safety cap. - Default value: 1.2\nThis is a multiplier cap for autosens (and soon autotune) to set a 20% max limit on how high the autosens ratio can be, which in turn determines how high autosens can adjust basals, how low it can adjust ISF, and how low it can set the BG target. - Default value: 0.7\nThe other side of the autosens safety limits, putting a cap on how low autosens can adjust basals, and how high it can adjust ISF and BG targets. - Default value: true\nThis is used to allow autosens to adjust BG targets, in addition to ISF and basals. - Default value: 2\nBolus snooze is enacted after you do a meal bolus, so the loop won’t counteract with low temps when you’ve just eaten. The example here and default is 2; so a 3 hour DIA means that bolus snooze will be gradually phased out over 1.5 hours (3DIA/2). - Default value: 3.0\nThis is a setting for default carb absorption impact per 5 minutes. The default is an expected 3mg/dl/5min. This affects how fast COB are decayed, and how much carb absorption is assumed in calculating future predicted BG, when BG is falling more than expected, or not rising as much as expected. - 주의!\n보통의 경우 아래의 값을 변경하면 안됩니다. 이 값들을 변경하기 전에 반드시 이곳을 클릭하고 글을 정독해서 확실하게 이해를 하여야 합니다.. + 기본값: 3\n이 값은 중요한 OpenAPS 안전장치입니다. 이 값의 역할은 펌프에 설정되어 있는 최대기초주입량보다 3배를 초과할 수 없게 제한하는 것입니다. 이 값을 변경할 필요는 없을 것이지만, 안전을 위해 "3x max daily; 4x current"이 의미하는 바를 알고 있어야 합니다. + 기본값: 4\n이 값은 "3x max daily; 4x current"의 나머지 절반에 해당하는 또 다른 중요한 OpenAPS 안전장치입니다. 이 값은 펌프에 설정된 최대기초주입량과 관계없이, 설정된 현재시간의 기초주입량에 이 값을 곱한 양을 초과할 수 없게됩니다. 이는 알고리즘의 작동 방식을 이해하기 전에 과도하게 높은 최대 기본을 설정하여 위험한 상황에 빠지지 않도록 보호하기 위한 것입니다. 다시한번, 기본 값은 4배인 것을 알아두세요; 일반적으로 이것을 조정할 필요는 전혀 없으며, 대신 이 안전장치를 변경해야할것처럼 생각이 된다면, 다른 설정을 변경해야 할 가능성이 더 큽니다. + 기본값: 1.2\n이 값은 autosens가 autosens 비율을 얼마나 높게 할 수 있는지에 대한 최대 한계를 20%로 설정하는 승수장치입니다. 이는 autosens가 얼마나 높게 기초주입량을 조절할수 있는지, ISF를 얼마나 낮게 조절할수 있는지, 혈당 목표범위를 얼마나 낮게 설정할수 있는지를 결정합니다. + 기본값: 0.7\nautosens 안전 제한의 나머지 부분입니다. 이는 기초주입량을 얼마나 낮게 조절할 수 있는지, ISF와 혈당 목표범위를 얼마나 높게 설정할 수 있는지를 결정합니다. + 기본값: 활성\n이것은 autosens가 ISF와 기초주입뿐만 아니라, 혈당 목표범위를 조절할 수 있게 합니다. + 기본값: 2\n식사주입 후 Bolus snooze가 수행되게 되고, 따라서 식사주입 직후엔 loop가 low temp에 대응하지 않게 됩니다. 기본값이 2일때 예제는 다음과 같습니다; DIA가 3시간일 경우 bolus snooz는 점차적으로 1.5시간에 걸쳐 단계적으로 사라지게 됩니다.(3DIA/2). + 기본값: 3\n이것은 5분당 기본 탄수화물 흡수량에 대한 설정입니다. 예상되는 기본값은 3mg/dl/5min입니다. 이는 혈당이 예상보다 빨리 떨어지거나 오를때, 얼마나 빨리 COB가 감쇠하는지와 혈당예측을 위한 계산시 탄수화물 흡수량이 얼마나 될것으로 예상되는지에 영향을 미치게 됩니다. + 주의!\n보통의 경우 아래의 값을 변경하면 안됩니다. 이 값들을 변경하기 전에 반드시 이곳을 클릭하고 글을 정독해서 확실하게 이해를 하여야 합니다. http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-3/beyond-low-glucose-suspend.html 숫자만 입력가능합니다. 이 범위(%1$s - %2$s)안에 해당하는 숫자만 입력가능합니다. @@ -468,10 +468,10 @@ 보정 전송됨. xDrip에서 수신이 되도록 설정되어 있어야 합니다. xDrip에서 보정을 받지 못합니다. 다시 보지 않기 - 펌프 일시중지. 상태를 새로고치려면 클릭하세요 + 펌프 일시중지. 상태를 새로고치려면 클릭하세요. 펌프 일시중지됨 펌프 상태 가져오는중 - 임시 기초주입 설정중 + 임시기초주입 설정중 임시기초주입 취소중 확장식사주입 설정중 확장식사주입 취소중 @@ -535,8 +535,8 @@ 10시간동안 펌프 일시중지 재시작 기간이 잘못되었습니다. - Loop 일시중지됨 - Loop 재시작됨 + Loop가 일시중지되었습니다. + Loop가 재시작되었습니다. 15분 추이 COB Superbolus @@ -549,8 +549,8 @@ Fiasp INS Fast Acting Insulin Prolonged - Enable superbolus in wizard - Enable superbolus functionality in wizard. Do not enable until you learn what it really does. IT MAY CAUSE INSULIN OVERDOSE IF USED BLINDLY! + 마법사에서 Superbolus 활성화하기 + 마법사에서 Superbolus 기능을 활성화합니다. 어떤 기능인지 확실히 알기전까지 활성화 하지 마세요. 제대로 알지 못하고 사용하면 일슐린이 과다 주입될 수 있습니다! IOB COB PRE @@ -559,7 +559,7 @@ 최근 연결 블루투스 상태 About - Missing SMS permission + SMS 권한 누락 DEV xDrip 상태(워치) xDrip 상태표시라인(워치) @@ -573,9 +573,9 @@ 확장식사 임시목표 확장 식사주입 취소 - 센서 나이 - 캐뉼라 나이 - 인슐린 나이 + 센서 사용기간 + 캐뉼라 사용기간 + 인슐린 사용기간 시간 기초주입 종류 프로파일에서 ISF가 누락되었습니다. 가본값을 사용합니다. @@ -584,7 +584,7 @@ 프로파일에서 목표범위가 누락되었습니다. 가본값을 사용합니다. 프로파일이 잘못되었습니다 !!! 프로파일변경 - 펌프 배터리 나이 + 펌프배터리사용기간 펌프 배터리 교체 알람 옵션 Urgent high @@ -596,11 +596,11 @@ Urgent stale data Stale data threshold [min] Urgent stale data threshold [min] - Interval for autosens [h] - Amount of hours in the past for sensitivity detection (carbs absorption time is excluded) + autosens 시간 [h] + 민감도를 감지하기 위해 계산될 총 시간 (탄수화물 흡수 시간은 제외됩니다.) SEN - Ignore profile switch events - All profile switch events are ignored and active profile is always used + 프로파일 변경 이벤트 무시하기 + 모든 프로파일 변경 이벤트는 무시되고, 항상 활성 프로파일이 사용됩니다. Pump OpenAPS Device @@ -610,8 +610,8 @@ Sensitivity Oref0 Sensitivity AAPS 흡수 설정 - Meal max absorption time [h] - Time in hours where is expected all carbs from meal will be absorbed + 식사 최대 흡수 시간 [h] + 식사로 섭취한 탄수화물이 모두 흡수될기까지 예상되는 시간 확장식사주입을 %로 표시하기 SAGE IAGE @@ -623,7 +623,7 @@ EXT 화면 잠금 잠금 - By turning on Autosense feature remember to enter all eated carbs. Otherwise carbs deviations will be identified wrong as sensitivity change !! + Autosense 기능을 켜면 모든 섭취된 탄수화물양을 입력하십시오. 그렇지 않으면 탄수화물 편차(deviations)가 민감도 변화로 잘못 인식될것입니다!! Sensitivity WeightedAverage OK Cancel @@ -632,7 +632,7 @@ Values not stored! 개요 알림 개요 알림을 웨어확인메세지로 전달합니다. - (xDrip 같은) 다른 앱으로 브로드캐스트를 활성화합니다. + (xDrip 같은) 다른 앱으로의 브로드캐스트를 활성화합니다. Local Broadcasts 활성화하기 활동 & 조절 탄수화물 & 식사주입 From ba967df2e386517954a8e25f955b3526d5f9ca3f Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sun, 27 Aug 2017 11:44:39 +0200 Subject: [PATCH 11/53] disable careportal buttons until profile is set --- .../Careportal/CareportalFragment.java | 18 + .../main/res/layout/careportal_fragment.xml | 665 +++++++++--------- 2 files changed, 360 insertions(+), 323 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 6ddda8cd68..2353fa6645 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 @@ -9,6 +9,7 @@ import android.text.Layout; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; +import android.widget.LinearLayout; import android.widget.TextView; import com.squareup.otto.Subscribe; @@ -16,10 +17,13 @@ import com.squareup.otto.Subscribe; import info.nightscout.androidaps.BuildConfig; import info.nightscout.androidaps.MainApp; import info.nightscout.androidaps.R; +import info.nightscout.androidaps.data.Profile; +import info.nightscout.androidaps.data.ProfileStore; import info.nightscout.androidaps.db.CareportalEvent; import info.nightscout.androidaps.events.EventCareportalEventChange; import info.nightscout.androidaps.plugins.Careportal.Dialogs.NewNSTreatmentDialog; import info.nightscout.androidaps.plugins.Common.SubscriberFragment; +import info.nightscout.androidaps.plugins.ConfigBuilder.ConfigBuilderPlugin; import info.nightscout.androidaps.plugins.Overview.OverviewFragment; public class CareportalFragment extends SubscriberFragment implements View.OnClickListener { @@ -32,6 +36,8 @@ public class CareportalFragment extends SubscriberFragment implements View.OnCli TextView pbage; View statsLayout; + LinearLayout butonsLayout; + View noProfileView; static public CareportalPlugin getPlugin() { if (careportalPlugin == null) { @@ -95,6 +101,18 @@ public class CareportalFragment extends SubscriberFragment implements View.OnCli statsLayout = (View) view.findViewById(R.id.careportal_stats); + noProfileView = (View) view.findViewById(R.id.profileview_noprofile); + butonsLayout = (LinearLayout) view.findViewById(R.id.careportal_buttons); + + ProfileStore profileStore = ConfigBuilderPlugin.getActiveProfileInterface().getProfile(); + if (profileStore == null) { + noProfileView.setVisibility(View.VISIBLE); + butonsLayout.setVisibility(View.GONE); + } else { + noProfileView.setVisibility(View.GONE); + butonsLayout.setVisibility(View.VISIBLE); + } + if (BuildConfig.NSCLIENTOLNY) statsLayout.setVisibility(View.GONE); // visible on overview diff --git a/app/src/main/res/layout/careportal_fragment.xml b/app/src/main/res/layout/careportal_fragment.xml index 9c7d34d6a1..4f21471075 100644 --- a/app/src/main/res/layout/careportal_fragment.xml +++ b/app/src/main/res/layout/careportal_fragment.xml @@ -22,353 +22,372 @@ android:layout_height="wrap_content" /> + android:gravity="center_horizontal" + android:text="@string/noprofileset" + android:textAppearance="?android:attr/textAppearanceLarge" + android:textColor="@android:color/holo_red_light" + android:textStyle="bold" + android:visibility="gone" /> - - -