You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • A clock might end up looking like this:

    var layout = { type: "v", content: [
        {type:"txt", font:"30%", label:"12:00"},
        {type:"txt", font:"6x8", label:"Date"},
      ]
    };
    
    function draw() {
      var d = new Date();
      
      layout.content[0].label = require("locale").time(d,1);
      layout.content[1].label = require("locale").date(d);
      Layout.clear(layout);
      Layout.update(layout);
      Layout.render(layout);
    }
    
    g.clear();
    draw();
    setInterval(draw, 60000);
    
About

Avatar for Gordon @Gordon started