My New Php Fitbit Library is Complete
ast month I announced I was working on a write of my Drupal/Fitbit module to allow it to run independently of the Drupal framework. What I wanted was a application that would allow me to do everything I was doing before even in a static HTML site – In just over a month and more than 180 commits that’s what I’ve achieved.
My new application is completely separate from the HTML site, meaning it can have its own database and run its own analysis on historical data held there (since Fitbit has an API limit making direct call every time you want to know many any steps you took last week is inefficient, and if the site got heavy load could lead to no getting anything out of the API for an hour or so).
You can see the full API in action on my health section but it supports seven main section
- General stats for the day
- Body Weight and % Fat, with changes over time
- Life time achievements and recorded activities
- Personal Goals, and there evolution
- A food diary, including water drank
- Record of sleep quality
- Status of my Fitbit hardware
As before the source code will be released and an OpenSource project, but before I do I still have to write an install script and some form of admin UI because at present to get the code up and running you need to spent more time in the MySQL database than is healthy.
If you really can’t wait though drop me a line in the comments section bellow or over the feedback form and I can sort our some early access for you