From 7476338a65aefb2a2d2eff36c7b06c63d53bc724 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Mon, 4 Jul 2022 21:40:20 -0400 Subject: [PATCH] Really technically that whole file was full of duplicates and I'm stupid --- packages/speech.yaml | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 packages/speech.yaml diff --git a/packages/speech.yaml b/packages/speech.yaml deleted file mode 100644 index 9581575..0000000 --- a/packages/speech.yaml +++ /dev/null @@ -1,41 +0,0 @@ - -script: - daily_briefing_script: - sequence: - - service: script.speech_engine - data: - who: media_player.living_room_echo_dot - message: >- - {%- macro getGreeting() -%} - {% if now().strftime('%H')|int < 12 %} - Good morning. - {% elif now().strftime('%H')|int >= 12 and now().strftime('%H')|int < 17 %} - Good afternoon. - {% else %} - Good evening. - {% endif %} - - {% if is_state('binary_sensor.morning','on') %} - Today is {{states.sensor.today_is.state }}, {{ as_timestamp(now()) | timestamp_custom('%B %d %Y') }}. - {% else %} - It is {{ now().strftime("%I:%M %p") }}. - {% endif %} - - {%- endmacro -%} - - {%- macro getDoorStatus() -%} - The Pod Bay Doors are Closed. - {%- endmacro -%} - - {# a macro that removes all newline characters, empty spaces, and returns formatted text #} - {%- macro cleanup(data) -%} - {%- for item in data.split("\n") if item | trim != "" -%} - {{ item | trim }} {% endfor -%} - {%- endmacro -%} - - {%- macro mother_of_all_macros() -%} - {{ getGreeting() }} - {{ getDoorStatus()}} - {%- endmacro -%} - - {{- cleanup(mother_of_all_macros()) -}}