Skip to content

edrabbit/fitbitsplunk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fitbitsplunk

Get your Fitbit data into Splunk.

Will gather data from your Fitbit account and log it as such:

2013-08-19T23:59:59.999999, encodedId=2223TS, calories=1959, steps=3579, distance=2.73646, minutesSedentary=1331, minutesLightlyActive=49, minutesFairlyActive=57, minutesVeryActive=3, activityCalories=424

This is still very much a work in progress. Pardon the cruft. The "intraday" branch is attempts at doing minute resolution but requires access to the Fitbit Partner API, which is available upon request.

If this is your first time using it:

  1. Register an app at https://dev.fitbit.com/apps/new

  2. Retrieve the consumer key and the consumer secret

  3. Run the following to authorize your account: python fitbitsplunk.py --get_user_keys --consumer_key YOUR_CONSUMER_KEY --consumer_secret YOUR_CONSUMER_SECRET

  4. Follow the instructions

  5. Save your user_key and user_secret

  6. Run the following to fetch all data: python fitbitsplunk.py --consumer_key YOUR_CONSUMER_KEY --consumer_secret YOUR_CONSUMER_SECRET --user_key YOUR_USER_KEY --user_secret YOUR_USER_SECRET --output PATH_TO_OUTPUT_FILE

Requirements

Uses python-fitbit library https://github.com/orcasgit/python-fitbit http://pypi.python.org/pypi/fitbit/0.0.2

Quick pips:

pip install fitbit
pip install python-dateutil
pip install pytz
pip install tailer

About

Get your Fitbit intraday data into Splunk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages