Looks good, although I think you ought to provide an icon - IIRC most clocks expect one.
I think the issue is just that you're calling info.emit("redraw"); on info, but that is a list of one or more clockinfos. Just doing info.items[0].emit("redraw"); should sort you out.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Looks good, although I think you ought to provide an icon - IIRC most clocks expect one.
I think the issue is just that you're calling
info.emit("redraw");
oninfo
, but that is a list of one or more clockinfos. Just doinginfo.items[0].emit("redraw");
should sort you out.