Giter Site home page Giter Site logo

personal-health-analytics's Introduction

Timeline analysis of your social media use and fitness data

This repo is a Python script that gets your LinkedIn and Fitbit data into the same schema. This should be flexible enough to incorporate more sources going forward.

The schema is stored in a namedtuple called Event

  • source -- either Fitbit or LinkedIn
  • metric_name -- things like comments, shares, hrv, hr, etc
  • timestamp -- the timestamp when this metric occured
  • metric_value -- the double value of the metric
  • content -- the content of the comment or share for LinkedIn, NULL for Fitbit

Request your Fitbit data from https://www.fitbit.com/settings/data/export After you get your export, dump it into data/fitbit and unzip it. (this usually takes 30ish minutes)

Request your LinkedIn data from https://www.linkedin.com/psettings/member-data (this can take up to TWO DAYS!) After you get your export, unzip an dump it into data/linkedin in the root of this repo

After you have both exports in the right place,

Run pip install -r requirements.txt to install Pandas if you don't have pandas installed

update your YOUR_FITBIT_NAME to whatever it shows in your path. Mine was ZacharyWilson

Once that is updated. Run the script with python runner.py

This will create three datasets output/all_events_on_timeline.csv output/daily_aggregates.csv output/pivoted.csv

You can use the pivoted.csv to create fancy charts like this in Tableau. My data is in the repo at zachs_pivoted_data.csv this

personal-health-analytics's People

Contributors

eczachly avatar

Stargazers

Farahana Suhaimi avatar Bassam Mejlaoui avatar Kunal Tiwary avatar Joshua Korn avatar Mike Houngbadji avatar Adam Romriell avatar Tuukka Järvinen avatar Priyanka O avatar Andrew Goss avatar Nazli M. Alagoz avatar KOTA avatar Srikar Muppidi avatar  avatar  avatar Habtamu D. Woldeyohannes avatar Brad Yarbro avatar Napatsakorn Pianchana avatar Hope712 avatar Mateusz Sochanowski avatar Charalampos (Babis) Moustafelos avatar Asif avatar Prateek Kumar Kumbar avatar Anil B Murthy avatar Bruno M Servilha avatar Yashraj Pathak avatar  avatar Ogunniran Oluwasijibomi avatar Prateek Ralhan avatar

Watchers

 avatar  avatar

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.