Skip to content

Commit

Permalink
🔧 minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
kernehed committed Jan 8, 2020
1 parent 41a4966 commit bf65812
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
3 changes: 2 additions & 1 deletion automations/tts/welcome_home.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,5 @@ action:
] | random }}
{%- endmacro -%}
{{greeting_sentence(person)}}
call_inspirational_quote: 1
call_inspirational_quote: 1
call_responsibilities: 1
11 changes: 5 additions & 6 deletions templates/speech/macros.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,16 @@
{{bedtime_kids|random}}
{%- endmacro -%}

{%- macro responsibilities() -%}
{% set weekday = ["Söndag", "Måndag", "Tisdag", "Onsdag", "Torsdag", "Fredag", "Lördag"] %}
{% set day_of_the_week = weekday[now().isoweekday() ] %}

{% if day_of_the_week == 'Onsdag' or day_of_the_week == 'Söndag' %}
{%- macro responsibilities() -%}
{% set weekday = ["Söndag", "Måndag", "Tisdag", "Onsdag", "Torsdag", "Fredag", "Lördag"] %}
{% set day_of_the_week = weekday[now().isoweekday() ] %}
{% if day_of_the_week == 'Onsdag' or day_of_the_week == 'Söndag' %}
Idag är det {{ day_of_the_week }} och {{ day_of_the_week }} är hjälpa till dagen.
{% endif %}
{% if day_of_the_week == 'Onsdag' %}
Idag ska soporna ut. Se till att ni får med er alla sopor
{% endif %}
{% if now().strftime('%j')|int % 2 != 0 %}
{% if now().strftime('%j')|int % 2 != 0 %}
Idag är det Theus tur att hjälpa till.
{% else %}
Idag är det Evenice tur att hjälpa till.
Expand Down

0 comments on commit bf65812

Please sign in to comment.