Skip to content

seanjtaylor/basis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

basis

Basis data, analysis, and visualization.

Getting your data

  1. Find your data url by opening up the data activity tab on your Basis control panel.

Getting your URL

It's unique to each user and is the only means of authentication (oh noes! you can see mine). For convenience all my data is already downloaded and included in this repo. Tell me something I don't know about myself!

  1. Now run a quick bash script to download all the json:

$ for i in $(seq -w 1 30)}; do wget "https://app.mybasis.com/api/v1/chart/YOUR_CODE_HERE.json?summary=true&interval=60&units=ms&start_date=2013-12-$i&heartrate=true&steps=true&calories=true&gsr=true&skin_temp=true&bodystates=true" -O 2013-11-$i.json; done

  1. Now you've got all your data. Run the load_data.py script to make csv files (ehh this one could use some love).

$ python scripts/load_data.py

Visualizing your data

Lots of work left to do here, but you can look at scripts/sleep.r for how I'm plotting sleep:

source('scripts/sleep.r')

A plot of sleep.

About

Basis data, analysis, and visualization

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published