dylandoamaral / uptime-card

Minimalistic uptime card for Home Assistant Lovelace UI
266 stars 11 forks source link

Show mins. when `hours_to_show` is one or less #79

Closed agneevX closed 3 years ago

agneevX commented 3 years ago

Right now, the footer follows the following format:

<hours_to_show> hour/s ago <line> <average_template> <line> Now

Would be nice if this could be specified.

agneevX commented 3 years ago

Also, if hours_to_show is less than 1, it shows that... e.g. with value 0.5, it shows 0.5 hours ago.

Do you think 30 mins. ago would be more apt?

dylandoamaral commented 3 years ago

For the first one, I would like, the card to be highly customizable and I am thinking of a grid based card managable by the user, however it will be for the version 1.0.0.

For the second one it is a good idea, it is already the case for hours/days/weeks I can do the same for minutes !