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
Answered! Go to the Best Answer.
Best AnswerSteps:
import { today } from "user-activity";
stepsText.innerText = util.numberWithCommas(today.adjusted.steps);numberWithCommas is just a function to add commas in thousands places 🙂
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
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.
Thanks for the reply. I have voted. I love the idea. Hopefully the devs release some more stuff for us to work on.
Best AnswerSteps:
import { today } from "user-activity";
stepsText.innerText = util.numberWithCommas(today.adjusted.steps);numberWithCommas is just a function to add commas in thousands places 🙂