mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-07-06 07:37:41 +00:00
Fix to precipitation logic
Found a really dumb error I made that broke compatibility with OpenWeatherMap hourly forecast under certain conditions. This is now fixed.
This commit is contained in:
parent
32df76bdff
commit
af52b91799
@ -11,6 +11,7 @@
|
|||||||
{{ hour.temperature | roundValue | unit("temperature") }}
|
{{ hour.temperature | roundValue | unit("temperature") }}
|
||||||
</td>
|
</td>
|
||||||
{% if config.showPrecipitationAmount %}
|
{% if config.showPrecipitationAmount %}
|
||||||
|
{% if hour.precipitationUnits %}
|
||||||
<td class="align-right bright precipitation">
|
<td class="align-right bright precipitation">
|
||||||
{{ hour.precipitation }}{{ hour.precipitationUnits }}
|
{{ hour.precipitation }}{{ hour.precipitationUnits }}
|
||||||
</td>
|
</td>
|
||||||
@ -19,6 +20,7 @@
|
|||||||
{{ hour.precipitation | unit("precip") }}
|
{{ hour.precipitation | unit("precip") }}
|
||||||
</td>
|
</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
{% set currentStep = currentStep + 1 %}
|
{% set currentStep = currentStep + 1 %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user