- Notifications
You must be signed in to change notification settings - Fork12
Villhellm/lovelace-clock-card
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A simple analog clock card for Home Assistant. Colors are based on your current theme.
Name | Type | Requirement | Description |
---|---|---|---|
type | string | Required | "custom:clock-card" |
time_zone | string | Optional | The timezone you would like to display. If ommited your current device time will be used. Must be a validTZ database name |
size | number | Optional | The size of the clock in px. Default is 300 |
font_size | number | Optional | The size of the date string in px. Default is 20 |
disable_seconds | boolean | Optional | Disable the seconds hand |
show_continent | boolean | Optional | Display the timezone continent beneath the clock |
show_city | boolean | Optional | Display the timezone city beneath the clock |
caption | string | Optional | Caption to display under the clock. This will override both show_city and show_continent |
display_date | string | Optional | Display the current Date object. See below for format options |
theme | object | Optional | Change the theme colors manually. Theme options below |
String | Returns |
---|---|
a | AM/PM |
hh | current 12/hr hour with leading zero eg:04 |
h | current 12/hr hour eg:4 |
mm | current minute with leading zero eg:09 |
m | current minute eg:9 |
ss | current second with leading zero eg:07 |
s | current second eg:7 |
HH | current 24/hr hour with leading zero eg:04 |
H | current 24/hr hour eg:16 |
YYYY | current full year eg:2020 |
YY | current abbreviated year eg:20 |
MMMM | current month name eg:August |
MMM | current abbreviated month name eg:Aug |
MM | current month with leading zero eg:08 |
M | current month eg:8 |
DDDD | current day name eg:Tuesday |
DDD | current abbreviated day name eg:Tue |
DD | current day with leading zero eg:06 |
D | current day eg:6 |
All theme options can be set with a CSS valid color option.
Name | Type | Requirement | Description |
---|---|---|---|
background | string | Optional | Clock face background color |
hands | string | Optional | Color of the hands and clock border (ifborder is not defined) |
numbers | string | Optional | Color of the numbers |
border | string | Optional | Color of the clock face border |
-type:"custom:clock-card"time_zone:"America/Chicago"#OPTIONALsize:250#OPTIONALfont_size:100#OPTIONALdisable_seconds:true#OPTIONALcaption:"Corporate"display_date:"MM/DD/YY"theme:background:blackhands:orangenumbers:whiteborder:grey
About
Basic analog clock for Lovelace
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.