dylandoamaral / uptime-card

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

timeline with scalable timestamps #120

Open YvesZH opened 2 years ago

YvesZH commented 2 years ago

your card is really great. thank you very much for your work. Would be great if the timeline had scalable timestamps (for example: 14:00 14:30 15:00 ...) instead of "8h ago 4h ago now"

9DD92E8F-93DC-4F9B-A697-86033179526E

dylandoamaral commented 2 years ago

It can be a bit odd, no ?

For example if your timeline spans 8 hours, and it's currently 3:30am. What would be the printed information ? 7:30pm --------------------- 3:30am ?

But what about a timeline that spans 32 hours, it would be the same.

We should have a solution for minutes, hours, days and even weeks to be consistant with: https://github.com/dylandoamaral/uptime-card/blob/main/src/uptime-card.ts#L740-L769.

YvesZH commented 2 years ago

I mean dynamic timestamp (maybe i use the wrong word: 'timestamp') 🙈. As a example (copy from a other lovelace card) Like that:

68EA9394-476D-4ED1-89FA-2EB94808051C

YvesZH commented 2 years ago

And with multiline (a other idea 😅): 7F85DD8B-C994-4644-BCC5-E4C470D4A4B3

dylandoamaral commented 2 years ago

Oh yes my bad. Indeed this is a great idea !

YvesZH commented 2 years ago

By the way: I posted the link to this card on facebook. The interest and the feedback was great. I can imagine that your card on HACS will be a huge success 👏👍

dylandoamaral commented 2 years ago

Thank you very much 🚀