Skip to content

Setup Script Testing

Scott Leibrand edited this page Sep 20, 2016 · 27 revisions

Testers wanted!

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!

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

Clone this wiki locally