Alexa, Ask Dex my glucose

Disclaimer

This is a DIY Developer hack not ready for the masses as a 1-click setup.

Prerequisites

  1. Dexcom G5
  2. Amazon Echo
  3. AWS Developer Account
  4. Mobile Device running Dexcom App

Setup

Source code GIT Repo

  1. Start Sharing from your mobile app
  2. Create a Lambda Function AWS Howto
    • Select blueprint : Select Blank Function
    • Configure triggers : Select Alexa Skills Kit -> Lambda
    • Configure function : Set name to getglucose and Runtime to Python 2.7. Copy the getGlucose.py from the GIT repo to your lambda function
    • Update the copied code and Add your username and password you use for Dexcom.com
payload ={"password": "YOUR_PASSWORD", "applicationId" : "d89443d2-327c-4a6f-89e5-496bbb0317db", "accountName": "YOUR_ACCOUNT_NAME"}
  • Set Lambda function Role to Create a New Role From Template and give it a name then choose Simple Microservice permissions.
  • Finish with create and Note the ARN in the upper right hand corner of your function landing page. You will need this to tie Alexa to your lambda funtion.
  1. Create a new Alexa Skill

    • Skill Information
      • Set your Invocation name to Dex, or customize!
    • Interaction Model
      • Copy Intent Schema from git repo
      • Copy Utterances from git repo (Change these to whatever you want!)
    • Configuration
      • Set your Endpoint ARN to your lambda function
      • Account Linking is ‘no’
    • Test
    • Publishing Information
      • Here you can set info, graphics, text that will show up in the Alexa Skill on your mobile.

      skill.PNG

aws-alexa.JPG

asw-alexa-interaction.JPG

aws-lambda-glucose.JPG