{% if forecast %} {% set numSteps = forecast | calcNumSteps %} {% set currentStep = 0 %} {% set forecast = forecast.slice(0, numSteps) %} {% for f in forecast %} {% if config.showPrecipitationAmount %} {% endif %} {% set currentStep = currentStep + 1 %} {% endfor %}
{{ f.date.format('ddd') }} {{ f.maxTemperature | roundValue | unit("temperature") }} {{ f.minTemperature | roundValue | unit("temperature") }} {{ f.precipitation | unit("precip") }}
{% else %}
{{ "LOADING" | translate | safe }}
{% endif %}