More time-based Jinja2 custom templates
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
{# Morning Briefing #}
|
||||
{%- macro getReport() -%}
|
||||
{% from 'speech.jinja' import greeting_nodate, dadjoke %}
|
||||
{% from 'time.jinja' import input_datetime_12hr %}
|
||||
<p>
|
||||
{{ greeting_nodate() }}
|
||||
</p>
|
||||
@ -103,7 +104,7 @@
|
||||
"Today, Tina must go and entertain the gremlins known as her customers and coworkers ",
|
||||
"Today, Tina will be owned by our lovely lord and savior, capitalism, starting ",
|
||||
"Tina will attempt to satiate the patron saint of capitalism today "
|
||||
] | random }} at {{ (state_attr('input_datetime.tina_workday_start','timestamp') | int | timestamp_custom('%I:%M %p', False)) }}.
|
||||
] | random }} at {{ input_datetime_12hr('input_datetime.tina_workday_start') }}.
|
||||
{% endif %}
|
||||
</p>
|
||||
<p>
|
||||
@ -150,7 +151,7 @@
|
||||
"Tony will be playing video games and yelling into a microphone tonight. ",
|
||||
"Tony will be scraping out the nickels and dimes tonight for the sake of entertainment. ",
|
||||
"Tony is not really all that funny, but tonight he will present himself to a crowd of questionable individuals who seem to think that he is. "
|
||||
] | random }} The studio is scheduled to go online at {{ (state_attr('input_datetime.tony_streaming_start_time','timestamp') | int | timestamp_custom('%I:%M %p', False)) }}. "
|
||||
] | random }} The studio is scheduled to go online at {{ input_datetime_12hr('input_datetime.tony_streaming_start_time') }}. "
|
||||
{% endif %}
|
||||
</p>
|
||||
|
||||
|
Reference in New Issue
Block a user