mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
fix moment, add unit filter
This commit is contained in:
@@ -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> -->
|
||||
|
Reference in New Issue
Block a user