11-02-2017 19:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

11-02-2017 19:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Hey all.
For those needing a leg-up with creating your first clockface, I've written a tutorial with sample code and images which should help you start your development.
Please visit:
https://ozibyte.com/creating-an-analog-fitbit-ionic-clockface-part-1/
Let me know what you think! 🙂
Thanks to all in the Discord channel for helping me get started.
Answered! Go to the Best Answer.
Accepted Solutions
11-04-2017 15:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

11-04-2017 15:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Part two shows you how to add statistics such as Heartrate, Steps taken, Elevation gain (stairs walked up) and Calories burned.
Check it out here:
https://ozibyte.com/creating-an-analog-fitbit-ionic-clockface-part-2/
🙂
11-03-2017 11:34
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


11-03-2017 11:34
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Thanks for sharing!
11-04-2017 15:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

11-04-2017 15:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Part two shows you how to add statistics such as Heartrate, Steps taken, Elevation gain (stairs walked up) and Calories burned.
Check it out here:
https://ozibyte.com/creating-an-analog-fitbit-ionic-clockface-part-2/
🙂
01-23-2018 10:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-23-2018 10:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thank you so much for posting these. Can you please add the date into the code. I don't understanding coding too much, but I'm great at copy/pasting (as long as I know exactly where everything goes.) I made a great clockface using your analog code, but would love to have the date also 🙂 Thanks!

06-09-2018 03:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-09-2018 03:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi,
Thanks for helping out by providing the code for this project.
There is one thing I do not understand in it though.
What is the flow of events that causes the hands to rotate?
There is no js code doing it, so I assume it is related to this
<symbol id="clock-widget" class='clock-widget' type='clock-widget'
focusable='false' pointer-events='visible' system-events='all'
width='348' height='250' data-size='16'/>
Is the system-events="all" attribute causing events to be sent here?
How do they change the rotation angle?
I also note that there is a data-size=16 attribute. How does that relate to the above?
Is there a significance to the class assigned to the hands, eg 'min-hand', 'hour-hand' etc?
(i.e. does the runtime do something special with components with that class)
It would be great if you could provide some info or a link.
I haven't been able to find anything when searching for "system-events", "
Cheers,
Nick

06-09-2018 03:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-09-2018 03:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
'min-hand', 'hour-hand' etc let you set the image and css later for these clock parts.
The rotation, etc is built into the Fitbit OS code. It's a special clock-widget built into it to do the rotation, etc.
You won't find any code for it as it is legacy code which will probably remain supported, but the code they show you on the website now is for manually calculating the angles for the images.
06-09-2018 03:34
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-09-2018 03:34
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thank you very much!
I thought I was losing my mind as I couldn't find any docs on that method.

08-13-2018 20:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-13-2018 20:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
this is so nice. Thank you! How to make the Sec.-hand, Min Hand or Hr-hand cast a shadow?

