{% if schedules %} {% for item in schedules %}

{{ item.schedule.name }}

{% if item.schedule.schedule_type == 'weekly_calendar' %} Weekly {% else %} 24/7 Cycle {% endif %} {% if item.schedule.enabled %} Active {% else %} Disabled {% endif %}
{% if item.location %} {% endif %}
{% if item.schedule.schedule_type == 'weekly_calendar' and item.pattern %}
{% set days = ['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday'] %} {% set day_abbr = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] %} {% for day in days %} {% if item.pattern.get(day, {}).get('enabled') %} {{ day_abbr[loop.index0] }} {{ item.pattern[day].get('start', '') }}-{{ item.pattern[day].get('end', '') }} {% endif %} {% endfor %}
{% elif item.schedule.schedule_type == 'simple_interval' %}
Cycle at {{ item.schedule.cycle_time or '00:00' }} daily {% if item.schedule.include_download %} (with download) {% endif %}
{% endif %} {% if item.schedule.next_occurrence %}
Next: {{ item.schedule.next_occurrence.strftime('%Y-%m-%d %H:%M') }} {{ item.schedule.timezone }}
{% endif %}
{% if item.schedule.enabled %} {% else %} {% endif %}
{% endfor %} {% else %}

No recurring schedules

Create a schedule to automate monitoring start/stop times.

{% endif %}