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.
| Setting | Value | Default | Meaning |
|---|---|---|---|
format | 24h, 12h | "24h" | Whether the hour runs to 24 or 12 with AM and PM. |
showDate | true or false | true | Shows the date under the time. |
style | simple, flap | "simple" | Plain digits, or a split-flap display whose digits flip when the minute changes. |
header | date, label, none | A 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. | |
subtitle | text | Text 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. | |
showWeek | true or false | false | Shows the ISO week (Wk 42) in the header. |
showSeconds | true or false | false | Draws the seconds small after the time. The card then draws once a second. |
blinkSeparator | true or false | false | Blinks 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.