Giter Site home page Giter Site logo

rochaporto / carelink-python-client Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ondrej1024/carelink-python-client

0.0 2.0 0.0 58 KB

Experimental Medtronic CareLink Client in Python

License: GNU Affero General Public License v3.0

Python 100.00%

carelink-python-client's Introduction

Carelink Python Client

Experimental Medtronic CareLink Client in Python

Python library, which can be used for retrieving data from Medtronic CareLink of online CGM and insulin pump device data uploads (Guardian Connect, MiniMed 7xxG) inside and outside of US.

This is a port of the Java library CareLinkJavaClient

Status

This is a developer version. Works for me. Extensive testing of different use cases is needed. Please report back if it works also or you.

Supported devices

Features

  • Login to CareLink and provide access token for CareLink API calls
  • Some basic CareLink APIs: get user data, get user profile, get country settings, get last 24 hours, get recent data from CareLink Cloud
  • Wrapper method for getting data uploaded by Medtronic BLE devices of the last 24 hours
  • CareLink Client CLI

Limitations

  • CareLink MFA is not supported
  • Notification messages are in English

Requirements

  • CareLink account (with MFA NOT ENABLED)

    • Guardian Connect CGM outside US: patient or care partner account
    • Guardian Connect CGM inside US: not tested yet! (possibly a care partner account)
    • 7xxG pump outside US: care partner account (same as for Medtronic CareLink Connect app)
    • 7xxG pump inside US: care partner account (same as for Medtronic CareLink Connect app)
  • Runtime: Python3

  • External libraries used:

    • Python Requests

How to use

Clone this repository

git clone https://github.com/ondrej1024/carelink-python-client.git
cd carelink-python-client

Get data of last 24 hours using Python

import carelink_client

client = carelink_client.CareLinkClient("carelink_username", "carelink_password", "carelink_country_code")
if client.login():
    recentData = client.getRecentData()

Download last 24 hours using CLI

python carelink_client_cli.py -u carelink_username -p carelink_password -c carelink_country_code -d

Get CLI options

python carelink_client_cli.py -h

Credits

This project is based on other peoples work which I want to thank for their efforts.

  • Bence Szász for the original Java implementation
  • Ben West for providing valuable details on the Carelink API and workflow

Disclaimer

This project is intended for educational and informational purposes only. It relies on a series of fragile components and assumptions, any of which may break at any time. It is not FDA approved and should not be used to make medical decisions. It is neither affiliated with nor endorsed by Medtronic, and may violate their Terms of Service. Use of this code is without warranty or formal support of any kind.

carelink-python-client's People

Contributors

ondrej1024 avatar

Watchers

James Cloos avatar  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.