10-23-2017 13:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-23-2017 13:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hello,
I wonder if someone can help me or confirm that there is a reported bug here. But it seems that I can not get correct goal data from "elevationGoal" and "caloriesGoal".As you can see, I am getting different values for "Progress Arcs" for both. Code is as below...
const elevationGoal = userActivity.goals.elevationGain;
and then..
const metricElevation = "elevationGain"; const amountElevation = userActivity.today.adjusted[metricElevation] || 0;
and finally...
dailystairs.innerText = amountElevation; let elevationAngle = Math.floor(360*(amountElevation/elevationGoal)); if ( elevationAngle > 360 ) { elevationAngle = 360; elevationRing.fill="#58e078"; } elevationRing.sweepAngle = elevationAngle;
Similar code for Calories as well.. Any help is greatly appreciated.
Answered! Go to the Best Answer.

Accepted Solutions
10-23-2017 15:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


10-23-2017 15:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks for raising this, I've recreated the issue here and I've logged a ticket for the firmware team. Hopefully will be fixed in an upcoming update!

10-23-2017 15:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


10-23-2017 15:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks for raising this, I've recreated the issue here and I've logged a ticket for the firmware team. Hopefully will be fixed in an upcoming update!

10-23-2017 15:27
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-23-2017 15:27
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks Jon, in that case I will leave the code as it is for now.

11-09-2017 10:42
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

11-09-2017 10:42
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi Jon,
It look like that this bug has not been fixed in the latest firmware! Any idea, when will it be? Thanks...

11-09-2017 10:49
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


11-09-2017 10:49
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Sorry the fix didn't make it into the release, but will be included in the next update. I can't make any promises, but it will be available by the time the gallery launches.

