From 29f46281b8a8bb076704ae3c6c64144064a2a862 Mon Sep 17 00:00:00 2001 From: Nathan Racklyeft Date: Wed, 3 Aug 2016 23:29:06 -0700 Subject: [PATCH] reservoir change analytics, readme update --- Loop/Managers/AnalyticsManager.swift | 4 ++++ Loop/Managers/DeviceDataManager.swift | 4 ++++ README.md | 19 ++++++++++--------- 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/Loop/Managers/AnalyticsManager.swift b/Loop/Managers/AnalyticsManager.swift index cc6e577837..da08118ccb 100644 --- a/Loop/Managers/AnalyticsManager.swift +++ b/Loop/Managers/AnalyticsManager.swift @@ -75,6 +75,10 @@ class AnalyticsManager { logEvent("Pump battery replacement") } + func reservoirWasRewound() { + logEvent("Pump reservoir rewind") + } + func didChangeBasalRateSchedule() { logEvent("Basal rate change") } diff --git a/Loop/Managers/DeviceDataManager.swift b/Loop/Managers/DeviceDataManager.swift index bd38d7a621..3749ac6be3 100644 --- a/Loop/Managers/DeviceDataManager.swift +++ b/Loop/Managers/DeviceDataManager.swift @@ -281,6 +281,10 @@ class DeviceDataManager: CarbStoreDelegate, TransmitterDelegate, ReceiverDelegat NotificationManager.sendPumpReservoirLowNotificationForAmount(newVolume, andTimeRemaining: timeLeft) } } + + if newVolume > previousVolume + 1 { + AnalyticsManager.sharedManager.reservoirWasRewound() + } } } } diff --git a/README.md b/README.md index 06a071b369..ca65efec60 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Please understand that this project: - Insulin Pump + Insulin Pump MM 522/722 @@ -43,27 +43,28 @@ Please understand that this project: CGM Dexcom G4 ✅1 2 - ✅1 + ✅1 3 + ✅1 3 Dexcom G5 - ✅2 3 + ✅2 + ✅3 ✅3 MM CGM ❌4 - ✅ - ✅5 + ✅3 + ✅3
1. Offline access to glucose requires a Receiver with Share and the [Share2 app](https://itunes.apple.com/us/app/dexcom-share2/id834775275?mt=8) to be running on the same device. Internet-dependent access via Share servers is also supported.
2. Pump must have a remote ID added in the [Remote Options](https://www.medtronicdiabetes.com/sites/default/files/library/download-library/workbooks/x22_menu_map.pdf) menu. -
3. Early firmware only available on select models is required for using Closed Loop and Bolus features. +
3. Early firmware (US <= 2.4A, AU/EUR <= 2.6A) is required for using Closed Loop and Bolus features.
4. It's not impossible, but comms-heavy and there's some work to be done. File an issue if you're someone who's up for the challenge and can test this hardware configuration. -
5. Confirmed working with AU MM554 firmware 2.6A - unsuccessful reports from some, need to check individual pumps. ### RileyLink @@ -94,9 +95,9 @@ Loop optionally supports select third-party remote services, which are configure | Service | Description | ---------------------- | ------------- | Dexcom Share | Downloads glucose data if a local G5 Transmitter or G4 Receiver with Share is not available. -| Nightscout | Uploads treatments and other pump data. Note you will need to set "Nightscout history uploading" to "On" in Settings for treatments to be fetched from your pump and uploaded to Nightscout. +| Nightscout | Uploads treatments and other pump data. Note that you will need to set "Nightscout history uploading" to "On" in Settings for treatments to be fetched from your pump and uploaded to Nightscout. | mLab | Uploads diagnostic data about each loop run, as well as app errors. At this time, it is strongly recommended that you configure this service in case retrospective analysis is needed. -| Amplitude | Tracks private, single-user behavioral and system analytics +| Amplitude | Tracks private, single-user behavioral and system analytics (no health data is sent) # Making it Your Own