Commit Graph

52 Commits

Author SHA1 Message Date
Paul Plant ebd5dc2335 update 2024-01-03 16:13:30 +01:00
Paul Plant af42ec78e9 implement "Time in Tight Range" option
Removed old TIR option based on user-set values in favor of the newer "Time in Tight Range" method.

Two options are now:
- standardized TIR (70-180mg/dL)
- newer TITR (70-140mg/dL)

- https://diatribe.org/time-tight-range-new-diabetes-goal

- added double tap gesture to the statistics view to quickly change between both types.

-
- added transition so that the user is visually shown which limits are changed when changing types

- added localization. Initial translations for EN, ES.

- changed many of the settings menu row descriptions to remove the "?" from them to clean up the look of them.
2023-12-18 12:12:50 +01:00
Paul Plant 24326e9db4 simplify BLE peripheral screens + add reset option for Anubis
Removed address from all transmitters

for Dexcom transmitters:
- removed resistance
- removed temperature
- removed runtime

(none of the above add any real value for current transmitters)

Added back the reset transmitter option, changed to specify only for Anubis transmitters and also added an info alert when selected.

Initial translations added: EN, ES
2023-12-17 19:57:56 +01:00
Paul Plant 60874af5fd initial implementation sensor info view
- replaces the old image-based sensor countdown (only for Libre)
- will now work for all CGM systems that report a sensor start date (or sensor age in the case of Libre)
- if no current/valid data is found, the view remains hidden
- currently showing for Libre 2 EU BLE (14.5 days), compatible Libre via external transmitter (14.5 days), Dexcom G5/G6/One (10.0 days) and LibreLinkUp follower (14.0 days)
- starts at 0% progress for 0d and finishes at 100% progress for maxAge as per above line
- To simply UI, sensor countdown options are removed completely
- All maxAge values are in Constants file for easy updating if ever needed
2023-11-06 19:03:29 +01:00
Markus Kotilainen b5181ebbf0 Update Finnish translations 2023-04-09 15:45:53 +03:00
Paul Plant 295d703be6 removal of ":" from the end of row labels
As the row label and text field have different and consistent formats (bold/colour), it can be implicitly seen that a given label applies to a given field/option so there's no real need to use a colon at the end.

By removing the colon from the string, we can also use them for titles etc without it looking strange

Whilst most labels previously had colons, many were missing which can give the UI a confusing look

Update Main.storyboard
2023-02-03 19:45:44 +00:00
Paul Plant 725fd67ec2 update unit strings from mg/dl to mg/dL and mmol/l to mmol/L
- mg/dl changed to mg/dL
- mmol/l changed to mmol/L

