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