Commit Graph

1915 Commits

Author SHA1 Message Date
Paul Plant 14569b7bab update defaultTargetMarkInMgdl from 120 -> 100 2023-12-24 15:11:48 +01:00
Paul Plant bd6ce1c184 add user-defined TIR back but in a better way
to avoid adding extra menu lines, use an enum to track the TIR type chosen and allow the user to just chose directly, or cycle through by double-tapping the statistics view
2023-12-24 15:00:26 +01:00
Paul Plant d96f2e2e66 data source view fix update
correctly handles an update from 4.x to 5.x where the user has a Libre 2 BLE connected.
it advises them to disconnect and reconnect the sensor
this will only need to be done once after updating to 5.x
2023-12-23 20:10:48 +01:00
Johan Degraeve f7ac188909 version 5.0.0 - build 4191 2023-12-19 23:08:33 +01:00
Johan Degraeve 75672ac367
Merge pull request #473 from paulplant/librelink-follower
LibreLibreUp follower mode
2023-12-19 22:51:29 +01:00
Paul Plant ba94d32a13 increase async delay to refresh on viewDidAppear()
On launching the app, the data source refresh sometimes didn't get enough time to pull data from LibreLinkUp servers.

Increased from 1 to 2 seconds but as there is no animation for this call, it will be unnoticeable in normal use.
2023-12-19 21:32:42 +01:00
Paul Plant 4818ee884c add optional patient name + also indicate mandatory fields
- allow the user to add an optional patient name for follower modes and show this above the main chart. Useful if using several apps to follow different family members.
- added a "required" detail text to the LibreLinkUp e-mail/password and Nightscout URL fields as these should never be left blank when active
- initial translations for the above added EN, ES
2023-12-19 17:06:38 +01:00
Paul Plant eb69b6f226 improved logic handling for follower data source view 2023-12-19 14:40:48 +01:00
Paul Plant d63da46f4a update widget style to match main app
...and also fix watch app build name mistake in earlier commit :)
2023-12-19 12:04:45 +01:00
Paul Plant 774d43a90f Merge branch 'librelink-follower' of https://github.com/paulplant/xdripswift into librelink-follower 2023-12-18 19:12:44 +01:00
Paul Plant aa2cadfdaa corrections to data source view processing
- code refactored to make it easier for future follower types to be added
- ensured double-tap only works if Nightscout URL is shown in the label
- separated "no sensor data" warning and shown in red
- removed keep-alive text label and outlets
2023-12-18 19:12:42 +01:00
Paul Plant 9ab18939b3
Merge branch 'JohanDegraeve:master' into librelink-follower 2023-12-18 18:19:16 +01:00
Paul Plant e6f4b3007d implement clean keep-alive icons in data source info view
- change from text-based indication of selected keep-alive type (i.e. [D] disabled, [N] normal and [A] aggressive) to SF Symbols scaled to match the connectivity indicator
- UIImage returns added to FollowerBackgroundKeepAliveType enum
- removed unused return strings from enum
2023-12-18 18:18:28 +01:00
Paul Plant 3880a33c2d add option to offset carb treatments in the BG chart
- added an option to offset the carb treatment markers above the glucose markers in the charts
- observer added to update chart when setting is changed in the Treatments section of the Settings screen
- small changes to improve carb marker readability
- chart y-axis will automatically adjust if the carb markers are shifted upwards
- initial translations added EN, ES
2023-12-18 14:57:18 +01:00
Paul Plant 231b3ae96d reduce bolus marker sizes slightly 2023-12-18 12:18:48 +01:00
Paul Plant fc3f710c4d Correct pbxproj 2023-12-18 12:16:36 +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 b98273868e screen lock dimming localizations
initial translations to EN and ES
2023-12-17 18:57:05 +01:00
Paul Plant 9fad58a8d3 Update SettingsViewHomeScreenSettingsViewModel.swift 2023-12-17 16:20:16 +01:00
Paul Plant 462a59efe7 data source + sensor progress views updated
- initial translations added (EN, ES)
- server connectivity indicator for follower modes to indicate when there is a working connection to the server
- data source URL for Nightscout follower can be hidden during 20 seconds by double-tapping it (for posting screenshots)
- ConstantsDexcomFollower.swift renamed to ConstantsFollower.swift (as it was never related to Dexcom Follower anyway :) )
2023-12-17 15:57:46 +01:00
Paul Plant 3fe3259467 update default Nightscout URL
Previously we had an example Heroku URL but this service is now no longer the default option for most users, so let's just leave it blank.

