You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,16 @@
2
2
# Lovelace Analog Clock
3
3
An analog clock card for Home Assistant Lovelace. Colors are fully customizable, weekday names and date formats are localizable.
4
4
5
+
In addition to the js file is moment.js needed, but only if you plan to use dateformat or timeformat. To install moment.js add these lines in the section 'resources' in ui-lovelace.yaml:
@@ -10,6 +20,7 @@ An analog clock card for Home Assistant Lovelace. Colors are fully customizable,
10
20
| locale | String | HA setting | Locale for date and week day |
11
21
| timezone | String | Browser setting | Time zone, for example Europe/Stockholm |
12
22
| show_timezone | Boolean | false | If true, show time zone instead of week day |
23
+
| timezonedisplayname | String || Name of the time zone to be shown |
13
24
| diameter | Integer | Automatic | Diameter of the clock |
14
25
| hide_secondhand | Boolean | false | If true, the second hand is hidden |
15
26
| hide_weeknumber | Boolean | true | If true, the week number is hidden NOTE: default has changed to true |
@@ -19,6 +30,7 @@ An analog clock card for Home Assistant Lovelace. Colors are fully customizable,
19
30
| hide_digitaltime | Boolean | false | If true, the digital time hidden |
20
31
| color_background | String | primary background color | Background color of the clock |
21
32
| color_ticks | String | Silver | Color of the border ticks |
33
+
| hide_minorticks | Boolean | false | Hides the minor ticks |
22
34
| color_facedigits | String | Silver | Color of the borde digits |
23
35
| color_digitaltime | String | #CCCCCC | Color of the digital time |
24
36
| color_hourhand | String | #CCCCCC | Color of the hour hand |
@@ -28,6 +40,10 @@ An analog clock card for Home Assistant Lovelace. Colors are fully customizable,
28
40
| style_hourhand | Integer | 1 | Style for the hour hand |
29
41
| style_minutehand | Integer | 1 | Style for the minute hand |
30
42
| style_secondhand | Integer | 3 | Style for the second hand |
43
+
| dateformat | String | HA setting | Format for the date (Require moment.js) |
44
+
| timeformat | String | HA setting | Format for the time (Require moment.js) |
45
+
46
+
Themes are settings that are applied during a time interval. Any setting except timezone and diameter can be set in themes. There can be multiple 'time' sections.
31
47
32
48
| Name | Type | Description
33
49
| --- | --- | --- |
@@ -51,6 +67,21 @@ An analog clock card for Home Assistant Lovelace. Colors are fully customizable,
0 commit comments