Show unit.

This commit is contained in:
Michael Teeuw 2017-10-19 16:43:12 +02:00
parent a79e1b6ca1
commit 22a50b72fd

View File

@ -1,7 +1,6 @@
{# {#
TODO: TODO:
- Show Humidity - Show Humidity
- Show Units
_ Show Indoor Temperature _ Show Indoor Temperature
_ Show Indoor Humidity _ Show Indoor Humidity
#} #}
@ -22,7 +21,7 @@
{% if config.showWindDirectionAsArrow %} {% if config.showWindDirectionAsArrow %}
<i class="fa fa-long-arrow-up" style="transform:rotate({{current.windDirection}}deg);"></i> <i class="fa fa-long-arrow-up" style="transform:rotate({{current.windDirection}}deg);"></i>
{% else %} {% else %}
{{current.cardinalWindDirection()}} {{current.cardinalWindDirection() | translate}}
{% endif %} {% endif %}
&nbsp; &nbsp;
</sup> </sup>
@ -40,7 +39,13 @@
{% endif %} {% endif %}
<div class="large light"> <div class="large light">
<span class="wi weathericon wi-{{current.weatherType}}"></span> <span class="wi weathericon wi-{{current.weatherType}}"></span>
<span class="bright"> {{current.temperature | round(0 if config.roundTemp else 1)}}°</span></div> <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 %}
</span>
</div> </div>
{% endif %} {% endif %}