fitbitScraper

R package to scrape fitbit data

  • Owner: corynissen/fitbitScraper
  • Platform:
  • License:: Other
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

fitbitScraper 0.1.8

New changes:

  • Added minutesSedentary data to 'get_daily_data'
  • fixed bug in the column names in ‘get_daily_data’ for getTimeInHeartRateZonesPerDay
  • if login returns a cookie that is character(0), throw error

This package scrapes data from fitbit.com
It only works if you use email / password to login. Not sure about facebook or google login.

Usage:

install.packages("fitbitScraper")
library("fitbitScraper")

cookie <- login(email="corynissen@gmail.com", password="mypassword")  
# 15_min_data "what" options: "steps", "distance", "floors", "active-minutes", "calories-burned"   
df <- get_intraday_data(cookie, what="steps", date="2015-01-21")  
library("ggplot2")  
ggplot(df) + geom_bar(aes(x=time, y=data, fill=data), stat="identity") + 
             xlab("") +ylab("steps") + 
             theme(axis.ticks.x=element_blank(), 
                   panel.grid.major.x = element_blank(), 
                   panel.grid.minor.x = element_blank(), 
                   panel.grid.minor.y = element_blank(), 
                   panel.background=element_blank(), 
                   panel.grid.major.y=element_line(colour="gray", size=.1), 
                   legend.position="none") 

# daily_data "what" options: "steps", "distance", "floors", "minutesVery", "caloriesBurnedVsIntake"   
df <- get_daily_data(cookie, what="steps", start_date="2015-01-13", end_date="2015-01-20")  
ggplot(df) + geom_point(aes(x=time, y=data))  

Main metrics

Overview
Name With Ownercorynissen/fitbitScraper
Primary LanguageR
Program languageR (Language Count: 1)
Platform
License:Other
所有者活动
Created At2015-01-22 05:09:53
Pushed At2017-07-23 18:15:34
Last Commit At2017-04-13 10:15:02
Release Count4
Last Release Name0.1.8 (Posted on )
First Release Name0.1.5 (Posted on )
用户参与
Stargazers Count118
Watchers Count21
Fork Count37
Commits Count173
Has Issues Enabled
Issues Count14
Issue Open Count6
Pull Requests Count5
Pull Requests Open Count2
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private