07-01-2022 08:57
07-01-2022 08:57
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.
07-01-2022 14:22
07-01-2022 14:22
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.
07-01-2022 10:11
07-01-2022 10:11
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
07-01-2022 14:22
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.
07-05-2022 09:51
07-05-2022 09:51
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.