« Converting Movable Type to Tumblr | Main | New gig at LivingSocial »

Ruby Fitbit API

Fitbit has been slow to release an official API, so I started work on a screen scraping version. It will become a nice gem interface to the real API when it is released. It is pretty limited at the moment, only able to pull the most basic current days info.

You can check it out here ruby-fitbit on github.

Example output

~/projects/ruby-fitbit(master) > ruby bin/ruby-fitbit my@email.com MYPASS
Calories Burned 834
Steps Taken 552
Milkes Walked .23
Activity Levels Durations:
Sedentary 11hrs 28min
Lightly 19min
Fairly 16min
Very 0min

done

I also connected a quick sinatra app on Heroku to it so that I could embed the data in my personal blog as a widget. I will clean that up and release the code for it soon. Here is the widget at the moment. I need to add good CSS that is customizable by the user. It would also be good to make it easy for others to host their own widgets opposed to just my own data.

Reblog this post [with Zemanta]

Comments (2)

Hi Dan,

Glad to see somebody created a Ruby version! I also created a Perl API last month. I've added you to my FitBit Hacks page which also tracks some other development efforts that are underway.

http://eric-blue.com/projects/fitbit/

Dan:

Awesome about adding me. I added some info about your project and the python project to my ruby project's readme. I am excited about the Fitbit hopefully the real API comes out soon.

Post a comment


Type the characters you see in the picture above.

Web 2.0 craziness

View Dan Mayer's profile on LinkedIn


I Power Seekler
I Power Seekler

www.flickr.com
This is a Flickr badge showing public photos and videos from mayer_dan. Make your own badge here.

Creative Commons License
This weblog is licensed under a Creative Commons License.