Change from "https://yoursitename.herokuapp.com" to "https://"
2023-12-14 18:05:34 +01:00
Paul Plant 3e54d142e2 disable Address Sanitizer + CryptoSwift package version update
disable the Address Sanitizer in the schema to avoid build issues to physical devices when using Xcode 15.1
2023-12-12 20:37:21 +01:00
Paul Plant c888d93433 improve error handling for LibreLinkUpFollowManager 2023-12-10 19:42:05 +01:00
Paul Plant b003ca2842 correct background/foreground closures for sensor info updates 2023-12-07 13:39:39 +01:00
Paul Plant 294732876a clean-up of unneeded files 2023-12-03 22:34:25 +01:00
Johan Degraeve fba5c4e4d1
Merge pull request #477 from bjornoleh/sync_clock
Sync the GitHub runner clock with the Windows time server
2023-12-03 16:56:22 +01:00
bjornoleh d8feb78952 Sync the GitHub runner clock with the Windows time server
Adding a step to workflow jobs that interface Apple servers, as a workaround for build issues caused by runner clocks being out of sync. See https://github.com/actions/runner issue number 2996 for details.

name: Sync clock
run: sudo sntp -sS time.windows.com
Added to the following workflows / jobs:

validate_secrets.yml / validate-fastlane-secrets
add_identifiers.yml / identifiers
build_xdrip.yml / build
create_certs.yml / certificates
2023-12-02 21:11:13 +01:00
Paul Plant 9bf0d45007 screen lock dimming overlay 2023-11-29 20:05:33 +01:00
Paul Plant 748a89f5db updates to remove checks for >iOS13 and zero sensor progress view when going to the background 2023-11-25 19:13:37 +01:00
Paul Plant bfe6dd4695 add sensor expired to sensor view 2023-11-19 11:21:27 +01:00
Paul Plant 6af1f2f34f fix compiler warnings 2023-11-13 20:33:26 +01:00
Paul Plant b314001881 initial implementation background keep-alive modes 2023-11-13 13:15:09 +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
Paul Plant 75384c47e7 rename/redefine activeSensor userdefaults for future compatibility 2023-10-30 20:08:24 +01:00
Paul Plant e2e8391442 http request header tidy + deviceName added for bgReading 2023-10-30 08:35:54 +01:00
Paul Plant 47c8ccda39 version check and update
If a new version is released with a higher librelinkup version number in the constants file than that stored in coredata, then update automatically to this version. useful in case the user hasn't used librelinkup follower mode for some time and may have an old version number.

- also change the formatting in the settings screen as it seems L3 exist also with 0D, 0E and 0F in US, so let's stop trying to guess location from the L3 serial number
2023-10-29 19:45:40 +01:00
Paul Plant 6cbc4ce57f clean up 2023-10-29 19:24:32 +01:00
Paul Plant 133853a6a7 update comments and remove debug code 2023-10-28 10:48:36 +02:00
Paul Plant 0251ca46f3 Delete DataSourceType.swift 2023-10-27 23:48:54 +02:00
Paul Plant 1ffa140b05 clean phantom DataSource group 2023-10-27 23:45:38 +02:00
Paul Plant 97f3258c76 update UI text from "region" -> "server (country)" 2023-10-25 14:41:30 +01:00
Paul Plant e1e32598ff LibreLinkUp Follower - initial implementation 2023-10-24 18:21:29 +01:00
Johan Degraeve b37d724458
Merge pull request #470 from paulplant/xcode14-fix
Xcode14 fix
2023-10-03 22:31:45 +02:00
Johan Degraeve 2c0b8300c2
Merge pull request #469 from bjornoleh/harmonise_with_loop_workflows
Harmonise with Loop workflows
2023-10-03 22:31:15 +02:00
Paul Plant 3b3beb6902 Update SettingsViewAppleWatchSettingsViewModel.swift 2023-10-03 00:14:29 +02:00
Paul Plant 44cf1ea188 Update SettingsViewAppleWatchSettingsViewModel.swift 2023-10-03 00:12:46 +02:00
Paul Plant d7d6c81bba Update SettingsViewAppleWatchSettingsViewModel.swift 2023-10-03 00:07:03 +02:00
Paul Plant 5f1b00ccb8 fix 2 2023-10-02 16:09:03 +02:00
Paul Plant ec50029c44 xcode 14 fix 2023-10-01 19:16:47 +02:00