You are reading a single comment by @ga and its replies.
Click here to read the full conversation.
-
To use clock_info's you need to make a clock that supports the way they work.
I created the simplest example I could and produce the simplest++ clock.https://github.com/espruino/BangleApps/tree/master/apps/simplestpp
There is also a clock_info wiki or tutorial somewhere as well.
You dont need to poll the clock_info they have their own timers, they emit a draw event that your code then reponds to.
Thanks much for the example, how to poll this clock info would have been one if ny next questions.
However there are also some other severe bugs that need to be fixed first:
The screen is not cleared and redrawn properly
Todo: put everything back in one draw function again
This is also necessary since some elements overlap occasionally.
day in week is wrong, right niw it shows the date on Tuesday while its actually Sunday.
Probably related: Date of Moon phase change is wrong, and jumping around.
At the moment the Moon is placed on Sunday while next half Moon should be on Friday
I think there is a Clock Info module for Moon phase too, and it makes sense to use this instead of an extra calculation since someone interested in this might want install this module anyways and then its also not recalculated too often.
I dont have much time this week, if someone feels like fixing one if these issues before I find tje time just drop a line here so we dont work on the same thing simulatanousky.