Commit Graph

1996 Commits

Author SHA1 Message Date
Paul Plant ba8a8f2148 allow Libre 3 heartbeat to use other sources (L2 etc)
- also comment out Nightscout treatment sync in RVC as still causing crashes
2024-03-18 17:59:27 +01:00
Paul Plant f6cbd4a99b Dexcom G7 Heartbeat: call heartbeat at disconnect
Co-Authored-By: Johan Degraeve <13840461+johandegraeve@users.noreply.github.com>
2024-03-17 12:45:31 +01:00
Paul Plant e06d9173c8 scheduleNewDownload runs only if not heartbeat
- it *should* be disabled for KeepAliveType == .disabled as it will not actually run when the app is sleeping in the background until the app is re-opened
2024-03-17 09:25:29 +01:00
Paul Plant 317412fba5 Watch app header view update 2024-03-16 10:17:37 +01:00
Paul Plant 6b5a529728 apple watch debug enable change
was previously activated in the iOS app via dev settings and passed to the watch state, but now just handled by the Watch app. Can be activated/deactivated by tapping 5 times the glucose chart.
2024-03-16 10:03:04 +01:00
Paul Plant b84f318675 Merge branch '5.2.0-staging' of https://github.com/paulplant/xdripswift into 5.2.0-staging 2024-03-15 20:25:11 +01:00
Paul Plant a9a3d1d487 dynamically set watch view to screen size
using WKInterfaceDevice.current().screenBounds.size the chart size is modified together with text sizes in all views in order to make sure the view renders nicely in small watches
2024-03-15 20:24:36 +01:00
Paul Plant 284bbe0e18 dynamically set watch view to screen size
using WKInterfaceDevice.current().screenBounds.size the chart size is modified together with text sizes in all views in order to make sure the view renders nicely in small watches
2024-03-15 20:13:49 +01:00
Paul Plant 845a53300d improve some messages regarding live activities and heartbeat use 2024-03-15 19:14:44 +01:00
Paul Plant cc2df8213a force refresh of notification settings when background keep-alive type is changed
- this ensures that the live activities UI is enabled when heartbeat is selected but disabled otherwise
2024-03-15 19:08:35 +01:00
Paul Plant 67b566cd9d heartbeat disconnect warning (in seconds) now specific to heartbeat type being used
- removed some heartbeat debugging
2024-03-15 18:50:02 +01:00
Paul Plant 25d98f7632 correction to follower download scheduling 2024-03-15 17:01:08 +01:00
Paul Plant a245c21355 keepAlive download scheduling corrections. Heartbeat and network connection UI updates/fixes 2024-03-14 21:49:50 +01:00
Paul Plant 110d6cfd33 Watch complication change and refresh time 2024-03-13 23:59:47 +01:00
Paul Plant 05f31ccd6c update code-sign-identify 2024-03-13 23:06:56 +01:00
Paul Plant c8dce268bc correction to app badge multiply by 10 ui logic 2024-03-13 23:03:18 +01:00
Paul Plant 9c1af87ddb remove debugging test 2024-03-13 22:17:59 +01:00
Paul Plant 866211b5fe watch chart change for 44mm. systemSmall iOS widget update 2024-03-13 22:16:44 +01:00
Paul Plant 39597bef74 changes to heartbeat trigger to push to an async thread whilst waiting for master device to upload to follower service
- live activities re-enabled for follower mode *only* when using a heartbeat
- temporary removal of semaphore to prevent app from hanging when using heartbeat (still unsure why)
2024-03-13 10:11:08 +00:00
Paul Plant a7edde85b4 Merge branch 'develop' into watch-app-3 2024-03-12 14:59:01 +00:00
Paul Plant ecb3539645 initial heartbeat UI implementation for data source 2024-03-12 14:54:59 +00:00
Paul Plant 4f0b9589e6 widget + live activity view updates 2024-03-12 11:58:14 +01:00
Paul Plant 05f99b5779 implement data source info to widgets 2024-03-12 11:55:28 +01:00
Johan Degraeve c38273e552 rename OmniPod to Libre 2 in CGMLibre2Transmitter
was introduced while testing, it's just a naming change
2024-03-11 00:04:52 +01:00
Johan Degraeve 69db67160a rename OmniPod to Libre 2 in CGMLibre2Transmitter
was introduced while testing, it's just a naming change
2024-03-10 20:21:12 +01:00
Paul Plant c5bc3c11bc revert keepAlive changes from earlier commit
- revert keep alive changes from commit 89b03ec2ee
- correct default data source follower network icon
2024-03-10 17:27:02 +01:00
Paul Plant 3229a0e532 watch app improvements, follower mode data source, iOS widget improvements
- also widget data is stored in a new userDefaults variable based upon the app bundle to avoid cross-contamination if various versions are installed on the same device
2024-03-10 11:35:05 +01:00
Paul Plant 48beccc216 implement follower mode functionality for Watch App 2024-03-06 09:15:00 +01:00
Paul Plant 2929118301 added widget .accessoryRectangle + various improvements 2024-03-05 17:22:50 +01:00
Paul Plant bf89f4732a update Data Source Info View progress color
- don't change the progress bar color when expired (or close to expiring)
- it was annoying and also now matches the WatchOS app UI
2024-03-04 20:51:29 +01:00
Paul Plant d671e6ab0a WidgetKit implementation for Watch and xDrip targets 2024-03-04 20:04:07 +01:00
Johan Degraeve 66179194fa fix #502, Libre 2 : if any value > 3000 mg/dl then skip all readings
if the raw glucose value > 3000 mg/dl, then something is seriously wrong, return an empty array.
this should finally result in a missed reading alert. Normally the user should have had many low alerts before this happens
a limit of 3000 should be enough, the values reported in the issue go above 20000
2024-03-02 17:49:09 +01:00
Paul Plant 214ab60ac8 update 240226 2024-02-26 18:10:53 +01:00
Johan Degraeve c389fccea7 fix #482 2024-02-25 22:01:47 +01:00
Johan Degraeve 7acb5734ff don't sync treatments when running in background
there's no need to sync the treatments if the app is running in the background
2024-02-25 14:30:22 +01:00
Paul Plant c0308aa7f9 update 240225 2024-02-25 12:39:47 +01:00
Johan Degraeve cdb3dc565d
Merge pull request #491 from vanzaam/patch-1
Update Common.strings  - "В диапазоне"
2024-02-25 12:20:14 +01:00
Johan Degraeve b3dc269c3d sleep for a second to allow the official app to upload to LibreView
also removed the call to heartbeat after didConnect, that's a bit too early, should not be necessary.
2024-02-25 12:18:09 +01:00
Johan Degraeve f631d54bd8 DexcomG7 companion mode
Identifies the Dexcom G7 without the need for filling in the device name. Requires that the official Dexcom App always runs in parallel.
2024-02-25 12:15:25 +01:00
Paul Plant c581b2bbcd initial wkcomplication structure 2024-02-23 17:42:23 +01:00
Paul Plant da7b119ec2 update 240223 2024-02-23 12:02:24 +01:00
Paul Plant f6ec1deba9 add refresh timer to watch view 2024-02-22 14:36:37 +01:00
Paul Plant e7e45aaec1 update 240221a 2024-02-21 18:56:10 +01:00
Paul Plant 8ea699d1b8 update 240221 2024-02-21 10:38:59 +01:00
Paul Plant 4742bab560 Update project.pbxproj 2024-02-20 10:36:48 +01:00
Paul Plant 007c8328ba update 240219 2024-02-19 20:22:20 +01:00
Paul Plant 26057fd272 refactoring and cleaning up
removed widget/watch specific/duplicated extensions, moved common data models to xDrip target and made sure targets are set correctly for all common files.
2024-02-14 19:59:53 +01:00
Paul Plant 4d1201dfa0 Update ContentView.swift 2024-02-14 09:14:20 +01:00
Paul Plant 47309432d9 update 2024-02-14 08:41:28 +01:00
Paul Plant 0e51afe250 Merge branch 'develop' into watch-app 2024-02-13 22:16:52 +01:00