From 96bf25246ea1f861ba798ee1b447ba4cdadcbc44 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Fri, 19 May 2023 21:05:52 -0400 Subject: [PATCH] Add my status report to relevant briefings --- templates/speech/morning_briefing.yaml | 13 ++----------- templates/speech/nightly_briefing.yaml | 14 ++------------ 2 files changed, 4 insertions(+), 23 deletions(-) diff --git a/templates/speech/morning_briefing.yaml b/templates/speech/morning_briefing.yaml index ca37307..82e0186 100644 --- a/templates/speech/morning_briefing.yaml +++ b/templates/speech/morning_briefing.yaml @@ -3,6 +3,7 @@ {%- macro getReport() -%} {% from 'speech.jinja' import greeting_nodate, dadjoke, inspirational_quote %} {% from 'time.jinja' import input_datetime_12hr %} + {% from 'status.jinja' import tonyStatusReport %} {% from 'easy_time.jinja' import count_the_days %}

{{ greeting_nodate() }} @@ -145,17 +146,7 @@

- {% if is_state('input_boolean.tony_streaming_today','on') %} - {{ [ - "Tony will be pretending to be a real content creator tonight. ", - "Tony will be doing his best to defeat his impostor syndrome tonight. ", - "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 {{ input_datetime_12hr('input_datetime.tony_streaming_start_time') }}. " - {% else %} - "Tony does not have a stream scheduled today. " - {% endif %} + {{ tonyStatusReport('stream','tts') }}

diff --git a/templates/speech/nightly_briefing.yaml b/templates/speech/nightly_briefing.yaml index f1c13cc..ae63b9f 100644 --- a/templates/speech/nightly_briefing.yaml +++ b/templates/speech/nightly_briefing.yaml @@ -3,7 +3,7 @@ {%- macro getReport() -%} {% from 'speech.jinja' import greeting, dadjoke, inspirational_quote %} {% 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, tonyStatusReport %} {% from 'easy_time.jinja' import count_the_days %}

{{ greeting() }} @@ -53,17 +53,7 @@ {% endif %}

- {% if is_state('input_boolean.tony_streaming_today','on') %} - {{ [ - "Tony will be pretending to be a real content creator tonight. ", - "Tony will be doing his best to defeat his impostor syndrome tonight. ", - "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 {{ 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 %} + {{ tonyStatusReport('stream','tts') }} {% if is_state('binary_sensor.kallen_school_tomorrow','on') %} {% if is_state('binary_sensor.kallen_band_tomorrow','on') %} "Collin has school tomorrow, and there will be band practice in the morning at {{ read_time_from_calendar('calendar.kallen_school_days','start_time') }}. "