You are reading a single comment by @ga and its replies. Click here to read the full conversation.
  • I have this idea for a clock but despite that I know several programming languages
    and even contributed to well known books on Action Script long time ago,
    I am stumped with JS and Espruino..

    I actually hesitated a lot to buy the Bangle because of JS.

    I managed to change the font in Anton Clock, but I dont really get any of it
    and I have no clue what is Bangle specific, Espruino specific or JS, or user defined functions.
    Or what all the parameters and keywords mean.

    And it seems too much to learn fir something that otherwise could be finished in an hour or two.

    Maybe someone can help me building this?
    Though I guess its faster to code it yourself than to explain...

    Here is the concept:

    Top: sunrise/ sunset day / night time, 24 h ( moving right to left, indicators at noon and midnight)
    Arrow beneath: current moment ( center)
    Dots benath: upcoming alarms (12 h)

    Big number: hour and minute, ( with the minutes getting bigger while they aproach 59
    and the hour getting smaller respectively. So each hour starts big end ends small,
    with the minutes vice versa. A kind of depth effect)

    Bottom: current day of month in the respective box of the day in the week, starting with Monday.
    Also an icon for the days of, new, half and full moons.

    When the date and moon overlap I want to display a dim large moon bitmap in the background on these days instead if the icon on the bottom.

    so my questions are:

    how do I query, preferably as numbers, not strings:

    day in the week
    day of month
    Julian date

    and scheduled alarms 12 h ahead?

    How do I draw a line, and a box , a circle,
    How do I place a bitmap?

    What is "g." ?

    ?


    1 Attachment

    • grafik clock 3.gif
About

Avatar for ga @ga started