logbook-card icon indicating copy to clipboard operation
logbook-card copied to clipboard

Display how long the event has been triggered

Open royto opened this issue 5 years ago • 4 comments

From issue #15 raised by @iptvcld.

For example, if the event has been triggered yesterday, we should display 1 day ago

Should be displayed by default ? Should be an alternative of date (start / end date) ? Where to display it ?

royto avatar Mar 29 '20 12:03 royto

Looks good thanks! Can we also add lets say a line break after each entry? Something think and light

iptvcld avatar Mar 30 '20 15:03 iptvcld

also just noticed if we do this duration_labels: seconds: '${value} seconds ago' minutes: '${value} minutes ago' hours: '${value} hours ago' days: '${value} day ago' type: 'custom:logbook-card'

After day 1 - lets say day 2. This will say '2 day ago'. The grammar wont make sense and should say '2 days ago' and i cant it to days ago - then day 1 wont make sense. It will say '1 days ago'

iptvcld avatar Mar 30 '20 15:03 iptvcld

Looks good thanks! Can we also add lets say a line break after each entry? Something think and light

You should open an issue about this

royto avatar Mar 30 '20 19:03 royto

@iptvcld I just open the issue. I just release a version with support of localization of duration.

It still needs to be developed

royto avatar Mar 30 '20 19:03 royto