fix moment, add unit filter

This commit is contained in:
fewieden
2018-05-21 10:56:46 +02:00
parent 07d35a8513
commit 91ddc00f7e
2 changed files with 39 additions and 29 deletions

View File

@@ -42,14 +42,10 @@
<div class="large light">
<span class="wi weathericon wi-{{current.weatherType}}"></span>
<span class="bright">
{{current.temperature | round(0 if config.roundTemp else 1)}}°{% if config.degreeLabel %}
{% if config.units == "metric" %}C{% endif %}
{% if config.units == "imperial" %}F{% endif %}
{% if config.units == "default" %}K{% endif %}
{% endif %}
{{current.temperature | round(0 if config.roundTemp else 1) | unit("temperature")}}
</span>
</div>
{% endif %}
<!-- Unclomment the line below to see the contents of the `current` object. -->
<!-- <div style="word-wrap:break-word" class="xsmall dimmed">{{current | dump}}</div> -->
<!-- <div style="word-wrap:break-word" class="xsmall dimmed">{{current | dump}}</div> -->