mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 04:02:12 +00:00
Update currentweather.js
This commit is contained in:
parent
77cb8530e5
commit
8d29bd5c32
@ -19,7 +19,7 @@ Module.register("currentweather",{
|
|||||||
timeFormat: config.timeFormat,
|
timeFormat: config.timeFormat,
|
||||||
showPeriod: true,
|
showPeriod: true,
|
||||||
showPeriodUpper: false,
|
showPeriodUpper: false,
|
||||||
showDirection: false,
|
showDirection: true,
|
||||||
lang: config.language,
|
lang: config.language,
|
||||||
|
|
||||||
initialLoadDelay: 0, // 0 seconds delay
|
initialLoadDelay: 0, // 0 seconds delay
|
||||||
@ -115,9 +115,11 @@ Module.register("currentweather",{
|
|||||||
windSpeed.innerHTML = " " + this.windSpeed;
|
windSpeed.innerHTML = " " + this.windSpeed;
|
||||||
small.appendChild(windSpeed);
|
small.appendChild(windSpeed);
|
||||||
|
|
||||||
|
if (this.showDirection) {
|
||||||
var windDirection = document.createElement("span");
|
var windDirection = document.createElement("span");
|
||||||
windDirection.innerHTML = " " + this.windDirection;
|
windDirection.innerHTML = " " + this.windDirection;
|
||||||
small.appendChild(windDirection);
|
small.appendChild(windDirection);
|
||||||
|
}
|
||||||
|
|
||||||
var spacer = document.createElement("span");
|
var spacer = document.createElement("span");
|
||||||
spacer.innerHTML = " ";
|
spacer.innerHTML = " ";
|
||||||
@ -318,7 +320,7 @@ Module.register("currentweather",{
|
|||||||
}else{
|
}else{
|
||||||
return "N";
|
return "N";
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
|
||||||
|
|
||||||
roundValue: function(temperature) {
|
roundValue: function(temperature) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user