From 22a50b72fdf41856bcc3e5d2bd0df04d070b2eb8 Mon Sep 17 00:00:00 2001 From: Michael Teeuw Date: Thu, 19 Oct 2017 16:43:12 +0200 Subject: [PATCH] Show unit. --- modules/default/weather/current.njk | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/modules/default/weather/current.njk b/modules/default/weather/current.njk index 56f8a91b..b5e4a04f 100644 --- a/modules/default/weather/current.njk +++ b/modules/default/weather/current.njk @@ -1,7 +1,6 @@ {# TODO: - Show Humidity - - Show Units _ Show Indoor Temperature _ Show Indoor Humidity #} @@ -22,7 +21,7 @@ {% if config.showWindDirectionAsArrow %} {% else %} - {{current.cardinalWindDirection()}} + {{current.cardinalWindDirection() | translate}} {% endif %}   @@ -40,7 +39,13 @@ {% endif %}
- {{current.temperature | round(0 if config.roundTemp else 1)}}°
+ + {{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 %} + {% endif %}