09-12-2016 07:00
09-12-2016 07:00
We are using two end-points to get both activities and steps.
/1/user/-/activities/list.json
Gives us activities (beforeData + limit=7 for one week's data)
/1/user/-/activities/tracker/steps/date/today/7d.json
Gives us steps (also one week)
Sadly, the activities contain all the steps that the summary also contains, so now we have double steps. Is there a way to prevent that? It's not quite as simple like subtracting steps, as work-outs can easily start and end on multiple dates: Quite a few people go for a run before they go to bed.
09-12-2016 16:44
09-12-2016 16:44
The only way to do this would be to use the intraday time series endpoints to sum the steps in minutes that were inside and outside of an exercise log.