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,7 +1,4 @@
{% if hourly or weatherData %}
{% if weatherData %}
{% set hourly = weatherData.hours %}
{% endif %}
{% if hourly %}
{% set numSteps = hourly | calcNumEntries %}
{% set currentStep = 0 %}
<table class="{{ config.tableClass }}">
@@ -29,4 +26,4 @@
{% endif %}
<!-- Uncomment the line below to see the contents of the `hourly` object. -->
<!-- <div style="word-wrap:break-word" class="xsmall dimmed">{{weatherData | dump}}</div> -->
<!-- <div style="word-wrap:break-word" class="xsmall dimmed">{{hourly | dump}}</div> -->