diff --git a/README.md b/README.md index 71b323d..c848bea 100644 --- a/README.md +++ b/README.md @@ -27,10 +27,10 @@ This patch provides a separate suspend threshold for meal and manual bolusing at ## Omnipod Dash Site Change When replacing a pod, this patch ensures that Loop updates Nightscout with a 'Pump Site Change'-treatment, resulting in an updated 'CAGE'-pill and pod change reminder in Loop Follow. Please note that this will happen on the next pod change after the patch is applied, and the date of current pod will not be updated. -## Dexcom G6 - Sensor Change +## Dexcom G6+G7 - Sensor Change When replacing a sensor, this patch ensures that Loop updates Nightscout with a 'Sensor Change' treatment, resulting in an updated 'SAGE' pill and a sensor change reminder in Loop Follow. Please note that the start date of the current sensor will be populated. -## Dexcom G6 - Upload Readings +## Dexcom G6+G7 - Upload Readings This patch automatically sets the 'Upload readings' option to 'On' by default when changing the transmitter. This change addresses the common issue of users forgetting to change the setting, resulting in no blood sugar values being sent to Nightscout. ## View PreMeal in Nightscout @@ -68,9 +68,6 @@ Additionally, this patch restores the feature to click on Loop's recommended val ## 2 hours Lolipop This patch reverts the carb absorption time for the lollipop (fast) icon in Loop 3 to its original value of 2 hours, which was used in Loop 2. The other default carb absorption times remain unchanged, so the taco (medium) icon remains at 3 hours, and the pizza (slow) icon remains at 5 hours, which is the same as in Loop 3. It's worth noting that Loop 2 had a carb absorption time of 4 hours for the pizza (slow) icon. -## Dexcom G6+G7 - Sensor Change -When replacing a sensor, this patch ensures that Loop updates Nightscout with a 'Sensor Change' treatment, resulting in an updated 'SAGE' pill and a sensor change reminder in Loop Follow. Please note that the start date of the current sensor will be populated. - # Loop Follow patches These patches are intended for the development branch of Loop Follow. diff --git a/g6g7_upload_readings.patch b/g6g7_upload_readings.patch new file mode 100644 index 0000000..92baf17 --- /dev/null +++ b/g6g7_upload_readings.patch @@ -0,0 +1,50 @@ +Submodule CGMBLEKit contains modified content +diff --git a/CGMBLEKit/CGMBLEKit/TransmitterManager.swift b/CGMBLEKit/CGMBLEKit/TransmitterManager.swift +index 4942087..371b7bd 100644 +--- a/CGMBLEKit/CGMBLEKit/TransmitterManager.swift ++++ b/CGMBLEKit/CGMBLEKit/TransmitterManager.swift +@@ -22,7 +22,7 @@ public struct TransmitterManagerState: RawRepresentable, Equatable { + + public var shouldSyncToRemoteService: Bool + +- public init(transmitterID: String, shouldSyncToRemoteService: Bool = false) { ++ public init(transmitterID: String, shouldSyncToRemoteService: Bool = true) { + self.transmitterID = transmitterID + self.shouldSyncToRemoteService = shouldSyncToRemoteService + } +Submodule G7SensorKit contains modified content +diff --git a/G7SensorKit/G7SensorKit/G7CGMManager/G7CGMManagerState.swift b/G7SensorKit/G7SensorKit/G7CGMManager/G7CGMManagerState.swift +index 948b02f..95538dd 100644 +--- a/G7SensorKit/G7SensorKit/G7CGMManager/G7CGMManagerState.swift ++++ b/G7SensorKit/G7SensorKit/G7CGMManager/G7CGMManagerState.swift +@@ -18,7 +18,7 @@ public struct G7CGMManagerState: RawRepresentable, Equatable { + public var latestReading: G7GlucoseMessage? + public var latestReadingTimestamp: Date? + public var latestConnect: Date? +- public var uploadReadings: Bool = false ++ public var uploadReadings: Bool = true + + init() { + } +@@ -31,7 +31,7 @@ public struct G7CGMManagerState: RawRepresentable, Equatable { + } + self.latestReadingTimestamp = rawValue["latestReadingTimestamp"] as? Date + self.latestConnect = rawValue["latestConnect"] as? Date +- self.uploadReadings = rawValue["uploadReadings"] as? Bool ?? false ++ self.uploadReadings = rawValue["uploadReadings"] as? Bool ?? true + } + + public var rawValue: RawValue { +diff --git a/G7SensorKit/G7SensorKitUI/Views/G7SettingsViewModel.swift b/G7SensorKit/G7SensorKitUI/Views/G7SettingsViewModel.swift +index 8513d2b..e2e275c 100644 +--- a/G7SensorKit/G7SensorKitUI/Views/G7SettingsViewModel.swift ++++ b/G7SensorKit/G7SensorKitUI/Views/G7SettingsViewModel.swift +@@ -23,7 +23,7 @@ class G7SettingsViewModel: ObservableObject { + @Published private(set) var activatedAt: Date? + @Published private(set) var lastConnect: Date? + @Published private(set) var latestReadingTimestamp: Date? +- @Published var uploadReadings: Bool = false { ++ @Published var uploadReadings: Bool = true { + didSet { + cgmManager.uploadReadings = uploadReadings + } diff --git a/lnl_customization.html b/lnl_customization.html index 73c2b7b..89cf199 100644 --- a/lnl_customization.html +++ b/lnl_customization.html @@ -1,5 +1,6 @@ +
@@ -10,20 +11,24 @@ background-color: #f4f4f4; padding: 20px; } + h1 { color: #333; } + div { margin-bottom: 20px; } + label { display: block; - margin: 0px 0; + margin: 0px 0; padding: 6px; background-color: #fff; border-radius: 5px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); - } + } + button { display: block; margin-top: 20px; @@ -35,9 +40,11 @@ border-radius: 5px; cursor: pointer; } + button:hover { background-color: #0056b3; } + textarea { width: 100%; height: 500px; @@ -50,13 +57,14 @@ } +