Code Monkey home page Code Monkey logo

Comments (6)

jwoglom avatar jwoglom commented on June 10, 2024 1

@t1diotac Hot off the presses -- please take a look at the new PUMP_EVENTS feature!

It can detect the following types of pump events:

  • Site/Cartridge Change (occurs for both a site change and a cartridge change)
  • Empty Cartridge/Pump Shutdown (from my investigation, occurs either when the cartridge runs out of insulin OR you hard-shut off the pump)
  • User Suspended (occurs when you manually disable insulin delivery)
  • Exercise Mode
  • Sleep Mode
  • AutoBolus and CarbOnly events -- I'm not entirely sure what these do, but they exist as event types in tconnect

To try this out, update to the latest version of tconnectsync and enable PUMP_EVENTS using the --features flag. The feature options default to --features BASAL BOLUS IOB, so if you want to add pump events to what is already being synchronized you would run with --features BASAL BOLUS IOB PUMP_EVENTS.

from tconnectsync.

jwoglom avatar jwoglom commented on June 10, 2024

Great ideas. I've created a structure of "synchronization features" which can be enabled or disabled by the user, which should allow us to iterate on adding in new data which can be synced to Nightscout without impacting existing users.

Cannula/cartridge data should definitely be possible -- I am hoping to work on this soon. I don't think battery is, at least as far as I know. Battery stats is trending more in the land of features which the community would likely need to build its own Android app that communicates with the pump with in order to extract -- e.g., we have xDrip which is an open-source implementation of the Dexcom android app (and in fact predates it!), this would be an open-source implementation of the Tandem app.

from tconnectsync.

t1diotac avatar t1diotac commented on June 10, 2024

Very cool! I appreciate the work you've put into this, it has been very useful in the week or 2 that I've been using it so far!

from tconnectsync.

rehudson avatar rehudson commented on June 10, 2024

@jwoglom : Great work on this! I tried to use the PUMP_EVENTS feature but got an error:
tconnectsync: error: argument --features: invalid choice: 'PUMP_EVENTS' (choose from 'BASAL', 'BOLUS', 'IOB')

Is there something I need to do? I'm running version 0.5.

Thanks so much!

from tconnectsync.

jwoglom avatar jwoglom commented on June 10, 2024

@rehudson sounds like you just need to upgrade to the latest version which is 0.6

from tconnectsync.

t1diotac avatar t1diotac commented on June 10, 2024

This works like a champ for me in the latest version! Very much appreciated!

from tconnectsync.

Related Issues (20)

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.