Giter VIP home page Giter VIP logo

alexa-seizuretracker's Introduction

Amazon Alexa Skill: Seizure Tracker

This repository is for development of an Amazon Alexa skill that can be used on Amazon Echo and Echo Dot devices to track epileptic seizures via SeizureTracker.com.

The Amazon Alexa Skill can be enabled at https://www.amazon.com/Seizure-Tracker/dp/B074HBVHRJ/ and requires a (free) SeizureTracker.com account!


How does this thing work?

Account linking

A users Alexa account/device must be linked to their SeizureTracker.com account in order for the skill to function at all.

Linking an Amazon Alexa account to a SeizureTracker.com account is done within login.php where OAuth is used.

Voice commands

When a voice command is made to the Seizure Tracker Alexa skill, Amazon POSTs JSON HTTPS requests to seizure.php - which includes the users "intent" as determined by Amazon.

Amazon determines a users intent using a custom JSON configuration defined for the skill by the skill developer. In this case, the JSON configuration for the intent model is defined per configuration.json.

If a voice command request is valid and for one of the three primary functions of the skill, then the contents of a request is forwarded from seizure.php to the handle_seizure PHP function within seizure.events.php.

Primary functions

There are three primary functions within seizure.events.php (which is called by seizure.php) that interact with the SeizureTracker.com API to do the following things via Alexa voice commands:

Alexa Intent PHP Function Purpose
CountSeizures count_seizures Count seizures that have occurred today
AddSeizure add_seizure Track a new seizure
EndSeizure end_seizure Mark a (previously tracked) seizure as having ended

Future Plans?

Including these capabilities could be useful:

  • Track whether seizure medication was taken
  • Track vagal nerve stimulator (VNS) usage

"Flash Briefing" ideas:

  • Medication reminder
  • Announce count of seizures for the prior day

alexa-seizuretracker's People

Contributors

ericoc avatar mossr2015 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

tubbz-alt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.