mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 04:02:12 +00:00
Renamed roundTemperature option to roundTemp
Added changelog entry
This commit is contained in:
parent
3c33969d23
commit
32df3e80b1
@ -29,6 +29,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
- Added option `address` to set bind address.
|
- Added option `address` to set bind address.
|
||||||
- Added option `onlyTemp` for currentweather module to show show only current temperature and weather icon.
|
- Added option `onlyTemp` for currentweather module to show show only current temperature and weather icon.
|
||||||
- Added option `remoteFile` to compliments module to load compliment array from filesystem.
|
- Added option `remoteFile` to compliments module to load compliment array from filesystem.
|
||||||
|
- Added option `roundTemp` for currentweather and weatherforecast modules to display temperatures rounded to nearest integer.
|
||||||
|
|
||||||
### Updated
|
### Updated
|
||||||
- Modified translations for Frysk.
|
- Modified translations for Frysk.
|
||||||
|
@ -65,7 +65,7 @@ The following properties can be configured:
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>roundTemperature</code></td>
|
<td><code>roundTemp</code></td>
|
||||||
<td>Round temperature value to nearest integer.<br>
|
<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>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>
|
<br><b>Default value:</b> <code>false</code>
|
||||||
|
@ -15,7 +15,6 @@ Module.register("currentweather",{
|
|||||||
locationID: false,
|
locationID: false,
|
||||||
appid: "",
|
appid: "",
|
||||||
units: config.units,
|
units: config.units,
|
||||||
roundTemperature: false,
|
|
||||||
updateInterval: 10 * 60 * 1000, // every 10 minutes
|
updateInterval: 10 * 60 * 1000, // every 10 minutes
|
||||||
animationSpeed: 1000,
|
animationSpeed: 1000,
|
||||||
timeFormat: config.timeFormat,
|
timeFormat: config.timeFormat,
|
||||||
@ -37,6 +36,7 @@ Module.register("currentweather",{
|
|||||||
calendarClass: "calendar",
|
calendarClass: "calendar",
|
||||||
|
|
||||||
onlyTemp: false,
|
onlyTemp: false,
|
||||||
|
roundTemp: false,
|
||||||
|
|
||||||
iconTable: {
|
iconTable: {
|
||||||
"01d": "wi-day-sunny",
|
"01d": "wi-day-sunny",
|
||||||
@ -183,7 +183,7 @@ Module.register("currentweather",{
|
|||||||
large.appendChild(weatherIcon);
|
large.appendChild(weatherIcon);
|
||||||
|
|
||||||
var temp = this.temperature;
|
var temp = this.temperature;
|
||||||
if (this.config.roundTemperature) {
|
if (this.config.roundTemp) {
|
||||||
temp = Math.round(temp);
|
temp = Math.round(temp);
|
||||||
}
|
}
|
||||||
var temperature = document.createElement("span");
|
var temperature = document.createElement("span");
|
||||||
|
@ -65,7 +65,7 @@ The following properties can be configured:
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>roundTemperature</code></td>
|
<td><code>roundTemp</code></td>
|
||||||
<td>Round temperature values to nearest integer.<br>
|
<td>Round temperature values 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>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>
|
<br><b>Default value:</b> <code>false</code>
|
||||||
|
@ -15,7 +15,6 @@ Module.register("weatherforecast",{
|
|||||||
locationID: false,
|
locationID: false,
|
||||||
appid: "",
|
appid: "",
|
||||||
units: config.units,
|
units: config.units,
|
||||||
roundTemperature: false,
|
|
||||||
maxNumberOfDays: 7,
|
maxNumberOfDays: 7,
|
||||||
showRainAmount: false,
|
showRainAmount: false,
|
||||||
updateInterval: 10 * 60 * 1000, // every 10 minutes
|
updateInterval: 10 * 60 * 1000, // every 10 minutes
|
||||||
@ -35,6 +34,8 @@ Module.register("weatherforecast",{
|
|||||||
appendLocationNameToHeader: true,
|
appendLocationNameToHeader: true,
|
||||||
calendarClass: "calendar",
|
calendarClass: "calendar",
|
||||||
|
|
||||||
|
roundTemp: false,
|
||||||
|
|
||||||
iconTable: {
|
iconTable: {
|
||||||
"01d": "wi-day-sunny",
|
"01d": "wi-day-sunny",
|
||||||
"02d": "wi-day-cloudy",
|
"02d": "wi-day-cloudy",
|
||||||
@ -136,7 +137,7 @@ Module.register("weatherforecast",{
|
|||||||
|
|
||||||
var maxTemp = forecast.maxTemp;
|
var maxTemp = forecast.maxTemp;
|
||||||
var minTemp = forecast.minTemp;
|
var minTemp = forecast.minTemp;
|
||||||
if (this.config.roundTemperature) {
|
if (this.config.roundTemp) {
|
||||||
maxTemp = Math.round(maxTemp);
|
maxTemp = Math.round(maxTemp);
|
||||||
minTemp = Math.round(minTemp);
|
minTemp = Math.round(minTemp);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user