This is a https://github.com/loopkit/loop plugin to connect https://github.com/JohanDegraeve/xdripswift to Loop
- uses xDrip4iOS as a CGM : readings are fetched from UserDefaults, where they are stored by xDrip4iOS.
- can use the CGM as heartbeat (optional) : if enabled, then it will make a connection to the CGM (in parallel to xDrip4iOS) just for the sake of keeping Loop alive. Can be used with Libre or Dexcom. In case of Libre, the reading will run 1 minute behind.
- If you haven't setup your CGM yet in xDrip4iOS :
- Force close Loop
- in xDrip4iOS make sure you have made a first connection to the CGM
- force close xDrip4iOS
- reopen Loop
- select xDrip4iOS as CGM and open the xDrip4iOS UI
- enable "use CGM as heartbeat"
- keep the app in the foreground and wait till the text under the UISwitch changes to "Did connect to CGM. You can now run both xDrip4iOS and Loop". Once you see this text, you can reopen xDrip4iOS
- If you haven't setup your CGM yet in xDrip4iOS :
- option to enable/disalbe "Loop should sync to remote service" : in case you let xDrip4iOS upload readings to NightScout, then you can disable this, otherwise all readings will be uploaded twice
- There's also an option in the xDrip4iOS UI to lock the screen, ie the keep Loop in the foreground
- Option to send issue report : this will send logging informatin related to the heartbeat mechanism only. It's send by default to [email protected]
Latest test done with loop dev branch, commit 6286f61a61a9794179f551f076c3b2b0ec127dac
Based on client written by Julian Groen : https://github.com/julian-groen/xdrip-client-swift
- This only works if both xDrip4iOS and Loop are built using the same App Group!
- Download a fresh copy of LoopWorkspace dev into a subfolder of your choice
cd to your preferred directory
git clone --branch=dev --recurse-submodules https://github.com/LoopKit/LoopWorkspace
cd LoopWorkspace
- Add xDripClient submodule
git submodule add -b master https://github.com/johandegraeve/xdrip-client-swift-1.git xdrip-client-swift
- Open Loop.xcworkspace
- Drag xDripClient.xcodeproj from the Finder (from the xDripClient submodule) into the xcode left menu while having the loop workspace open
- Select the "Loop (Workspace)" scheme and then "Edit scheme.."
- In the Build Dialog, make sure to add xDripClientPlugin as a build target, and place it just before "ShareClientPlugin"
5 In Xcode 13 this can be accessed from the top menu
Product -> Scheme -> Edit Scheme
- In xcode, go to Product->"Clean Build Folder"
- Make sure you build "Loop (Workspace)" rather than "Loop"
Loop not getting xDrip data?
- Wait a moment. On first launch the plugin will probably be empty, as it doesn't prompt xDrip to re-read.
- Make sure xDrip is receiving readings! (Did you open the correct copy of xDrip? You might now have two copies. In case you have, make sure only one copy receives readings from the transmitter.)
- Make sure Loop and xDrip are using the same App Group! Really!
- Make sure both Loop and xDrip are still running in the background - try killing recent apps, then killing and reopening Loop and xDrip. Make ure they have all the iOS permissions they need.