TarheelGrad1998 / gallery-card

A custom card for Home Assistant that will display images and/or videos from a folder in the style of a gallery.
97 stars 30 forks source link

Feature request - Day of week in captions #31

Closed mullermn closed 1 year ago

mullermn commented 2 years ago

Hi,

Could you please add support for putting the day of the week in captions? This is the '%A' field using the Python date functions.

I use this card to display the last couple of days captures from a doorbell. The full numeric date is unnecessary and ugly, but timestamps only is confusing.

Thankyou!

TarheelGrad1998 commented 2 years ago

Someone started implementing moment.js, which I think is a good idea and would solve this and more.

Anyway, it's on the radar, and I'll keep this open so I don't forget.

pgorod commented 1 year ago

I would also appreciate this. Any code hack I can use?

TarheelGrad1998 commented 1 year ago

This is implemented in v3.4. You can use any of the following in caption_format:

dd | Su-Sa | The min name of the day of the week ddd | Sun-Sat | The short name of the day of the week dddd | Sunday-Saturday | The name of the day of the week

pgorod commented 1 year ago

Brilliant! Thanks, great release 🎉