Friday, September 23, 2011
If any of you use a BodyMedia FIT device (BodyBugg) and are interested in web development, BodyMedia released their web API not too long ago. You can sign up for access for free here: http://developer.bodymedia.com
After syncing my device with their service through downloaded software on my PC, I pull data down with PHP using the Pear module HTTP_OAuth for authentication, then store it in a mySQL database for later use.
I shared basic PHP for a lot of that in their developer forums here: http://developer.bodymedia.com
Having access to all of your numbers in one place makes updating (duplicating) your data here far less annoying, especially if you also use jQuery & Ajax to automate pushing the data through specific ASP pages/forms. I use my setup to automatically update cardio minutes & calories (total daily burn minus RMR), steps, amount of sleep, and certain team goals (like "get 30 minutes of exercise every day" based on how many minutes of activity I have for the day, etc). I will probably end up using this site a LOT more now that I don't have to copy all of that over by hand all the time.
Now I just have to hope Spark People doesn't change the way they handle form submission for certain things... or at least not often. :)
Next project: something similar for automatically setting up weekly food schedules (with tracking here) based on specific recipes/ingredients.