The goal here is to create a notification light based on glucose readings from a CGM...a high-level indicator that will show different colors based on glucose levels at a glance.
Just a quick description of the data flow - there's a Dexcom G6 CGM to capture readings, and then Nightscout is used (via Nightscout bridge) to capture and display the Dexcom data.
At first I thought I would use a wifi led bulb - there are plenty on amazon that claim to have IFTTT support. Great! Nightscout also has IFTTT support. At the end of the day, I found the support for the led bulb to be lacking. There was no way to change the led color via IFTTT, only turn it on or off.
Plan B! Why not use a Raspberry Pi? It can control LEDs, and it can grab data from Nightscout.
I'm going to assume that you have Nightscout set up and working with your CGM. If not, I found these links very helpful:
I'll break this up into a few sections:
Just a quick description of the data flow - there's a Dexcom G6 CGM to capture readings, and then Nightscout is used (via Nightscout bridge) to capture and display the Dexcom data.
At first I thought I would use a wifi led bulb - there are plenty on amazon that claim to have IFTTT support. Great! Nightscout also has IFTTT support. At the end of the day, I found the support for the led bulb to be lacking. There was no way to change the led color via IFTTT, only turn it on or off.
Plan B! Why not use a Raspberry Pi? It can control LEDs, and it can grab data from Nightscout.
I'm going to assume that you have Nightscout set up and working with your CGM. If not, I found these links very helpful:
I'll break this up into a few sections:
- Part 1 - Hardware - Raspberry Pi Zero W and Pimoroni Blinkt!
- Part 2 - Pulling your data from Nightscout
- Part 3 - Lighting it up
Comments
Post a Comment