Giter VIP home page Giter VIP logo

controlx2's Introduction

ControlX2

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.

Bolus from phone Bolus delivery from phone
Bolus from watch Bolus delivery from watch

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:
PumpX2 Alpha for Android - December 2022
Demo video from watch:
PumpX2 Alpha for Wear OS - December 2022

Phone Screenshots

App home screen Bolus window Bolus correction Bolus delivery Bolus notification Bolus cancellation Bolus cancelled

Wear OS Screenshots

App home screen Selecting bolus units Selecting bolus carbs Delivering a bolus Delivering a bolus Delivering a bolus

Setup

Installing APK via GitHub Releases

This is the recommended installation option.

  1. On the right-hand side of the GitHub page for ControlX2, select "Releases"
  2. Under the most recent release, download the mobile-release.apk file for the phone application, and optional wear-release.apk file for the Wear OS application.
  3. Install the APK file on your device(s).

Installing APK via GitHub Actions

  1. Open this link to view the most recent GitHub Actions runs to the main branch.
  2. Select the most recent entry from the list.
  3. Download the mobile-release.apk file for the phone application, and optional wear-release.apk file for the Wear OS application.

image

4. Install the APK file on your device(s).

Building from source

Clone the repo, open in Android Studio, and build the module for:

  • mobile - Android phone application
  • wear - Android Wear OS application

Enable ADB debugging on your phone or watch and then select "Run" using the correct module: Screenshot of Android Studio

Building with local PumpX2

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.

controlx2's People

Contributors

jwoglom avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.