Hi everyone,
I liked the original “Digital Clock” made by wassy92x, but it lacked customization options. I know I could use card-mod to achieve similar effect, but I found more convenient to have options directly in the card.
So I decided to start the learning curve of developping custom cards tutorials by Elmar to setup the dev environment, then fork @wassy92x 's Digital Clock to extend it.
So did I, added new options on card level:
- padding: any valid CSS value, eg.
8px 0 - background: any valid CSS value, eg.
red,transparent,url('http://path.to/image.jpg') - additionalCSS: add any custom CSS style string
And added new options on line level (specific to each line):
- textAlign: left, center, right
- lineHeight: any valid CSS value, eg.
1em - color: any valid CSS value, eg.
red,#FF0000 - fontSize: any valid CSS value, eg.
2.8em - fontFamily: any valid CSS font family name
- fontWeight: any valid CSS value, eg.
100,200,300, …,bold,lighter, … - additionalCSS: add any custom CSS style string
Some render samples:

(yaml source for these samples are on the readme page on the repository)
You can add the repository as a custom repository in HACS, or wait a few hours as I added it to the official HACS store and it should be available soon.
Hope this helps all people who were asking for such customizations that were never implemented by original developer.



