-
Notifications
You must be signed in to change notification settings - Fork 396
Setup Script Testing
Testers wanted!
We've created an oref0-setup.sh script that can help set up a complete working loop configuration from scratch in just a few minutes. This is in pursuit of our community goal to simplify the technical aspects of setting up a DIY closed loop - while still emphasizing that this is a DIY project that you have personal responsibility for. We also want to encourage you to spend more time and energy exploring whether the algorithm you choose to use is doing what you want it to do and that it aligns with how you might manually choose to take action.
Compatible with: Raspberry Pi or Edison Ubilinux
Note: Currently pulls BG (mg/dL or mmol/L) from a Dexcom G4 (or G5) over USB and/or from Nightscout. If you have Enlite already uploading to NS, you can pull BG from NS. If you run into any issues, or want to do anything that's not yet supported, please make notes about what doesn't work, fix the issues you can, and then share your changes so we can incorporate them into the script!
Update: Medtronic (Enlite) CGM support is now ready for testing: https://github.com/openaps/oref0/pull/219
You can run the following without affecting your existing loop setup: it will just create a new loop directory, and then you can either run that in cron or manually. The idea behind this (oref0-setup.sh) is that it will be an easy way to set up a fully working max_iob=0 loop, so you can spend your time testing whether it would do the right thing, rather than troubleshooting linux stuff and trying to get report and alias names correct.
Step 0: Make sure you have openaps installed per http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-0/openaps.html - if you're not sure, just run:
curl -s https://raw.githubusercontent.com/openaps/docs/master/scripts/quick-packages.sh | bash -
Step 1: Pull/clone the latest oref0 dev by running:
mkdir -p ~/src; cd ~/src && git clone -b dev git://github.com/openaps/oref0.git || (cd oref0 && git checkout dev && git pull)
Step 2:
cd && ~/src/oref0/bin/oref0-setup.sh
to run the script interactively, or get usage guidelines for providing inputs as command line arguments.
Step 3: When you decide to enable the new loop in cron, follow the log file (and watch Nightscout) to make sure that it is working properly:
tail -F /var/log/openaps/pump-loop.log
-- Feedback on the setup script? Questions? Tag @scottleibrand @danamlewis in Gitter