There is some boring info here: https://en.wikipedia.org/wiki/Litre
2023-02-03 18:52:22 +00:00
Paul Plant 52ff79bf25 Sensor code dialog change/correction 2023-01-28 21:25:19 +01:00
Paul Plant 58185737f8 various UI changes for dates/texts/fields
- change "Follow Dexcom-app" to "Read from Dexcom app" to avoid confusion with Dexcom Follow
- changes to transmitter/sensor display formats to use Nightscout format and improve clarity
- label changes
- typo correction: disclosureAaccessoryView -> disclosureAccessoryView
- simplified sensor status UIAlert and now includes sensor duration (elapsed time since start) and remaining (time until end date)
2023-01-07 21:12:01 +01:00
Paul Plant 603db60ff5 Libre 2 NFC re-write
- rewrite of NFC scan workflow
- initial scan of NFC-enabled sensors will now *not* initial BLE scanning
- NFC scan logic redone to perform several loops until a successful NFC scan with valid data is hopefully performed
- UI updated to inform user of scan attempts and give much clearer alert messages.
- haptic feedback (vibrations/noise) added to guide user during scan cycles
- a failed NFC scan will now inform the user and offer to immediately scan again. If the user declines the transmitter will be disconnected (if existing) or removed (if adding new)
- BLE Peripheral view should show correct status in connection row if pending NFC scan to continue
- once a valid NFC scan has been performed, the user will be informed and the superclass will be told to start BLE scanning to find the sensor/transmitter. This will avoid trying to connect before a valid NFC is performed
- the scanned sensor serial number is passed back through the delegate to update the expected device name at the same time as BLE scanning is started. This prevents the app from connecting to a different transmitter (i.e. Libre 2).
- when a Libre 2 sensor is disconnected, the active sensor is set to nil. This prevents the countdown from staying on screen with no valid sensor connected.
- as above but the libre1DerivedParameters are also set to nil to prevent an issue that can show very high readings when initially connecting to a new sensor
- related alert messages changed to improve clarity
- translations added for EN/NL/ES/FR/DE/PT/SV
2023-01-04 13:24:06 +01:00
Paul Plant f1eedbd63a update "Insulin" string to "Bolus" to avoid confusion between bolus/basal 2022-08-28 15:29:06 +02:00
Paul Plant 327a609aa5 implement treatment filtering in list
- the different treatment types (insulin, carbs, BG checks) can be filtered if required to show/hide them in the treatment table
- if boluses are shown, an option to filter micro-boluses is also enabled.
- button icon images are set individually as filled/unfilled to more clearly show if they are selected
- .getTreatments call reduced from 100 days to 21 days to save overhead
- previous settings options to show micro-boluses in the treatments table (and associated translations) removed as no longer needed
2022-06-23 16:21:59 +02:00
Johan Degraeve 0f71c6addd add strings to be translated, for all languages 2022-05-31 23:49:54 +02:00
Paul Plant 1ef321fce4 treatment text corrections + auto text size 2022-05-30 10:01:40 +02:00
Paul Plant dd55733c0d BG Check treatments - initial translations 2022-05-20 14:52:38 +02:00
Johan Degraeve e917ac4bb4
Merge pull request #341 from paulplant/treatments_add_new_improvements
add treatments screen improvements
2022-04-25 21:00:57 +02:00
Paul Plant c3aba81cb2 add treatments screen improvements
- use .decimalPad keyboard for insulin entries
- change "New Entry" to "New Treatment" as the idea of a Treatment "Entry" is not intuitive to most users
- minor IB layout changes to enable future new treatment types to fit easily
2022-04-25 18:45:56 +02:00
Johan Degraeve 4f22c118dd added missing strings to translate (done with script findMissingStrings) 2022-04-12 21:28:55 +02:00
eduardopietre 685fba194d Changed treatments_upload_complete strings to treatments_sync_complete. 2022-03-02 00:09:21 +01:00
eduardopietre 58657b7a94 Added missing localization for Treatments unit and label. 2022-03-02 00:05:28 +01:00
eduardopietre 48f63752a2 Improved UI. Now upload requires pressing upload. 2022-03-02 00:05:28 +01:00
eduardopietre 956c23b29d Implemented treatment, with persistence and uploading to nightscout. 2022-03-02 00:05:21 +01:00
Johan Degraeve 64a2fb07e5 add missing strings to translation files 2022-01-17 20:17:34 +01:00
Johan Degraeve 96c716b808 changed text for 'enter sensor code' 2021-12-23 23:47:15 +01:00
Johan Degraeve 47955b89ba add missing strings to translation files 2021-12-21 22:34:26 +01:00
Johan Degraeve 222c3dc0a4 changed text for settingsviews_webooptransmitter and settingsviews_labelWebOOP 2021-12-21 22:04:00 +01:00
Johan Degraeve bdfbb143c3 one transmitter type for Dexcom G5 and G6 2021-12-21 22:03:59 +01:00
Johan Degraeve a54e70747e new text for 'use other app' 2021-12-21 22:03:59 +01:00
Johan Degraeve d57fe026fb adding missing strings to translation files 2021-12-21 22:03:58 +01:00
Johan Degraeve c4001d0bd2 Firefly support
- connects to firefly and reads readings
- backfilling 6 hours
- sensor start and calibration must be done on the official Dexcom app, afterwards the official Dexcom app (or any other app) should not have access to bluetooth
2021-12-21 22:03:56 +01:00
Paul Plant 4c52fe22a8 Nightscout token authentication 2021-12-20 14:54:17 +01:00
Paul Plant a966457e56 Sensor Countdown new translations added 2021-08-31 19:43:29 +02:00
Paul Plant df8f739d15 sensor countdown improvements. Localization added. Menu option moved to Statistics Settings. Many other localization string names corrected. 2021-08-18 23:27:41 +02:00
Paul Plant a4a84ed738 Revert "Merge branch 'develop' into develop"
This reverts commit b78c9a2626, reversing
changes made to 1b0903c2d9.
2021-06-06 10:49:30 +02:00
Paul Plant b78c9a2626
Merge branch 'develop' into develop 2021-06-04 17:44:44 +02:00
Paul Plant 2f2c6ccfb1
New Crowdin updates (#15)
* New translations AlertTypesSettingsView.strings (French)

* New translations M5StackView.strings (Spanish)

* New translations M5StackView.strings (German)

* New translations M5StackView.strings (Dutch)

* New translations Main.strings (French)

* New translations Main.strings (Spanish)

* New translations Main.strings (Arabic)

* New translations Main.strings (German)

* New translations Main.strings (Finnish)

* New translations Main.strings (Dutch)

* New translations Main.strings (Portuguese)

* New translations Main.strings (Swedish)

* New translations LibreStates.strings (Arabic)

* New translations LibreNFC.strings (German)

* New translations LibreNFC.strings (Finnish)

* New translations LibreNFC.strings (Dutch)

* New translations LibreNFC.strings (Portuguese)

* New translations LibreStates.strings (French)

* New translations LibreStates.strings (Spanish)

* New translations LibreStates.strings (German)

* New translations LibreStates.strings (Finnish)

* New translations LibreStates.strings (Dutch)

* New translations LibreStates.strings (Swedish)

* New translations LibreStates.strings (English)

* New translations Main.strings (English)

* New translations SpeakReading.strings (French)

* New translations SpeakReading.strings (Spanish)

* New translations SpeakReading.strings (German)

* New translations SpeakReading.strings (Dutch)

* New translations WatlaaView.strings (French)

* New translations WatlaaView.strings (German)

* New translations WatlaaView.strings (Finnish)

* New translations SettingsViews.strings (Arabic)

* New translations NightScoutTestResult.strings (German)

* New translations SettingsViews.strings (French)

* New translations SettingsViews.strings (Spanish)

* New translations SettingsViews.strings (German)

* New translations SettingsViews.strings (Finnish)

* New translations SettingsViews.strings (Dutch)

* New translations SettingsViews.strings (Portuguese)

* New translations SettingsViews.strings (Swedish)

* New translations SettingsViews.strings (English)

* New translations Snooze.strings (Spanish)

* New translations Snooze.strings (Arabic)

* New translations Snooze.strings (German)

* New translations LibreNFC.strings (Arabic)

* New translations LibreNFC.strings (French)

* New translations BluetoothPeripheralsView.strings (German)

* New translations BluetoothPeripheralView.strings (Dutch)

* New translations CalibrationRequest.strings (German)

* New translations CalibrationRequest.strings (Portuguese)

* New translations Alerts.strings (Spanish)

* New translations AlertTypesSettingsView.strings (Arabic)

* New translations AlertTypesSettingsView.strings (German)

* New translations AlertTypesSettingsView.strings (Dutch)

* New translations AlertTypesSettingsView.strings (Swedish)

* New translations AlertTypesSettingsView.strings (English)

* New translations Alerts.strings (French)

* New translations BluetoothPeripheralView.strings (German)

* New translations Alerts.strings (German)

* New translations BluetoothPeripheralView.strings (French)

* New translations BluetoothPeripheralView.strings (Spanish)

* New translations Common.strings (French)

* New translations HomeView.strings (Spanish)

* New translations HomeView.strings (German)

* New translations HomeView.strings (Dutch)

* New translations LibreErrors.strings (French)

* New translations LibreErrors.strings (Spanish)

* New translations LibreErrors.strings (German)

* New translations Common.strings (Spanish)

* New translations Common.strings (Arabic)

* New translations Common.strings (German)

* New translations Common.strings (Finnish)

* New translations Common.strings (Dutch)

* New translations Common.strings (Portuguese)

* New translations Common.strings (Swedish)

* New translations Common.strings (English)

* New translations DexcomShareTestResult.strings (Arabic)

* New translations ErrorMessages.strings (German)

* New translations DexcomShareTestResult.strings (German)

* New translations ErrorMessages.strings (French)

* New translations ErrorMessages.strings (Arabic)

* New translations BluetoothPeripheralView.strings (Swedish)
2021-06-02 12:37:13 +02:00
Johan Degraeve c63602ab7f new texts for screen lock feature : add texts for language ar, fi, it, pl, pt, ru, sl and zh 2021-06-01 23:54:00 +02:00
Johan Degraeve b5a1e31e35 language specific strings files : add missing texts
New texts were introduced with changes for statistics. The missing texts were added to the language files
2021-05-07 23:46:52 +02:00
Johan Degraeve 9a91de757b fix #205 : Watch and notification : option to specify minimum time interval between two events or two notifications.
This is not completely as requested in the issue https://github.com/JohanDegraeve/xdripswift/issues/205

It does allow watch/Libre 2 users to have a new reading every minute.
It also allows all users to have specify the minimum time between to calendar events on the watch, or to have a notification with a reading.

For the notification : an overrule of the interval is done if there's been a dis/reconnect, which means if there was a disconnect/reconnect, the next reading will generate a notification, no matter the value of the interval.

Default value for the interval = 0
2021-03-29 23:11:32 +02:00
Paul Plant 098680ab74 Pass ConstantsHome.applicationName to text strings and localization files 2021-03-24 14:49:32 +01:00
Johan Degraeve c7d3e01396 version 4.5.23 - build 4146 - further replacement xDrip4iOS by xDrip4iO5 in all text strings + version increase 2021-03-12 11:08:27 +01:00
Johan Degraeve fcddbd2c40 Replaced Dexcom share errors 'Account Not Found' and 'Invalid Password' by generic error 'Invalid account or password'.
For two reasons :
- Dexcom share response is not always giving the right error code, for example if initial value in the settings is done with random account and random password, then Dexcom does not say if it's the account or password that is wrong
- it's simply not secure to say if it was the account or password that is wrong

And moved the string to TextsCommon as it may apply to other providers as well (never know)
2021-03-03 21:46:30 +01:00
Johan Degraeve 83731a7e0e Text for bluetooth screen : button text should is now 'Transmitter Id' without ':'. 2021-02-23 21:02:03 +01:00
Johan Degraeve d55a39a24d removed unused text sensorAge14Days 2021-02-12 16:46:40 +01:00
Johan Degraeve 7c5191a514 fix #183 move developer settings texts to strings file 2021-02-11 22:30:23 +01:00
Markus Kotilainen d9fe452c23 Added missing Finnish translations 2021-02-08 18:54:34 +02:00
Johan Degraeve 6ccb0c2634 Libre 2 : replaced error message 'error while reading multiple blocks...' by message saying user should retry 2021-02-05 22:12:59 +01:00
Johan Degraeve e207c5a451 Libre 2 : compare bluetooth device name with sensor id received via NFC scan, if these two don't match then it means the user has connected to another (older?) Libre 2 with bluetooth than the one for which NFC scan was done, in that case, inform user 2021-02-04 22:15:10 +01:00
Johan Degraeve 8f5b3b4038 Missing strings added for fi, fr, it, pl-PL, ru, sl, zh 2021-02-01 21:59:31 +01:00
Johan Degraeve ced02a26ae fix in translation files for settingsviews_labelWebOOP 2021-01-30 23:27:11 +01:00