https://github.com/mrtazz/fitbit-to-graphite
record fitbit sleep data into graphite
https://github.com/mrtazz/fitbit-to-graphite
Last synced: 11 months ago
JSON representation
record fitbit sleep data into graphite
- Host: GitHub
- URL: https://github.com/mrtazz/fitbit-to-graphite
- Owner: mrtazz
- License: mit
- Created: 2013-10-11T19:04:31.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-04-15T16:38:13.000Z (about 12 years ago)
- Last Synced: 2025-06-20T15:19:32.215Z (12 months ago)
- Language: Ruby
- Size: 185 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this 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