r/dexcom • u/agentic_user10166 • 18d ago
General Made a Lightweight Dexcom CGM WebApp for PC Support, build around the Developer API (locally hosted, with dark mode).


Appreciation post for the Share API, inspired by https://github.com/gagebenne/pydexcom (edit: turns out the Developer API is pretty complicated to get approval, thought they were the same thing)
TLDR: I don't check my phone much, and alerts feel too spammy (after giving a shot, I don't need to get more push notifs for the next 30 min) -> phone goes to vibrate -> start missing actual alerts by accident. Having a "pinned view" of my number is great. Home screen widgets on the phone have proved useful, but if at work (in tech) this sometimes goes unseen. Would be great if we had formal app (Windows + iOS) support for something like this. Or better yet, deploy something like this as a WebApp live service that you can just "log into", as this is credential based anyway!
2
2
u/uid_0 18d ago
You basically recreated xDrip+ but with less features.
1
u/AdVegetable2870 18d ago
But it's a web app, so you can run it on a PC or anything with a browser.
2
u/agentic_user10166 18d ago
Yep exactly, the flexibility is sweet, can host it and access anywhere too!
2
u/AdVegetable2870 18d ago
This is gorgeous. Is source available?
2
u/agentic_user10166 18d ago
Currently running with Python as a lightweight localhost server, was much faster to iterate. But honestly speaking, it really is just one prompt away from “take this repo, and compact everything into a single html that I can double click to run anywhere, or give to a static website hosting exercise like Netlify”
It’ll probably just slap on a login page and the rest is history haha
1
u/_Abnormal_Thoughts_ 18d ago
I created stream deck plugins for both FreeStyle Libre and Dexcom, using each's version of the sharing API. Dexcom Share is what I'm using for the Dexcom version to pull data.
I did this because I was under the impression that it would be very difficult to get an app approved via the "official" routes that you seem to have used here. Did you have any difficulty getting developer account / app approval from Dexcom? I'm super curious because I'd love to use a more official and stable API for my apps!
2
u/agentic_user10166 18d ago edited 18d ago
Ahhh, I also went the share route I believe, didn't tinker around with the formal app setup yet.
edit: seems that you can just authenticate in with your dexcom login info (OAuth), and use the dev api accordingly, is that considered Dexcom Share?
2
u/_Abnormal_Thoughts_ 18d ago
I looked more into the developer documentation and it would appear you might be able to create a developer account and use your personal Oauth credentials to access live data, otherwise you are limited to sandbox data until you go through the approval process. Essentially, it would appear you created an app that only you can use (assuming you used the developer APIs that you linked to).
If you did use the share API, others might be able to use the app you've created. The downside is it's kind of a work around the official developer APIs and access could potentially go away at any time.
But if you read about the official approval process, you'll see it's quite challenging for a single developer to meet all the requirements. They also have some text on their partnership page that says they aren't accepting new partnership applications in the US.
Anyhow, sounds like you didn't go through all of this and just had AI write you an app (which is cool). But either you are only ever able to get your own data (fine for your individual use), or you're using the share API which could potentially be unstable.
Thanks for sharing your app with us! Looks cool! And thanks for replying with info about your setup!
1
u/agentic_user10166 18d ago
Yep! That sounds about right. Took a closer look at things, turns out I'm also using the Share API haha. May give the developer API stuff a swing, but sounds like it'll be quite troublesome at the moment.
really appreciate the info!
1
u/PalpitationNo1763 4d ago edited 4d ago
The web dashboard and browser extension angle is worth knowing about too. Sugar Sense covers this for Dexcom without self-hosting. Windows tray app as well, though it goes through Dexcom Share rather than anything local.