07-01-2022 08:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-01-2022 08:57
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
I am trying to add Hourly Steps to my clock face, but have not been able to find the value in any of my searches. Does the value really exist or does it need to be calculated in the clock face logic? If I need to calculate it, how do I keep the calculation running when the clock face is not displayed?
Answered! Go to the Best Answer.
Accepted Solutions
07-01-2022 14:22
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-01-2022 14:22
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Ideally, you need to keep a record of the step count at the start of the hour.This is easy when your clockface is running and the display is on because you'll get ontick events.
If your clockface wasn't running at the start of the hour, you can usually reconstruct the figure (nearly) using activity history.
If your clockface is running but the display is off, you can use getTimeout to capture the number at the start of the hour, but it might be simpler to just use activity history as above.
Gondwana Software

07-01-2022 10:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-01-2022 10:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @JBDow - you can check on the hour how many steps were done, but if you are going to do reminders it gets more complicated.
Have a look at SimpleClockPro which shows steps done [or left to do] so far this hour, along with reminders to move at 40, 50 & 55' minutes and Steps This Hour history. It's quite a challenge!
SimpleClockPro steps per hour
Author | ch, passion for improvement.

07-01-2022 14:22
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


07-01-2022 14:22
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Ideally, you need to keep a record of the step count at the start of the hour.This is easy when your clockface is running and the display is on because you'll get ontick events.
If your clockface wasn't running at the start of the hour, you can usually reconstruct the figure (nearly) using activity history.
If your clockface is running but the display is off, you can use getTimeout to capture the number at the start of the hour, but it might be simpler to just use activity history as above.
Gondwana Software

07-05-2022 09:51
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-05-2022 09:51
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Your answer does not directly state it, I am inferring that the Steps Per Hour value does not exist. With some help from other posts, I have created logic to calculate the value.

