Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 523 Bytes

File metadata and controls

26 lines (17 loc) · 523 Bytes

A set of R scripts to generate access tokens for Fitbit data and retrieve Fitbit data.

USAGE

a) Get the list of fitbit parameters

Rscript fitbit-api.R parameters

b) Get data about a parameter of a fitbit device in a range of dates

Rscript fitbit-api.R fetch device-id parameter-id start-date end-date

Dates are given in the format dd/mm/yyy. Output is returned in JSON format.


DOCKER USAGE

docker-compose run fitbit-reader Rscript fitbit-api.R