mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +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:
@@ -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 %}
|
||||||
|
Reference in New Issue
Block a user