This Add-in uses the JMP to R connection to download your Fitbit data directly via the Fitbit API, and creates a JMP data table with either your inter- or intra-day data (intraday data includes measurements at 15-minute increments, rather than daily totals). Included columns are: time, caloriesBurned, caloriesIntake, steps, distance, floors, minutesVery (number of minutes fitbit determined you were "very active.")
Requirements:
Usage:
Example:
Here I will set the date range from Nov 1 2016 to Nov 30 2016, and select "Get Interday Data."
The following table is generated:
The "time" column uses standard date-time format, so if you wish to create variables for day of week, month, year, etc, you can use an Instant Formula by selecting the time column header in the data table > New Formula Column > Date Time > :
Intraday data includes time, calories burned, activity level (as classified by fitbit), steps, distance, floors, and active minutes with separate measurements every 15 minutes for the date range you select. For the month of November, the following table is generated (again, be advised this process takes a while for a large data range. For this month of data this took about 45 seconds). The following table was produced:
You'll notice there are some rows with no data -- those represent times when I wasn't wearing my fitbit and so it wasn't logging any activity (if you wear your fitbit during only waking hours this provides an easy way to extract data on when you are sleeping vs awake.
Here are just a few examples of fun things you can do with your Fitbit Data:
Average Steps and Distance by Day of Week:Actograms:
Overall:
By day of week
For the entire month:
There is, of course, much more you can do with your data, and if (like me) you log many other things in your life these data can be a rich source of predictors for (or responses of) other variables you collect.
Feel free to share any fun visualizations or analyses you come up with in the comments below. Have fun!
Julian
The Fitbit Data Downloader for JMP freeses my computer whenever I click on it. It loaded OK into my addins and I have R open on my computer. However, as soon as I click the Get Fitbit Data addin, the get the rotating ball.
Hi @Dennis,
Well that's no good at all! Thanks for commenting and let's try to figure this out together. Can you tell me a bit more about your setup? Specifically, what operating system are you using, what version of JMP, and what version of R? And just so I am sure what is happening, JMP crashes as soon as you select Get Fitbit Data from your add-ins menu, correct?
I was hoping you could help me. I am currently trying to utilize the add-in and R but I keep getting the error:If anyone could advise I would greatly appreciate it.
Hi @Kyschwab,
It looks like Fitbit just made some changes in how they deliver cookies for a session, which means the fitbitScraper package isn't able to return any data. I'll look into this issue to see if there is anything we can do from the JMP side, but I think it might need to be something Cory (who authored fitbitScraper) will need to address.
- Julian
Hello @julian,
Thank you for your response! If there is anything you need for me to do to help you with this process I would be happy to. I would enjoy analyzing my fitbit data and furthering my knowledge of JMP through this process.