From 66ceafd010a30999fc4160f1308960e9115009db Mon Sep 17 00:00:00 2001 From: fewieden Date: Sat, 16 Jun 2018 10:53:17 +0200 Subject: [PATCH] show indoor data, add loading message --- modules/default/weather/current.njk | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/modules/default/weather/current.njk b/modules/default/weather/current.njk index a50c38e7..b9b80365 100644 --- a/modules/default/weather/current.njk +++ b/modules/default/weather/current.njk @@ -1,9 +1,3 @@ -{# - TODO: - - Show Indoor Temperature - - Show Indoor Humidity -#} - {% if current %} {% if not config.onlyTemp %}
@@ -44,6 +38,22 @@ {{current.temperature | round(0 if config.roundTemp else 1) | unit("temperature")}} + {% if config.showIndoorTemperature and indoor.temperature %} + + + {{indoor.temperature | round(0 if config.roundTemp else 1) | unit("temperature")}} + + {% endif %} + {% if config.showIndoorHumidity and indoor.humidity %} + + + {{indoor.humidity | round(0 if config.roundTemp else 1)}}% + + {% endif %} +
+{% else %} +
+ {{"LOADING" | translate}}
{% endif %}