-
Notifications
You must be signed in to change notification settings - Fork 13
Storing and Sending Historical Data
Prageeth Jayathissa edited this page Nov 13, 2019
·
1 revision
I have a data array var dataHistoryArray = []
I then have a set interval function that runs every minute and appends the current heartRate
, stepCount
, and ISO Time
Currently I am using today.adjusted.steps
for the steps. This is the step count that is adjusted by the fitbit servers. I am assuming that there is some additional data processing that goes on here to determine if it is actually a step or not.
If you want to use the step count data from the watch, use today.local.step
.
To check for memory overload issues, I added some additional GUI to show the current memory. This can be turned off in line 22 by turning production
to true
const production = true // false for dev / debug releases