Giter Club home page Giter Club logo

decoding-contour-next-link's Introduction

decoding-contour-next-link

Join the chat at https://gitter.im/pazaan/decoding-contour-next-link

Space to collaborate on decoding Contour Next Link comms protocols, and the piggy-backed pump comms

Getting Started

  • Make sure you have python and pip installed
  • Clone this project
  • If you're running macOS (El Capitan or later), you'll need to update setuptools like this first (due to System Integrity Protection):
$ sudo -H pip install --upgrade setuptools --user python
  • Install the dependencies:
$ sudo -H pip install cython
$ sudo -H pip install hidapi
$ sudo -H pip install requests astm PyCrypto crc16 python-dateutil
$ sudo -H pip install python-lzo
  • Plug in your Contour NextLink 2.4 USB stick

Now you can try the script by calling the module from the parent directory

$ python -m decoding-contour-next-link.read_minimed_next24
Active Insulin: 0.000U
Sensor BGL: 0 mg/dL (0.0 mmol/L) at Thu Jan  1 01:00:00 1970
BGL trend: 3 arrows down
Current basal rate: 0.600U
Temp basal rate: 0.000U
Temp basal percentage: 0%
Units remaining: 164.000U
Battery remaining: 50%
Getting Pump history info
 Pump Start: 2017-10-24 23:59:59.999972+02:00
 Pump End: 2017-10-26 22:13:21.999983+02:00
 Pump Size: 6144
Getting Pump history
# All Pump events:
(' Pump: ', BolusWizardEstimateEvent 3d 2017-10-24 19:58:44.999969+02:00 BG Input:0, Carbs:3.0, Carb ratio: 0.5, Food est.:1.5, Correction est.:0.0, Wizard est.: 1.5, User modif.: False, Final est.: 1.5, )

[...]

# End Pump events
Getting sensor history info
 Sensor Start: 2017-10-24 23:59:59.999975+02:00
 Sensor End: 2017-10-26 22:13:22.999987+02:00
 Sensor Size: 2048
Getting Sensor history
# All Sensor events:
(' Sensor', NGPHistoryEvent 8 2008-12-31 23:00:10.999966+01:00)
(' Sensor', NGPHistoryEvent 7 2017-08-03 17:19:22.999980+02:00)

[...]

# End Sensor events

Known Issues

  • Assumed pump time was in UTC, but this doesn't ring true for non DST times (in Melbourne, anyway)

decoding-contour-next-link's People

Contributors

paulokow avatar pazaan avatar wright-david avatar gniezen avatar sdshlanta avatar gitter-badger avatar insulinjunkiede avatar

Stargazers

 avatar Keaton Burleson avatar

Watchers

 avatar

decoding-contour-next-link's Issues

To do - Branch CNL-RPi0-AlarmClock - fix Logging

Logging works OK with level=logging.DEBUG, but i want to change it to level=logging.ERROR to store less. But for some reason when I do this, the program runs OK, but the CNL meter sporadically crashes.

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.