ARTICLE

Open Source Health With FitBit

by | Sat 30 Jul 2011

As some of you might remember, I have expressed concerns at times about the physical health of some folks in our community. Some of us are overweight, spend too much time in front of a computer, have less-than-stellar diets, get little exercise, and boast about drinking too much caffeine. While I am not a health nut, and I am not trying to turn everyone into a health nut, I sometimes worry about the physical health of folks in our different communities. I want people to contribute to Free Software, but would never want them to develop unhealthy habits in doing so.

I feel really fortunate in this regard in that my wife, Erica, *is* a health nut. Before I met her, I used to eat like crap, rarely exercised, and I didn’t really know a lot about health and nutrition. I didn’t know a lot because I *didn’t want to know a lot*. Some of you may be aware that Iam a fairly social animal, and I didn’t want to be eating salads and sipping on tonic water whenever I was socializing. I am happy to be healthy, but I didn’t want to live a miserable life in the pursuit of it.

Ever since I met Erica, she has taught me heaps about how to stay healthy. It turns out that you can eat tasty food, have a good time socially, and still be healthy by just knowing a little bit more about what your options are. This is one of the many reasons I am so glad I met Erica, she not only gives me a reason to stay in shape, but she has also explained how to do it.

As such, I keep an eye on what I eat during the week, and try to eat below 2000 calories a day, I try to work out at least three times a week (a combination of metal drumming and an elliptical trainer), and try to do ten minutes of ab workout each day. At the weekend I throw caution to the wind, eat what I like, and don’t worry about working out.

Having visibility and measurements is useful when doing this. Knowing how many calories are in different foods and weighing yourself is handy, but there is another really interesting way.

## The FitBit

While at OSCON this week, Erica and I got chatting to a friend about the [FitBit](https://www.fitbit.com/). The FitBit is simple; it is a tiny device that looks like a clip that you clip onto yourself during the day and when you sleep. The little thing measures a stack of things:

* how many steps you take each day and when.
* how far in total you have walked.
* how many calories you have burned.
* how long you have slept and how often you wake up, giving you a good idea of the quality of your sleep.

Our friend is an enthusiastic user, so we bought a few.

I have only been using it for a day or so now, but it is really interesting. The way it works is that there is a small base station that you plug into your USB port and the little FitBit clip regularly sends it’s data to the base station, which then uploads it to the FitBit website. The website has a stack of different metrics and data analysis tools and you can use it to track your calorie intake, exercise and other additional elements. It provides a complete overview of your health, and your FitBit clip automatically updates it with what you are doing.

## Supporting Linux

I think it is a neat idea. There are though a few wrinkles for Open Source fans such as ourselves. Unfortunately, there is no Linux client for FitBit to allow you to update the site from Linux. I did though find that a guy is working on [a tool called `libfitbit`](https://www.openyou.org/2011/05/26/libfitbit-development-update/) and he has some code [in GitHub](https://github.com/qdot/libfitbit).

He says about 90% of the tool is feature complete in terms of updating the site with your details, but he has been side-tracked with other work to finish it. He also says that the current `libfitbit` is written as more of a proof of concept in Python, and he would like to re-write it in C. This would then provide a means to get the data off the FitBit clip and feed it to applications.

This got me thinking. Firstly, I would love to see FitBit fully supported in Linux. I would love to see it packaged, and whenever the data is sent to the site, a little notification bubble lets you know it was successfully transmitted. But that is only the tip of the iceberg.

Going back to my previous points about worrying if members of out community are getting unhealthy, I think the FitBit could be an awesome motivational tool to help geeks get fit. What do we like to do as geeks? We like to know about numbers, and metrics, and details, and the FitBit can help us to hack our health.

I could see all kinds of potential here. People could write Free Software apps that are based on FitBit data (imagine all the potential graphing, and health programme management apps), we could have an Ubuntu/Fedora/GNOME/KDE health community in which we have competitions for who works out the most on a given week, we could hold charity walks (imagine hooking FitBit up to Kickstarter to generate revenue based on how far you walk), and people could work together to motivate each other to stay trim. Essentially, we could crowd-source the idea of getting healthy, and base it on automated data from the FitBit.

I just wanted to throw out some of these thoughts and see if anyone is interested. The first step would be a C implementation of `libfitbit`, and I have [reached out to current author to see if he is interested in making one](https://www.openyou.org/2011/05/26/libfitbit-development-update/#comment-268278838). Would anyone be interested in helping him? If that happens would anyone be willing to volunteer to package it for Debian/Ubuntu/Fedora?

An invitation-only accelerator that develops industry-leading community engagement and growth via personalized training, coaching, and accountability...all tailored to your company's needs.

Want to read some more?

Happy Holidays

Happy Holidays

Just a quick note to wish all of you a happy, restful, and peaceful holidays, however and whoever you spend it with. Take care, folks, and I look forward to seeing you in 2015!

The Impact of One Person

The Impact of One Person

I am 35 years old and *people* never cease to surprise me. My trip home from Los Angeles today was a good example of this. It was a tortuous affair that should have been a quick hop from LA to Oakland, popping on BArt, and then getting home for a cup of tea and an...

Feedback Requested: Great Examples of Community

Feedback Requested: Great Examples of Community

Folks, I need to ask for some help. Like many, I have some go-to examples of great communities. This includes Wikipedia, OpenStreetmap, Ubuntu, Debian, Linux, and others. Many of these are software related, many of them are Open Source. I would like to ask your...

Ubuntu Governance Reboot: Five Proposals

Ubuntu Governance Reboot: Five Proposals

Sorry, this is *long*, but hang in there. A little while back I wrote [a blog post](https://archivedblog.jonobacon.com/2014/11/14/ubuntu-governance-reboot/) that seemed to inspire some people and ruffle the feathers of some others. It was designed as a...

Ubuntu Governance: Reboot?

Ubuntu Governance: Reboot?

For many years Ubuntu has had a comprehensive governance structure. At the top of the tree are the Community Council (community policy) and the Technical Board (technical policy). Below those boards are sub-councils such as the IRC, Forum, and LoCo councils, and...

Dealing With Disrespect: The Video

Dealing With Disrespect: The Video

A while back I wrote and released a free e-book called [Dealing With Disrespect](https://www.dealingwithdisrespect.com/). It is a book that provides a short, simple to read, free guide for handling personalized, mean-spirited, disrespectful, and in some cases,...