mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-19 22:24:15 +01:00
fixed typo
This commit is contained in:
@@ -42,7 +42,7 @@ class LuiPagesGen(object):
|
||||
|
||||
def update_time(self, kwargs):
|
||||
time = datetime.datetime.now().strftime(self._config.get("timeFormat"))
|
||||
addTemplate = self._config.get("timeAdditonalTemplate")
|
||||
addTemplate = self._config.get("timeAdditionalTemplate")
|
||||
addTimeText = self._ha_api.render_template(addTemplate)
|
||||
self._send_mqtt_msg(f"time~{time}~{addTimeText}")
|
||||
|
||||
@@ -55,7 +55,7 @@ class LuiPagesGen(object):
|
||||
dateformat = self._config.get("dateFormat")
|
||||
date = datetime.datetime.now().strftime(dateformat)
|
||||
|
||||
addTemplate = self._config.get("dateAdditonalTemplate")
|
||||
addTemplate = self._config.get("dateAdditionalTemplate")
|
||||
addDateText = self._ha_api.render_template(addTemplate)
|
||||
self._send_mqtt_msg(f"date~{date}{addDateText}")
|
||||
|
||||
|
||||
@@ -62,8 +62,8 @@ key | optional | type | default | description
|
||||
`locale` | True | string | `en_US` | Used by babel to determinante Date format on screensaver, also used for localization.
|
||||
`dateFormatBabel` | True | string | `full` | formatting options on https://babel.pocoo.org/en/latest/dates.html?highlight=name%20of%20day#date-fields
|
||||
`timeFormat` | True | string | `%H:%M` | Time Format on screensaver. Substring after `?` is displayed in a seperate smaller textbox. Useful for 12h time format with AM/PM <pre>`"%I:%M ?%p"`</pre>
|
||||
`dateAdditonalTemplate` | True | string | `""` | Addional Text dispayed after Date, can contain a Homeassistant Template Example `" - {{ states('sun.sun') }}"`
|
||||
`timeAdditonalTemplate` | True | string | `""` | Addional Text dispayed below Time, can contain a Homeassistant Template
|
||||
`dateAdditionalTemplate` | True | string | `""` | Addional Text dispayed after Date, can contain a Homeassistant Template Example `" - {{ states('sun.sun') }}"`
|
||||
`timeAdditionalTemplate` | True | string | `""` | Addional Text dispayed below Time, can contain a Homeassistant Template
|
||||
`dateFormat` | True | string | `%A, %d. %B %Y` | date format used if babel is not installed
|
||||
`cards` | False | complex | | configuration for cards that are displayed on panel; see docs for cards
|
||||
`screensaver` | True | complex | | configuration for screensaver; see docs for screensaver
|
||||
|
||||
Reference in New Issue
Block a user