fitbitScraper

R package to scrape fitbit data

  • 所有者: corynissen/fitbitScraper
  • 平台:
  • 许可证: Other
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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))  

主要指标

概览
名称与所有者corynissen/fitbitScraper
主编程语言R
编程语言R (语言数: 1)
平台
许可证Other
所有者活动
创建于2015-01-22 05:09:53
推送于2017-07-23 18:15:34
最后一次提交2017-04-13 10:15:02
发布数4
最新版本名称0.1.8 (发布于 )
第一版名称0.1.5 (发布于 )
用户参与
星数118
关注者数21
派生数37
提交数173
已启用问题?
问题数14
打开的问题数6
拉请求数5
打开的拉请求数2
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?