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 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].
In order to be able to run this tool one has to:
- Have a Dexcom account
- Have an Email account
- 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):
- AT&T: [email protected]
- T-Mobile: [email protected])
- Verizon: [email protected] (text-only)
- Sprint: [email protected] or [email protected]
- Virgin Mobile: [email protected]
- Tracfone: [email protected]
- Metro PCS: [email protected]
- Boost Mobile: [email protected]
- Cricket: [email protected]
- Ptel: [email protected]
- Republic Wireless: [email protected]
- Google Fi (Project Fi): [email protected]
- Suncom: [email protected]
- Ting: [email protected]
- U.S. Cellular: [email protected]
- Consumer Cellular: [email protected]
- C-Spire: [email protected]
- Page Plus: [email protected]
[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
Open CMD, navigate to the directory where you extracted the FitDex and type:
py FitDex.py
Donations are welcome if you find this tool useful! Please use the wallet address below to donate:
BTC: 1JfszdofhyQkry6h7JSfbge3J12dUnJ8kP