No commit activity in last 3 years
No release in over 3 years
script to import fitbit sleep data into graphite
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
>= 0
>= 0
 Project Readme

fitbit-to-graphite

Synopsis

Record sleep data from fitbit to graphite. That's it.

Installation

You can get the script from rubygems:

gem install fitbit-to-graphite

Setup

fitbit-to-graphite reads its config file at ~/.fitgem.yml which at least needs the following settings:

---
:oauth:
  :consumer_key: thekey
  :consumer_secret: thesecret

Fill in the key and secret from the app you created for it and on first run it should register the OAuth data.

Usage

% fitbit-to-graphite.rb --help
Usage: fitbit-to-graphite.rb [-hpnv]

Specific options:
    -h, --host=HOST                  The hostname or ip of the host graphite is running on
    -p, --port=PORT                  The port graphite is listening on
    -n, --namespace=NAMESPACE        The graphite metric path to store data in
    -d, --date=NAMESPACE             the date to get data for in the format YYYY-MM-DD

Common options:
        --help                       Show this message
    -v, --version                    Show version
        --debug                      run in debug mode
        --jawbone                    send jawbone compatible data

How to contribute

  1. Fork the repo
  2. Hack away
  3. Push the branch up to GitHub
  4. Send a pull request