07-06-2018 08:33
07-06-2018 08:33
I have developed a problem that only affects Versa Hardware that has me stumped.
The ontick is being called on the minute even though the granularity is set to seconds.
clock.granularity = "seconds"; clock.ontick = () => updateClock();
It works fine (updates each second) in the simulator on both Ionic and Versa and on my Ionic Hardware, just not the Versa Hardware (updates each minute).
Here is a link to the full source: https://github.com/cmspooner/ForecastTime
07-09-2018 04:47
07-09-2018 04:47
I'm not having that problem with the Versa, but I'm handling the onclick slightly different my code uses an anonymous function.
clock.ontick = (evt) => { heartRateSensor.start(); let currentDate = evt.date; let hours = currentDate.getHours();
...
}
The source for the watchface is in github https://github.com/grumpy-coders/rpg-time (code is in the app/index.js)