Git Product home page Git Product logo

fitdex's Introduction

FitDex - Display BG readings from Dexcom CGM on a FitBit device

A purpose of this tool is to display the newest Dexcom CGM blood glucose readings on a FitBit device. It's an ad-hoc solution developed to allow a user to be aware of its blood glucose values while the phone is away, but in Dexcom transmitter Bluetooth radius e.g. gym, CrossFit, marathon race etc.

FitDex Screen

FitDex utilizes text-message-over-email services and a Dexcom API. The tool will make a request to the Dexcom API to get the latest glucose value on every N seconds and then send a value as an SMS via text-message-over-email service which will be displayed on a FitBit device.

It is tested only on Fitbit Charge 2, but it should work on any Fitbit device which supports text notifications (Fitbit Blaze, Fitbit Alta, Fitbit Alta HR, Fitbit Charge 2, Fitbit Flex 2, Fitbit Surge) [src].

Configure

In order to be able to run this tool one has to:

  1. Have a Dexcom account
  2. Have an Email account
  3. Have a cell phone number from one the listed carriers [src]

To configure the tool, edit the config.ini file. Replace the username and password values in the DEXCOM section, your email details in the EMAIL section and substitute your 10-digit cell number for number for one of the carriers below (P.S. tested only with T-Mobile and Verizon gateways):

[DEXCOM] 
API_base_url = https://share1.dexcom.com/ShareWebServices/Services/
Username = **YOUR_DEXCOM_ACCOUNT_USERNAME**
Password = **YOUR_DEXCOM_ACCOUNT_PASSWORD**
ApplicationId = 13A907FB-AC7E-4F90-B4EC-2F2B8BE1C607
Notification_Frequency_Seconds = 300

[EMAIL]
SMS_Gateway = **YOUR_CELL_NUMBER**@**CHOSEN_EMAIL_GATEWAY** ; example: [email protected]
Email_Address = **YOUR_EMAIL** ; example: [email protected]
Email_Username = **YOUR_EMAIL_ACCOUNT_USERNAME**  ; example: user
Email_Password = **YOUR_EMAIL_ACCOUNT_PASSWORD**  ; example: password12345
SMTP_Server = **YOUR_SMTP_SERVER_ADDRESS**  ; example: 587
SMTP_Port = **YOUR_SMTP_SERVER_PORT**  ; example: smtp.gmail.com

Run

Open CMD, navigate to the directory where you extracted the FitDex and type:

py FitDex.py

Donate

Donations are welcome if you find this tool useful! Please use the wallet address below to donate:

BTC: 1JfszdofhyQkry6h7JSfbge3J12dUnJ8kP

fitdex's People

Contributors

geok avatar

Watchers

Tyrone Miles 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.