From 241ff5cb6e869035c35c21e9ae3b19c7d0bf94a3 Mon Sep 17 00:00:00 2001 From: Michael Teeuw Date: Wed, 18 Oct 2017 12:19:02 +0200 Subject: [PATCH] Set temperature rounding. --- modules/default/weather/current.html | 2 +- modules/default/weather/weather.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/default/weather/current.html b/modules/default/weather/current.html index 416926b2..1e618306 100644 --- a/modules/default/weather/current.html +++ b/modules/default/weather/current.html @@ -10,7 +10,7 @@
- {{current.temperature | round(1)}}°
+ {{current.temperature | round(0 if config.roundTemp else 1)}}° {% endif %} diff --git a/modules/default/weather/weather.js b/modules/default/weather/weather.js index 6a0eec54..f2993605 100644 --- a/modules/default/weather/weather.js +++ b/modules/default/weather/weather.js @@ -93,8 +93,7 @@ Module.register("weather",{ return { config: this.config, current: this.weatherProvider.currentWeather(), - forecast: this.weatherProvider.weatherForecast(), - myBoolean: true + forecast: this.weatherProvider.weatherForecast() } },