Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How do I add floors to my Fitbit Studio app?

ANSWERED

Hello! I am trying to make an app that has a tile list that has steps, calories, heart rate and floors as its items. I found how to add the steps, calories and the heart rate but I don't know how to add the floors. I've searched a lot and haven't found anything that works. I tried the following but it didn't work.

 

if (appbit.permissions.granted("access_activity")) {
if (goals.local.elevationGain !== undefined) {
popupText.text = `${goals.adjusted.elevationGain}`;
}
}

 

popupText.text is the text that I need the number of the floors to be. Does anyone have any ideas on how to do it? Thank youu!!

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Try just

goals.elevationGain

I know where you got goals.local from; I'll see if I can get that changed.

Also beware that some devices (eg, Versa Lite) don't support elevationGain.

Peter McLennan
Gondwana Software

View best answer in original post

Best Answer
0 Votes
2 REPLIES 2

Try just

goals.elevationGain

I know where you got goals.local from; I'll see if I can get that changed.

Also beware that some devices (eg, Versa Lite) don't support elevationGain.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

Thank you for the response! It worked!

Best Answer