/fit-report

Personal fitness visualization

Primary LanguageCSSMIT LicenseMIT

Fit Report

Fit Report is a personal fitness visualization that uses the output from Reporter for iPhone to map your workout and nutrition activity to how you feel.

fit-report

worked out, ate well and mood are qualitative metrics which you should redefine as you improve. A 5k run might be the workout of a lifetime for one person and a warm up for someone more experienced. Over time, as you get fitter you'll naturally intensify your workouts and improve your nutritional standards.

Why

I think there's a place for something between the worlds of passive wearable tech and hyper-accurate detailed manual tracking.

How it works

Basically

Reporter app → dropbox sync → recurring shell script processes JSON and uploads to server → Fit Report webapp parses it and renders the visualization.

The long version

The data for the fit-report comes from Reporter for iPhone. I choose to use Reporter because it's the nicest, quickest way to answer simple questions on my phone and get JSON back (daily reports are exported to dropbox). The questions are set up like so:

reporter app

On my mac, I have report.sh set to run as a launch daemon every night (launchd guide).

report.sh requires jq. Run $ brew install jq

When run, report.sh combines the reporter JSON files into a single file and moves the upload to the /public dropbox folder where it can be retrieved remoted.

On the remote static server, parser.js then parses the processed Reporter JSON and uses Mustache js to render the fitness visualization.

🎆