mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
Renamed roundTemperature option to roundTemp
Added changelog entry
This commit is contained in:
@@ -65,7 +65,7 @@ The following properties can be configured:
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>roundTemperature</code></td>
|
||||
<td><code>roundTemp</code></td>
|
||||
<td>Round temperature value to nearest integer.<br>
|
||||
<br><b>Possible values:</b> <code>true</code> (round to integer) or <code>false</code> (display exact value with decimal point)
|
||||
<br><b>Default value:</b> <code>false</code>
|
||||
|
@@ -15,7 +15,6 @@ Module.register("currentweather",{
|
||||
locationID: false,
|
||||
appid: "",
|
||||
units: config.units,
|
||||
roundTemperature: false,
|
||||
updateInterval: 10 * 60 * 1000, // every 10 minutes
|
||||
animationSpeed: 1000,
|
||||
timeFormat: config.timeFormat,
|
||||
@@ -37,7 +36,8 @@ Module.register("currentweather",{
|
||||
calendarClass: "calendar",
|
||||
|
||||
onlyTemp: false,
|
||||
|
||||
roundTemp: false,
|
||||
|
||||
iconTable: {
|
||||
"01d": "wi-day-sunny",
|
||||
"02d": "wi-day-cloudy",
|
||||
@@ -183,7 +183,7 @@ Module.register("currentweather",{
|
||||
large.appendChild(weatherIcon);
|
||||
|
||||
var temp = this.temperature;
|
||||
if (this.config.roundTemperature) {
|
||||
if (this.config.roundTemp) {
|
||||
temp = Math.round(temp);
|
||||
}
|
||||
var temperature = document.createElement("span");
|
||||
|
Reference in New Issue
Block a user