Quantify Thyself, then Go Forth & 
Conquer with a Personal Life API 
Elmer Thomas 
Hacker in Residence 
@thinkingserious
If you had access to all the data the NSA has collected 
about you via API, what would you build?
Our goal is to 
liberate, normalize, analyze and execute 
on YOUR data
The Personal API gives you 
a uniform interface 
to YOUR data
Determine what data to quantify 
Choose how we will quantify 
Build the API 
Innovate on top of the API with apps
Step 1 
Determine what data to quantify
Define the areas of your life you want to improve
For each area, define S.M.A.R.T. goals
Step 2 
Choose how we will quantify the data we need
Use our S.M.A.R.T. goal to identify the data
How do we access and store the data?
Step 3 
Build the API
/v1.0/health/goal 
/v1.0/health/weight 
/v1.0/health/calories 
/v1.0/health/sleep 
/v1.0/health/stress
Create a prototype using APIary.io
Build the API using Python/Flask
What will you do with the data? 
Apps!
Determined what data to quantify 
Chose how we will quantify 
Built the API 
Innovated on top of the API with apps
“If you can not measure it, you can not improve it” 
- Lord Kelvin
@thinkingserious 
aka Lord Elmer
Let’s go further 
bit.ly/apithyself
Personal Life API
Personal Life API
Personal Life API
Personal Life API
Personal Life API
Personal Life API
Personal Life API
Upcoming SlideShare
Loading in …5
×

Personal Life API

5,260 views

Published on

Learn how to expose all your quantified self data via a simple Life API. Use that data for tasks ranging from making real-time decisions to long term planning.

The presentation/workshop is composed of the following three phases.

Phase 1: Use techniques from Personal Productivity experts to identify what data is important to quantify.

Phase 2: Create a template for helping us determine what tools, services and devices will automate (mostly) our data collection.

Phase 3: Combine and expose our data behind a Life API. We will design the API using APIary.io and implement it using Python/Flask. At this point we will explore how we can use this API and put our data to work.

To focus and make sure you all walk away with a tangible result within our allotted time, we will limit our scope to the area of health.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
5,260
On SlideShare
0
From Embeds
0
Number of Embeds
3,503
Actions
Shares
0
Downloads
4
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • This talk was delivered at API World (see http://www.apiworld.co) on September 16th, 2014.
  • Example data:
    * Location
    * Voice
    * Text data
  • We will limit the focus of this talk to health, in particular weight loss
  • Examples:
    * Health (mind, body)
    * Career (and associated skills)
    * Relationships (family, friends)

    In this talk, we focus on Health:body
  • Specific
    Measurable
    Achievable
    Relevant
    Time Bound
  • Losing Weight (Health) is our SMART goal

    Specific: weigh 180lbs by December 31
    Measurable: weight scale
    Achievable: 2 lbs a week is physically possible via lower calorie intake and burning more calories over time
    Relevant: improves most areas of my life that I want to improve (e.g. more energy for family time)
    Time Bound: December 31
  • Example data needed to support a weight loss goal:
    * Weight
    * Calorie consumption
    * Calories burned
    * Sleep
    * Stress
  • Weight measurement tools:
    * WiThings Scale
    * Scale at the Gym
    * “Innovative Scale”
  • Calorie consumption measurement tools:
    * Food labels
    * Food scale
    * Calorie counting software (e.g. LoseIt, MyFitness Pal)
    * Calorie counting websites
    * http://www.webmd.com/diet/healthtool-food-calorie-counter
    * https://www.supertracker.usda.gov/default.aspx
    * APIs:
    * http://platform.fatsecret.com/api
    * http://dev.fitbit.com
    * http://www.myfitnesspal.com/api
  • Calorie measurement tools:
    * Exercise Tracking Tools
    * Fitbit
    * iWatch
    * Software
    * e.g. Moves - https://dev.moves-app.com
    * e.g. Moves - Runkeeper - http://developer.runkeeper.com/healthgraph/overview
  • Sleep measurements:
    * Sleep Cycle
    * Fitbit
  • Stress measurements:
    * Melon
    * Custom form that asks “How are you feeling?” periodically through the day
  • Access can be manual, automated or via an API
    Aggregate and store your data
  • Define the dataset roughly using a mind map
    Rapid, collaborative feedback across departments
  • Convert to endpoints
    We’ll start with support for GET, PUT and PATCH
    We will implement the goal, weight and calories endpoints for this talk
  • Live demo: http://docs.apithyself.apiary.io
  • Live demo: https://github.com/thinkingserious/apithyself
  • Example apps:
    * Reminders (data entry, staying on course)
    * Easier data entry interfaces
    * Reporting
    * Collaboration, data sharing
  • AKA William Thompson, a physicist who theorized a new temperature scale including absolute zero
  • Find out more about the speaker here: http://www.thinkingserious.com
  • G+ community to continue the conversation: http://bit.ly/apithyself
  • Personal Life API

    1. 1. Quantify Thyself, then Go Forth & Conquer with a Personal Life API Elmer Thomas Hacker in Residence @thinkingserious
    2. 2. If you had access to all the data the NSA has collected about you via API, what would you build?
    3. 3. Our goal is to liberate, normalize, analyze and execute on YOUR data
    4. 4. The Personal API gives you a uniform interface to YOUR data
    5. 5. Determine what data to quantify Choose how we will quantify Build the API Innovate on top of the API with apps
    6. 6. Step 1 Determine what data to quantify
    7. 7. Define the areas of your life you want to improve
    8. 8. For each area, define S.M.A.R.T. goals
    9. 9. Step 2 Choose how we will quantify the data we need
    10. 10. Use our S.M.A.R.T. goal to identify the data
    11. 11. How do we access and store the data?
    12. 12. Step 3 Build the API
    13. 13. /v1.0/health/goal /v1.0/health/weight /v1.0/health/calories /v1.0/health/sleep /v1.0/health/stress
    14. 14. Create a prototype using APIary.io
    15. 15. Build the API using Python/Flask
    16. 16. What will you do with the data? Apps!
    17. 17. Determined what data to quantify Chose how we will quantify Built the API Innovated on top of the API with apps
    18. 18. “If you can not measure it, you can not improve it” - Lord Kelvin
    19. 19. @thinkingserious aka Lord Elmer
    20. 20. Let’s go further bit.ly/apithyself

    ×