ibz0q / better-moment-card Goto Github PK
View Code? Open in Web Editor NEWLovelace digital clock/time card that's fully customizable for Home Assistant
License: GNU General Public License v3.0
Lovelace digital clock/time card that's fully customizable for Home Assistant
License: GNU General Public License v3.0
I can't replicate the look of the clockwork card that stopped functioning and gives the incorrect time, which led me to your card. I'm sure it's just my own lack of experience with styling code. Can you assist by recommending changes?
In the screenshot below, you can see the overall card size, padding between side locations, and font size for city name is different than clockwork, which is the look I prefer:
- type: custom:better-moment-card
parentStyle: |
line-height:normal;
padding-bottom:0en;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 0fr 0fr;
gap: 0px;
grid-template-areas:
'time time LA'
'date date Miami';
moment:
- format: h:mm a
style: >
font-size:4em; text-align:left; font-weight:400; grid-area: time;
timezone: America/Chicago
- format: dddd, MMMM DD
style: >
font-size:1.6em; line-height:1em; text-align:left; grid-area: date;
- format: ddd h:mm a
timezone: America/Los_Angeles
style: |
text-align:left; line-height:1.5em; grid: LA;
template: |
<strong>Los Angeles</strong>
<div style="font-size:0.9em;">{{moment}}</div>
- format: ddd h:mm a
timezone: America/Puerto_Rico
style: |
text-align:left; line-height:1.5em; grid: Miami
template: |
<strong>Miami</strong>
<div style="font-size:0.9em;">{{moment}}</div>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.