Add my next Twitch stream to TTS briefings, as though anyone cares

This commit is contained in:
2023-05-06 21:28:41 -04:00
parent 88941bdd69
commit 8733270a25
4 changed files with 13 additions and 2 deletions

View File

@ -51,3 +51,8 @@
{% macro ct() %}
{{ ((now().hour * 60 + now().minute) * 60 ) }}
{% endmacro %}
{% macro next_twitch_stream() %}
{% from 'easy_time.jinja' import custom_time %}
{{ custom_time('calendar.tony_s_twitch_schedule','week,day,hour,minute') }}
{% endmacro %}

View File

@ -2,7 +2,7 @@
{# Daily Briefing #}
{%- macro getReport() -%}
{% from 'speech.jinja' import greeting, dadjoke, inspirational_quote %}
{% from 'time.jinja' import input_datetime_12hr %}
{% from 'time.jinja' import input_datetime_12hr, next_twitch_stream %}
{% from 'status.jinja' import emma_sleep %}
{% from 'formatting.jinja' import cleanup %}
{% from 'easy_time.jinja' import count_the_days, speak_the_days %}
@ -291,6 +291,8 @@
"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 {{ input_datetime_12hr('input_datetime.tony_streaming_start_time') }}. "
{% else %}
"Tony does not have a stream scheduled today. His next scheduled stream is in {{ next_twitch_stream() }}. "
{% endif %}
{% if is_state('input_boolean.kallen_school_today', 'on') %}

View File

@ -153,6 +153,8 @@
"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 {{ input_datetime_12hr('input_datetime.tony_streaming_start_time') }}. "
{% else %}
"Tony does not have a stream scheduled today. "
{% endif %}
</p>

View File

@ -2,7 +2,7 @@
{# Nightly Briefing #}
{%- macro getReport() -%}
{% from 'speech.jinja' import greeting, dadjoke, inspirational_quote %}
{% from 'time.jinja' import input_datetime_12hr, read_time_from_calendar %}
{% from 'time.jinja' import input_datetime_12hr, read_time_from_calendar, next_twitch_stream %}
{% from 'status.jinja' import emma_sleep %}
{% from 'formatting.jinja' import cleanup %}
{% from 'easy_time.jinja' import count_the_days %}
@ -62,6 +62,8 @@
"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 {{ input_datetime_12hr('input_datetime.tony_streaming_start_time') }}. "
{% else %}
"Tonight the studio will be dormant. Tony does not stream again until {{ next_twitch_stream() }} from now. "
{% endif %}
{% if is_state('binary_sensor.kallen_school_tomorrow','on') %}
{% if is_state('binary_sensor.kallen_band_tomorrow','on') %}