Added the ability to hide the temp label and weather icon in the currentweather module to allow showing only information such as wind and sunset/rise.

This commit is contained in:
Adi Miller 2020-01-16 16:26:20 +02:00
parent 0ca00e5059
commit 81aab7e86f
2 changed files with 31 additions and 27 deletions

View File

@ -13,7 +13,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- cleanup installers folder, remove externalized scripts
### Added
- Finnish translation for "PRECIP", "UPDATE_INFO_MULTIPLE" and "UPDATE_INFO_SINGLE".
- Finish translation for "PRECIP", "UPDATE_INFO_MULTIPLE" and "UPDATE_INFO_SINGLE".
- Added the ability to hide the temp label and weather icon in the `currentweather` module to allow showing only information such as wind and sunset/rise.
### Fixed
- Force declaration of public ip adress in config file (ISSUE #1852)

View File

@ -44,6 +44,7 @@ Module.register("currentweather",{
calendarClass: "calendar",
onlyTemp: false,
hideTemp: false,
roundTemp: false,
iconTable: {
@ -194,6 +195,7 @@ Module.register("currentweather",{
var large = document.createElement("div");
large.className = "large light";
if (this.config.hideTemp === true) {
var weatherIcon = document.createElement("span");
weatherIcon.className = "wi weathericon " + this.weatherType;
large.appendChild(weatherIcon);
@ -224,6 +226,7 @@ Module.register("currentweather",{
temperature.className = "bright";
temperature.innerHTML = " " + this.temperature.replace(".", this.config.decimalSymbol) + degreeLabel;
large.appendChild(temperature);
}
if (this.config.showIndoorTemperature && this.indoorTemperature) {
var indoorIcon = document.createElement("span");