10-24-2017 05:54
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-24-2017 05:54
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

Accepted Solutions
10-24-2017 20:46
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-24-2017 20:46
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Steps:
import { today } from "user-activity";
stepsText.innerText = util.numberWithCommas(today.adjusted.steps);
numberWithCommas is just a function to add commas in thousands places 🙂
10-24-2017 11:24
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-24-2017 11:24
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
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.
10-24-2017 14:04
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-24-2017 14:04
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks for the reply. I have voted. I love the idea. Hopefully the devs release some more stuff for us to work on.

10-24-2017 20:46
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-24-2017 20:46
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Steps:
import { today } from "user-activity";
stepsText.innerText = util.numberWithCommas(today.adjusted.steps);
numberWithCommas is just a function to add commas in thousands places 🙂
10-25-2017 00:36
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-25-2017 00:36
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Spot on Waulok! Exactly what I was looking for.
Thanks,
Steve
