Documentation

Clock

urdeck.widgets.clock shows the time, and optionally the date. It is the first widget UrDeck shipped and the simplest one to start from.

4x2 Four cells wide and two tall.
4x1 Four cells wide and one tall: the time on a slim card.
2x1 Two cells wide and one tall.
1x1 One cell, which also fits a slot of the dock.
{ "typeId": "urdeck.widgets.clock", "col": 0, "row": 0, "width": 4, "height": 2, "format": "24h", "showDate": true, "style": "flap" }

Settings

In the editor, add the widget on Pages and select it: the pane on the right shows these settings with a control for each. The file keys are listed for reference.

SettingValueDefaultMeaning
format24h, 12h"24h"Whether the hour runs to 24 or 12 with AM and PM.
showDatetrue or falsetrueShows the date under the time.
stylesimple, flap"simple"Plain digits, or a split-flap display whose digits flip when the minute changes.
headerdate, label, noneA row of small text above the time instead of the date below it: the date and the week or subtitle, a label and the date, or nothing.
subtitletextText for the header, for example Rig online. The label row puts it at the left; the date row puts it at the right in place of the week. Applies when header is date or label. Left out: None.
showWeektrue or falsefalseShows the ISO week (Wk 42) in the header.
showSecondstrue or falsefalseDraws the seconds small after the time. The card then draws once a second.
blinkSeparatortrue or falsefalseBlinks the colon once a second. The card then draws once a second.

The header, the seconds and the blinking colon are all off unless set. With showSeconds or blinkSeparator the card is drawn once a second instead of once a minute (about 0.2 ms a second on the development machine); without them nothing changes.

The card itself (its fill, corners and font) comes from the theme; the widget draws only the time.