# Technical setting up of an "open loop" DIY system based on Freestyle Libre

**URL:** <https://forum.fudiabetes.org/t/technical-setting-up-of-an-open-loop-diy-system-based-on-freestyle-libre/4234>\
**Category:** DIY\
**Tags:** freestyle-libre, nightscout\
**Created:** [June 15, 2018, 5:32pm UTC](https://forum.fudiabetes.org/t/technical-setting-up-of-an-open-loop-diy-system-based-on-freestyle-libre/4234 "2018-06-15T17:32:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PierreM](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.fudiabetes.org/pierrem/32/3764_2.png) [@PierreM](https://forum.fudiabetes.org/u/PierreM)\
**Post date:** [June 15, 2018, 5:32pm UTC](https://forum.fudiabetes.org/t/technical-setting-up-of-an-open-loop-diy-system-based-on-freestyle-libre/4234/1 "2018-06-15T17:32:45Z")

</div>

Hello all,

I’d like to share my recent experiences with setting up an “open loop” DIY system for my wife.  
This is for the moment solely from a technical point of view as we have not been using it really yet. I hope some of you will find it useful.  
It was quite a struggle but we made it finally. I’ll update this thread/topic when there is more to tell.

**HW used:**

- a 6 years old Lenovo S205 laptop running Win10
- a Samsung Galaxy A5 (2017) running stock version of AndroidOS 7
- a [Blucon Nightrider](https://www.ambrosiasys.com/) bought from [Sugarcubes](https://eng.sugarcubes.sellingo.pl/) (139EUR +25EUR shipping, received in a week, very nice shop)  
… and of course the Libre sensors

**SW used**

- For building AndroidAPS executable file (.apk): [Android Studio](https://developer.android.com/studio/)

**Helpful forums / needed registrations**

- GitHub - to get the source codes, wikis, installation guides
- Gitter - to get the support from community (in particular xDrip-plus and AndroidAPS conversations, very active and very helpful)

**Codes**

- [Nightscout xDrip+](https://github.com/jamorham/xDrip-plus#nightscout-xdrip)
- [Nightscout (CGM)](https://github.com/nightscout/cgm-remote-monitor)
- [AndroidAPS](https://github.com/MilosKozak/AndroidAPS)

**Step by step process that worked**

- Get the “Libre CGM” running on Phone

1. Download and install the xDrip+ application (you may need to tune your phone so it accepts “non official” apps). _This app will transform you phone into a CGM receiver/display_

2. Turn on the Bluecon and put it on the Libre sensor (we are taping it over so it holds). _This will make a Bluetooth transmitter for your BG values_

3. Setup xDrip+ so it connects to the Bluecon (follow Bluecon instructions)

- Get the Nightscout app running

1. Follow this link to [Set Up Nightscout Using Heroku](http://www.nightscout.info/wiki/welcome/set-up-nightscout-using-heroku) _This is basically creating a hosting environment in the cloud, then installing and running your Nightscout application_ MAKE SURE YOU NOTE DOWN ALL YOUR CREDENTIALS

2. In the xDrip+ settings, go to “Cloud upload” and enter your Nightscout credentials there

- Get the AndroidAPS running  
_This is kind of more geeky as the android app comes as source code, not an \*.apk file similar to an \*.exe file. So you need to compile it yourself_

1. Make sure you have a newly installed versions of [Android Studio](https://developer.android.com/studio/), open it BEWARE: if Android Studio ask to “upgrade graddle”, REFUSE to do so
2. Follow very carefully the steps of the wiki [Building (AndroidAPS) APK](https://github.com/MilosKozak/AndroidAPS/wiki/Building-APK)
3. Once all the build/compile… process is over, search from your file managers all \*.apk files
4. Load the apk file to you phone and install the app
5. There’s quite a bit of settings to be done to link AndroidAPS to xDrip and NightScout all together, you are very well guided though with the “Objective 1” - once you’re good with all the smileys…

# VICTORY the “technical set up is done”!

---

<div class="post-metadata">

**Author:** ![bewell](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.fudiabetes.org/bewell/32/3712_2.png) [@bewell](https://forum.fudiabetes.org/u/bewell)\
**Post date:** [August 2, 2018, 7:28pm UTC](https://forum.fudiabetes.org/t/technical-setting-up-of-an-open-loop-diy-system-based-on-freestyle-libre/4234/2 "2018-08-02T19:28:30Z")

</div>

Thanks for posting this. I’m helping my wife who is a T1. I’m considering open looping with Omnipod, Dexcom G5, xDrip+, Samsung S8, Sony Smartwatch 3, AndroidAPS. Not sure that I will need Nightscout as I anticipate AndriodAPS can two way communicate with xDrip+ directly when both are running on the Samsung S8. The watch is the primary collector and xDrip+ seems to get updates either over bluetooth or over wi-fi. Still new to this and we haven’t stabelized Omnipod basals yet. She has only been on Omnipod for 10 days. Currently working with diabetes educator and not sure when to bring up open looping.

---

<div class="post-metadata">

**Author:** ![Trying](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.fudiabetes.org/trying/32/4078_2.png) [@Trying](https://forum.fudiabetes.org/u/Trying)\
**Post date:** [August 2, 2018, 9:27pm UTC](https://forum.fudiabetes.org/t/technical-setting-up-of-an-open-loop-diy-system-based-on-freestyle-libre/4234/3 "2018-08-02T21:27:34Z")

</div>

@bewell I’m doing this with Omnipod, AAPS, xDrip+, G5 and SW3 as primary collector. I also use NightScout. It is very useful for followers as well as generating reports, and both xDrip+ and AAPS integrate with it. I also use NightScout Loader and Diasend to upload Omnipod data to NightScout / Mlab DB. I upload the Omnipod data to Diasend, then export the data on daily basis to a csv file. This file is then read by NightScout Loader and then synchronized to NightScout /Mlab. You don’t have to do this if you are diligent about entering your treatments in AAPS. I’m not so diligent so I like being able to upload my Omnipod data.
