make weatherprovider have a method for hourly fetching instead of a generic weatherData

This commit is contained in:
buxxi
2021-01-23 10:45:55 +01:00
parent d48113f2d9
commit e2cfa24686
6 changed files with 19 additions and 30 deletions

View File

@@ -1,10 +1,5 @@
{% if forecast or weatherData %}
{% if weatherData %}
{% set forecast = weatherData.days %}
{% set numSteps = forecast | calcNumEntries %}
{% else %}
{% set numSteps = forecast | calcNumSteps %}
{% endif %}
{% if forecast %}
{% set numSteps = forecast | calcNumSteps %}
{% set currentStep = 0 %}
<table class="{{ config.tableClass }}">
{% set forecast = forecast.slice(0, numSteps) %}