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

displaying simple parameters

ANSWERED

Hi all,

 

I'm been successfully using and modifying templates (thanks people for the work)! 

 

I am looking to add a simple text parameter to my display that shows steps and calories today in a numeric value. I have read this page but I am a bit stuck. 

 

I just want a code sample that I can copy into my project. If someone has already done this I would be really grateful! 

 

Thanks for taking the time to read this post. 

 

Regards,

Steve

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Steps:

import { today } from "user-activity";
stepsText.innerText = util.numberWithCommas(today.adjusted.steps);

numberWithCommas is just a function to add commas in thousands places 🙂

View best answer in original post

Best Answer
4 REPLIES 4

Please vote for this https://community.fitbit.com/t5/Feature-Suggestions/Existing-clock-faces-supply-download-of-projects...

 

If Fitbit would supply the clock face projects that are currently available Clocks.png

in the mobile app then we could all "piggyback" on the code that performs the touch events for displaying all of the API elements for steps, heart rate, and so on.  I would like to just modify several of the existing templates that are great designs with more color choices and my own custom images.   

Best Answer

Thanks for the reply. I have voted. I love the idea. Hopefully the devs release some more stuff for us to work on. 

Best Answer
0 Votes

Steps:

import { today } from "user-activity";
stepsText.innerText = util.numberWithCommas(today.adjusted.steps);

numberWithCommas is just a function to add commas in thousands places 🙂

Best Answer

Spot on Waulok! Exactly what I was looking for.

 

Thanks,

Steve

Best Answer