Time/Clock-Widgets

clock.countdown clock.countup clock.digiclock clock.iconclock clock.miniclock


clock.countup

Counts up time difference of the actual time versus a starting time from an item

Parameters
{{ clock.countup(id, item, activate, interval, idletxt) }}
id
unique id for this widget (optional)
item
an item containing the start time as string (e.g. "2023-05-21T23:00:34.566439+02:00") or timestamp
activate
an item used to enable / disable the timer (item value 0=disabled, others = enabled) (optional,default = enabled)
interval
the count interval in seconds, e.g. '60s' (default: '10s')
idletxt
the text displayed if the timer is disabled. If no text is given the display will be hidden (optional, no default)
Example
{{ clock.countup('', 'bath.light.timestamp', 'bath.light.switch', '5s') }}

The timer shows the time elapsed after loading this page in the actual browser session. Click "Trigger" to re-start.
Click to start

Timer:   


Author: Wolfram v. Hülsen