10-23-2017 13:19
10-23-2017 13:19
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.
10-23-2017 15:19
10-23-2017 15:19
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
10-23-2017 15:19
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
10-23-2017 15:27
Thanks Jon, in that case I will leave the code as it is for now.
11-09-2017 10:42
11-09-2017 10:42
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
11-09-2017 10:49
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.