mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
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:
parent
0ca00e5059
commit
81aab7e86f
@ -13,7 +13,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
- cleanup installers folder, remove externalized scripts
|
- cleanup installers folder, remove externalized scripts
|
||||||
|
|
||||||
### Added
|
### 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
|
### Fixed
|
||||||
- Force declaration of public ip adress in config file (ISSUE #1852)
|
- Force declaration of public ip adress in config file (ISSUE #1852)
|
||||||
|
@ -44,6 +44,7 @@ Module.register("currentweather",{
|
|||||||
calendarClass: "calendar",
|
calendarClass: "calendar",
|
||||||
|
|
||||||
onlyTemp: false,
|
onlyTemp: false,
|
||||||
|
hideTemp: false,
|
||||||
roundTemp: false,
|
roundTemp: false,
|
||||||
|
|
||||||
iconTable: {
|
iconTable: {
|
||||||
@ -194,6 +195,7 @@ Module.register("currentweather",{
|
|||||||
var large = document.createElement("div");
|
var large = document.createElement("div");
|
||||||
large.className = "large light";
|
large.className = "large light";
|
||||||
|
|
||||||
|
if (this.config.hideTemp === true) {
|
||||||
var weatherIcon = document.createElement("span");
|
var weatherIcon = document.createElement("span");
|
||||||
weatherIcon.className = "wi weathericon " + this.weatherType;
|
weatherIcon.className = "wi weathericon " + this.weatherType;
|
||||||
large.appendChild(weatherIcon);
|
large.appendChild(weatherIcon);
|
||||||
@ -224,6 +226,7 @@ Module.register("currentweather",{
|
|||||||
temperature.className = "bright";
|
temperature.className = "bright";
|
||||||
temperature.innerHTML = " " + this.temperature.replace(".", this.config.decimalSymbol) + degreeLabel;
|
temperature.innerHTML = " " + this.temperature.replace(".", this.config.decimalSymbol) + degreeLabel;
|
||||||
large.appendChild(temperature);
|
large.appendChild(temperature);
|
||||||
|
}
|
||||||
|
|
||||||
if (this.config.showIndoorTemperature && this.indoorTemperature) {
|
if (this.config.showIndoorTemperature && this.indoorTemperature) {
|
||||||
var indoorIcon = document.createElement("span");
|
var indoorIcon = document.createElement("span");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user