Fix: Variable date_format missing
Moving the variable definition back to the root.
This commit is contained in:
@@ -2349,6 +2349,7 @@ variables:
|
|||||||
##### GENERAL #####
|
##### GENERAL #####
|
||||||
blueprint_version: "3.2.3"
|
blueprint_version: "3.2.3"
|
||||||
language: !input "language"
|
language: !input "language"
|
||||||
|
date_format: !input "date_format"
|
||||||
time_format: !input "time_format"
|
time_format: !input "time_format"
|
||||||
time: "{{ as_timestamp(now()) | timestamp_custom(time_format) }}"
|
time: "{{ as_timestamp(now()) | timestamp_custom(time_format) }}"
|
||||||
meridiem: "{{ as_timestamp(now()) | timestamp_custom('%p') if time_format == '%-I:%M' else '' }}"
|
meridiem: "{{ as_timestamp(now()) | timestamp_custom('%p') if time_format == '%-I:%M' else '' }}"
|
||||||
@@ -3775,9 +3776,6 @@ action:
|
|||||||
continue_on_error: true
|
continue_on_error: true
|
||||||
##### NSPanel Date #####
|
##### NSPanel Date #####
|
||||||
### DATE Font Color ###
|
### DATE Font Color ###
|
||||||
- &variables-date_format
|
|
||||||
variables:
|
|
||||||
date_format: !input "date_format"
|
|
||||||
- *delay-default
|
- *delay-default
|
||||||
- service: "{{ nextion.commands.font_color }}"
|
- service: "{{ nextion.commands.font_color }}"
|
||||||
data:
|
data:
|
||||||
@@ -4880,7 +4878,6 @@ action:
|
|||||||
- *delay-default
|
- *delay-default
|
||||||
|
|
||||||
##### Display date (long) #####
|
##### Display date (long) #####
|
||||||
- *variables-date_format
|
|
||||||
- service: "{{ nextion.commands.text_printf }}"
|
- service: "{{ nextion.commands.text_printf }}"
|
||||||
data:
|
data:
|
||||||
component: "{{ page_name }}.date"
|
component: "{{ page_name }}.date"
|
||||||
|
|||||||
Reference in New Issue
Block a user