LoopKit / Loop

An automated insulin delivery app for iOS, built on LoopKit
https://loopdocs.org
Other
1.48k stars 1.29k forks source link

Feature: Using Nightscout as CGM data source #1134

Closed Andrei0105 closed 10 months ago

Andrei0105 commented 4 years ago

Some CGMs don't support connecting to Loop and the easiest way to do this is to upload their data to Nightscout and retrieve it from there. This was already discussed in https://github.com/LoopKit/Loop/issues/84, but this does not consider CGMs that are not compatible with xDrip+. It also seems that this was possible in Loop v1.4.0 (https://github.com/LoopKit/Loop/pull/535, https://github.com/LoopKit/Loop/pull/492) but it's not possible currently.

I created a pull request (https://github.com/LoopKit/dexcom-share-client-swift/pull/9) in https://github.com/LoopKit/dexcom-share-client-swift that allows the user to use his own Dexcom share server. This can be used with https://github.com/dabear/NightscoutShareServer to retrieve data from Nightscout.

How to use this feature as of now:

What is this useful for: I have the Medtronic Guardian Connect standalone CGM which connects directly to my iPhone and data is retrieved from the Carelink portal and uploaded to Nightscout. The CGM can't be connected in any other way so this is the only solution to use it with Loop. I'm assuming there are more systems that can be used this way.