mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
Moved misplaced method signature
This commit is contained in:
@@ -386,14 +386,6 @@ Module.register("currentweather",{
|
|||||||
return 12;
|
return 12;
|
||||||
},
|
},
|
||||||
|
|
||||||
/* function(temperature)
|
|
||||||
* Rounds a temperature to 1 decimal.
|
|
||||||
*
|
|
||||||
* argument temperature number - Temperature.
|
|
||||||
*
|
|
||||||
* return number - Rounded Temperature.
|
|
||||||
*/
|
|
||||||
|
|
||||||
deg2Cardinal: function(deg) {
|
deg2Cardinal: function(deg) {
|
||||||
if (deg>11.25 && deg<=33.75){
|
if (deg>11.25 && deg<=33.75){
|
||||||
return "NNE";
|
return "NNE";
|
||||||
@@ -430,7 +422,13 @@ Module.register("currentweather",{
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/* function(temperature)
|
||||||
|
* Rounds a temperature to 1 decimal.
|
||||||
|
*
|
||||||
|
* argument temperature number - Temperature.
|
||||||
|
*
|
||||||
|
* return number - Rounded Temperature.
|
||||||
|
*/
|
||||||
roundValue: function(temperature) {
|
roundValue: function(temperature) {
|
||||||
var decimals = this.config.roundTemp ? 0 : 1;
|
var decimals = this.config.roundTemp ? 0 : 1;
|
||||||
return parseFloat(temperature).toFixed(decimals);
|
return parseFloat(temperature).toFixed(decimals);
|
||||||
|
Reference in New Issue
Block a user