Figuring out Odd and even days thanks to @pbysh! Thanks.

This commit is contained in:
CCOSTAN 2017-02-16 01:06:16 +00:00
parent d871f60bba
commit 90a62fb7b6

View File

@ -17,7 +17,8 @@
- service: script.Voice_notify - service: script.Voice_notify
data_template: data_template:
value1: > value1: >
"Welcome Home Costanzo Family. Here is what's going on around the house right now: "{% if now().strftime("%j")|int % 2 == 0 %}
{%if now().strftime("%a") == 'Wed' or now().strftime("%a") == 'Sun'%} Today is Justin's day to do chores.
Today is {{now().strftime("%A")}} and {{now().strftime("%A")}} is garbage day. Please be sure to tell the kids to take out the trash. {% else %}
{%endif%} Today is Paige's day to do chores.
{%endif%}"