Python Plugin: Dexcom Share API

Python and python framework

Moderator: leecollings

Post Reply
User avatar
Luxtux
Posts: 31
Joined: Monday 14 August 2017 15:16
Target OS: Linux
Domoticz version: 2021.1 β
Location: Luxembourg
Contact:

Python Plugin: Dexcom Share API

Post by Luxtux »

My girlfriend is diabetic and I wanted a way to connect her Dexcom G6 to my Domoticz instance. Which would allow me to switch on the lights in the middle of the night if her glucose levels were too low. Dexcom does offer a devellopers API but all the data is a few hours behind, which isnt any good for what i needed it for. Dexcom has an app called follow that allows others to follow your current glucose levels. Luckily somebody else had already figured out how to connect to this and started a project caleld pydexcom. I basically just created the plugin.py scritpt for pydexcom.

i uploaded it all to github. Feel free to try it out and give me some feedback. This is my first experience with python, so i wouldnt be surprised if the script is full of errors. :D https://github.com/MSe-5-14/Domoticz-De ... /tree/main

Two devices are created, one showing the current glucose level and the other one show the trend.
Image

Image
User avatar
waltervl
Posts: 5149
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Python Plugin: Dexcom Share API

Post by waltervl »

Thank you for creating and sharing. I added it to the Wiki Plugin list.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest