The FitBit is a small device, essentially a pedometer on steroids, that counts your steps and stairs climbed, and uses this information (along with your weight) to calculate your calories burned throughout the day. The goal of this is to show the user how active they are on that day, and to persuade them to become more active. FiBit also awards badges to the user depending on how many steps they took (5,000 steps, 10,000 steps, etc) to further motivate the user. You can pickup a fitbit here
I’ve been using my fitbit for some time now, and realized that the badges reminded me of something in Ubuntu — the Ubuntu Accomplishments! The only problem was that the FitBit API needs to be authenticated over OAuth. The answer to that became obvious when I happened to look at the System Settings in Ubuntu and found Online Accounts. After spending a weekend reading up on Online Accounts and how they work, I started hacking.
The result of this hacking, is the new FitBit account plugin! You can now authenticate to FitBit through Online Accounts, and use that plugin to check for your awarded badges, and will display them as Ubuntu Accomplishments. Matt Fischer did a phenomenal job writing the accomplishments, as well as the scripts to check for the badges over the FitBit API. After installing the fitbit accomplishments collection, you can see all of your badges in the Accomplishment Viewer, seen below.
To get these accomplishments, you need to authenticate FitBit first. To do this , open the Online Accounts from System Settings. You should see this:
Click on “Add account “, and select FitBit. This will bring up the FitBit authentication page, which will look like this:
Simply Authenticate with your FitBit email/password, and select “Authorize” . This will complete the process, and allow the Accomplishments system to get all of your fitbit badges!
To get the account plugin, and Fitbit Accomplishments simply run:
sudo add-apt-repository ppa:fitbit-accomplishment-maintainers/daily
sudo add-apt-repository ppa:ubuntu-accomplishments/releases
sudo apt-get update
sudo apt-get install account-plugin-fitbit ubuntu-fitbit-accomplishments
P.S. Be sure to join the Ubuntu Fitbit Group!