Android app for phones and Wear OS watches which controls a Tandem t:slim X2 pump with PumpX2.
Warning
This application is for EXPERIMENTAL USE ONLY and can be used to MODIFY ACTIVE INSULIN DELIVERY ON YOUR INSULIN PUMP.
There is NO WARRANTY IMPLIED OR EXPRESSED DUE TO USE OF THIS SOFTWARE.
YOU ASSUME ALL RISK FOR ANY MALFUNCTIONS, BUGS, OR INSULIN DELIVERY ACTIONS.
It is NOT AFFILIATED WITH OR SUPPORTED by Tandem, Dexcom, or any other manufacturer.
It has not been officially approved for use and is provided as a RESEARCH TOOL ONLY.
Supported features:
- Viewing pump status information (IOB, cartridge amount, battery, basal rate)
- Viewing connected CGM information (current reading, arrow trend, sensor and transmitter status)
- Delivering a bolus (with units, carbs, and BG amounts) from wearable
- Delivering a bolus (with units, carbs, and BG amounts) from phone
- Accepting/rejecting insulin corrections
- Bolus calculator (to compute units based on entered carbs and BG)
- Bolus cancellation
Work in progress features:
- Watch face complications
- App background service stability
- Mobile UI
Planned features:
- Watch tile
- Show CGM history graph
- Send pump alerts/alarms as notifications
- Upload data to Nightscout
Demo video from phone:
|
Demo video from watch:
|
This is the recommended installation option.
- On the right-hand side of the GitHub page for ControlX2, select "Releases"
- Under the most recent release, download the
mobile-release.apk
file for the phone application, and optionalwear-release.apk
file for the Wear OS application. - Install the APK file on your device(s).
- Open this link to view the most recent GitHub Actions runs to the
main
branch. - Select the most recent entry from the list.
- Download the
mobile-release.apk
file for the phone application, and optionalwear-release.apk
file for the Wear OS application.
Clone the repo, open in Android Studio, and build the module for:
mobile
- Android phone applicationwear
- Android Wear OS application
Enable ADB debugging on your phone or watch and then select "Run" using the correct module:
Clone the PumpX2 repository and publish it to the local Maven repository. You can do this with:
$ git clone https://github.com/jwoglom/pumpx2
$ cd pumpx2
$ ./gradlew build
$ ./gradlew publishToMavenLocal
The PumpX2 library files will be published to $HOME/.m2/repository/com/jwoglom/pumpx2/
.
Then, set the use_local_pumpx2
Gradle property true
in either your command-line execution with ./gradlew build -Duse_local_pumpx2=true
,
or edit your local.properties
file for it to be reflected in Android Studio.
If the PumpX2 libraries are rebuilt, either bump the version number in both PumpX2 and ControlX2's gradle
configurations or run ./gradlew build --refresh-dependencies
in ControlX2. Otherwise, if the version
number was not bumped, rebuilding ControlX2 may still use a cached version of the old code from that version.