01-06-2019 02:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-06-2019 02:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
The new Exercise API doesn't have the possibility to read a average stat of the steps like it does for speed, pace and heart rate. As I'm abusing the steps to show the strokes on my Stand Up Paddling App the Info would be nice. Any ideas to calculate this in a effective and easy way?

01-06-2019 07:26
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-06-2019 07:26
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Average steps per what? The number of steps in a given exercise is pretty absolute, whilst the others you mentioned others naturally fluctuate during an exercise, so it makes to have AVG versions of them.
Suspect you will need to determine when you want to limit/measure your average (e.g. steps per minute), then get the number of steps at second 0, allow your desired time to pass (e.g., 60 seconds) and take a second reading.
avgSteps = endSteps - startSteps;
startSteps = endSteps;
And repeat...

