Hello I m trying to create get events and parse it into a text field to display notification regarding the school lunch of my daughter. I have the following output getting my events :
calendar.repas_ecole:
events:
- start: '2024-09-26T00:00:00+02:00'
end: '2024-09-26T01:00:00+02:00'
summary: Potages
- start: '2024-09-26T00:00:00+02:00'
end: '2024-09-26T01:00:00+02:00'
summary: Tartines`
And here is the complete script : https://pastebin.com/6tptzf4D
But I m pretty sure this is the faulty part :
{% set meals_info = [] %} {% for event in
meals['calendar.repas_ecole'].events %}
{% set meals_info = meals_info + [event.summary] %}
{% endfor %} {{ meals_info | join(', ') }}
Thanks for your help
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.