Eric-Arellano / heart-rate-life-alert

Hackathon submission that uses HealthKit & Twilio to notify when heart rate reaches critical condition.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Heart Rate Life Alert

Project for HackArizona 2017.

What it does

Interfaces with Apple Watch to continually check heart rate for critical emergency condition (like heart attack), and upon trigger sends text message with current location to trusted contact.

How to run

  1. in server/ directory, pip install -r requirements.txt
  2. export API keys in bash
    1. export TWILIO_ACCOUNT_SID="example"
    2. export TWILIO_AUTH_TOKEN="example"
    3. export GOOGLE_KEY="example"
  3. connect server and iPhone to same WiFi network/hotspot
  4. connect iPhone with Apple Watch to laptop with XCode
  5. build iOS app through XCode
  6. in server/ directory, launch server by running app.py

What I learned

  • Working with stack of multiple languages. Used both Swift and Python
  • JSON and HTTP requests
  • Flask practice
  • Basics of Swift and Healthkit

About

Hackathon submission that uses HealthKit & Twilio to notify when heart rate reaches critical condition.


Languages

Language:Swift 81.8%Language:Python 17.8%Language:Shell 0.4%