diff --git a/modules/default/currentweather/currentweather.js b/modules/default/currentweather/currentweather.js index 18ae3c71..7285bd2e 100644 --- a/modules/default/currentweather/currentweather.js +++ b/modules/default/currentweather/currentweather.js @@ -201,13 +201,13 @@ Module.register("currentweather",{ if (this.config.degreeLabel) { switch (this.config.units ) { case "metric": - degreeLabel = "C"; + degreeLabel = " °C"; break; case "imperial": - degreeLabel = "F"; + degreeLabel = " °F"; break; case "default": - degreeLabel = "K"; + degreeLabel = " K"; break; } } @@ -218,7 +218,7 @@ Module.register("currentweather",{ var temperature = document.createElement("span"); temperature.className = "bright"; - temperature.innerHTML = " " + this.temperature.replace(".", this.config.decimalSymbol) + "°" + degreeLabel; + temperature.innerHTML = " " + this.temperature.replace(".", this.config.decimalSymbol) + degreeLabel; large.appendChild(temperature); if (this.config.showIndoorTemperature && this.indoorTemperature) { @@ -228,7 +228,7 @@ Module.register("currentweather",{ var indoorTemperatureElem = document.createElement("span"); indoorTemperatureElem.className = "bright"; - indoorTemperatureElem.innerHTML = " " + this.indoorTemperature.replace(".", this.config.decimalSymbol) + "°" + degreeLabel; + indoorTemperatureElem.innerHTML = " " + this.indoorTemperature.replace(".", this.config.decimalSymbol) + degreeLabel; large.appendChild(indoorTemperatureElem); } @@ -251,7 +251,7 @@ Module.register("currentweather",{ var feelsLike = document.createElement("span"); feelsLike.className = "dimmed"; - feelsLike.innerHTML = this.translate("FEELS") + " " + this.feelsLike + "°" + degreeLabel; + feelsLike.innerHTML = this.translate("FEELS") + " " + this.feelsLike + degreeLabel; small.appendChild(feelsLike); wrapper.appendChild(small); diff --git a/modules/default/weatherforecast/weatherforecast.js b/modules/default/weatherforecast/weatherforecast.js index a29abc16..3afc7f74 100644 --- a/modules/default/weatherforecast/weatherforecast.js +++ b/modules/default/weatherforecast/weatherforecast.js @@ -142,17 +142,17 @@ Module.register("weatherforecast",{ icon.className = "wi weathericon " + forecast.icon; iconCell.appendChild(icon); - var degreeLabel = "°"; + var degreeLabel = ""; if(this.config.scale) { switch(this.config.units) { case "metric": - degreeLabel += " C"; + degreeLabel = " °C"; break; case "imperial": - degreeLabel += " F"; + degreeLabel = " °F"; break; case "default": - degreeLabel = "K"; + degreeLabel = " K"; break; } }