Add my next Twitch stream to TTS briefings, as though anyone cares
This commit is contained in:
@ -50,4 +50,9 @@
|
|||||||
|
|
||||||
{% macro ct() %}
|
{% macro ct() %}
|
||||||
{{ ((now().hour * 60 + now().minute) * 60 ) }}
|
{{ ((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 %}
|
{% endmacro %}
|
@ -2,7 +2,7 @@
|
|||||||
{# Daily Briefing #}
|
{# Daily Briefing #}
|
||||||
{%- macro getReport() -%}
|
{%- macro getReport() -%}
|
||||||
{% from 'speech.jinja' import greeting, dadjoke, inspirational_quote %}
|
{% 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 'status.jinja' import emma_sleep %}
|
||||||
{% from 'formatting.jinja' import cleanup %}
|
{% from 'formatting.jinja' import cleanup %}
|
||||||
{% from 'easy_time.jinja' import count_the_days, speak_the_days %}
|
{% 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 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. "
|
"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') }}. "
|
] | 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 %}
|
{% endif %}
|
||||||
|
|
||||||
{% if is_state('input_boolean.kallen_school_today', 'on') %}
|
{% if is_state('input_boolean.kallen_school_today', 'on') %}
|
||||||
|
@ -153,6 +153,8 @@
|
|||||||
"Tony will be scraping out the nickels and dimes tonight for the sake of entertainment. ",
|
"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. "
|
"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') }}. "
|
] | 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 %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
{# Nightly Briefing #}
|
{# Nightly Briefing #}
|
||||||
{%- macro getReport() -%}
|
{%- macro getReport() -%}
|
||||||
{% from 'speech.jinja' import greeting, dadjoke, inspirational_quote %}
|
{% 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 'status.jinja' import emma_sleep %}
|
||||||
{% from 'formatting.jinja' import cleanup %}
|
{% from 'formatting.jinja' import cleanup %}
|
||||||
{% from 'easy_time.jinja' import count_the_days %}
|
{% 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 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. "
|
"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') }}. "
|
] | 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 %}
|
{% endif %}
|
||||||
{% if is_state('binary_sensor.kallen_school_tomorrow','on') %}
|
{% if is_state('binary_sensor.kallen_school_tomorrow','on') %}
|
||||||
{% if is_state('binary_sensor.kallen_band_tomorrow','on') %}
|
{% if is_state('binary_sensor.kallen_band_tomorrow','on') %}
|
||||||
|
Reference in New Issue
Block a user