Linking xDrip+ to Amazon Alexa

I managed to link my Dexcom to Amazon Alexa today via xDrip+ so I thought I would step through how it works so others can do the same. As usual, a summary is at the end in the tl;dr section.

Why Would You Do This?

I can think of a few reasons why you might want to set this up:

  • Anyone in my home can now ask Alexa what my blood glucose level (BGL) is, regardless of where I am.
  • If I have a Spot or Dot by my bed I can ask Alexa my BGL without having to move anything more than my mouth
  • If looking at screens is problematic, this provides an alternative way to know your levels

My Setup

As if often the case with diabetic hacks, there are a few links in the chain. Let us go through the applications and devices.

  • The Dexcom G5 (although any CGM/Flash Monitor will work which is compatible with xDrip+). The Dexcom G5 has a Bluetooth connection to my Android phone running:
  • xDrip+: An Android app which displays the Dexcom results and uploads them to the:
  • Dexcom Share Server: An online repository of your BGLs. This is accessed by:
  • SugarMate: An online report generation app, similar to Tidepool.org which has a Skill in:
  • Amazon Alexa: Invoke the SugarMate app and you have your BGL and when it was last checked

Dexcom G5

Not much to do here. Attach it to your arm.

My slightly hacked Dexcom G5

xDrip+

Install the app, go to the Settings and connect your Dexcom.

You will know if it is working because you will get a pretty graph of results when they come in.

Dexcom Share Server

To get the data from xDrip+ to the Dexcom Share Server we first need an account on the Dexcom site.

Once we have this we go to the xDrip+ Cloud Upload Settings, choose Dexcom Share Server Upload and give it the Dexcom account details.

As I am in Australia I am not using the US servers. If you are in the USA, your setting may be different. Also, as I am not using a Dexcom Receiver, I left the 10 Character Serial Number blank.

Amazon Alexa

I will work backwards from here (it just makes life a little easier). Firstly, enable the SugarMate skill through the Alexa app on your phone. This will give you the option of signing up for SugarMate and it will also give you an email address to add as a follower.

Once signed up and linked to Dexcom, go back to xDrip+ and add the email address as a Follower (the other name fields do not matter so make them something friendly for you).

That is it. With all that in place you can simply say “Alexa, ask Sugarmate for my latest reading” and it will tell you your reading and when it was last checked.

Using Routines

I was hoping I could use a Routine to modify the invocation command to something more ‘middle of the night’ friendly such as “Alexa, what is my BGL?” but at this stage it is not possible to invoke a Skill from a Routine.

tl;dr

Using xDrip+ with your preferred CGM/Flash Monitor, uploading to the Dexcon Share Servers, linking it to SugarMate and enabling the SugarMate Alexa skill, anyone in your household can ask Alexa what your blood glucose is.

This is useful in the middle of the night or if a loved one is at home and concerned. It is also useful if sight impairment is an issue.

Unfortunately I have found no way to simply the invocation phrase “Alexa, ask Sugarmate for my latest reading” but if I do I will add it to the article.

10 thoughts on “Linking xDrip+ to Amazon Alexa

  1. Tigs1962 January 15, 2020 / 10:14 am

    Now you can add a really simple Routine to Alexa and make it invoke the Sugarmate Skill.
    My routine, I say, “Alexa, What’s my Bloods”

    Like

    • leontribe January 16, 2020 / 1:07 am

      At the time of writing I could find no way to have a short request AND invoke a skill from a routine. I’ll have another look.

      Like

    • Angela Yates-Vrugt February 3, 2020 / 11:22 am

      I can confirm the Alexa routine 🙂 I say “Alexa, what is my sugar level”

      In routines at ‘alexa will’ klick ‘add action’ and then choose ‘skills’ and select Sugarmate there. The routine will start up Sugarmate and will tell you the latest reading etc. On a echo show it also shows the graph!

      Like

      • leontribe February 4, 2020 / 2:26 am

        Thanks Angela 🙂 After writing the above comment I found Amazon had added Skills to Routines, which is great. This article might also be of interest where I configure the Spot so I can access my BGLs using touch only.

        Hacking the Amazon Echo Spot for Blood Sugar

        Liked by 1 person

  2. Angela Yates-Vrugt February 5, 2020 / 5:00 am

    Nice, thank you for the new article, this one helped me a lot setting Alexa up with Xdrip and Sugarmate. I did had to go into nightscout etc as I have a Libre with a bubble and I wasn’t able to use the Dexcom server. But I got it all working 😀

    Like

    • Angela Yates-Vrugt February 5, 2020 / 5:05 am

      Just read the other blog, definitely going to try that at some point. Just need to get myself a spot but as I live in the Netherlands I need to wait for my trip to England to pick one up 😛

      Like

  3. gopippo September 12, 2020 / 5:29 pm

    Hi. I am trying to follow your instructions (I am using Fsl2 with miao miao and xdrip+). I have created dexcom account, sugarmate account, but when I try to add follower on xdrip+ using sugarmate email, I got the message “failed to invite follower”. What am I missing? Thx

    Like

    • leontribe September 13, 2020 / 3:45 pm

      From memory, I connected Sugarmate via the Dexcom server so I didn’t use this method. There is an excellent xDrip+ Facebook group which can likely help though.

      Like

Leave a comment