diff --git a/apps/nspanel-lovelace-ui/luibackend/pages.py b/apps/nspanel-lovelace-ui/luibackend/pages.py index c02645ff..09eabb20 100644 --- a/apps/nspanel-lovelace-ui/luibackend/pages.py +++ b/apps/nspanel-lovelace-ui/luibackend/pages.py @@ -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}") diff --git a/docs/config-overview.md b/docs/config-overview.md index cc82587d..662d83c5 100644 --- a/docs/config-overview.md +++ b/docs/config-overview.md @@ -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
`"%I:%M ?%p"`-`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