mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-07-03 06:15:59 +00:00
Update jsdocs
This commit is contained in:
parent
a273266e5e
commit
9ee11654a6
@ -232,16 +232,16 @@ WeatherProvider.register("ukmetoffice", {
|
|||||||
return windCardinals.hasOwnProperty(windDirection) ? windCardinals[windDirection] : null;
|
return windCardinals.hasOwnProperty(windDirection) ? windCardinals[windDirection] : null;
|
||||||
},
|
},
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Generates an url with api parameters based on the config.
|
* Generates an url with api parameters based on the config.
|
||||||
*
|
*
|
||||||
* return String - URL params.
|
* @param {string} forecastType daily or 3hourly forecast
|
||||||
|
* @returns {string} url
|
||||||
*/
|
*/
|
||||||
getParams(forecastType) {
|
getParams(forecastType) {
|
||||||
let params = "?";
|
let params = "?";
|
||||||
params += "res=" + forecastType;
|
params += "res=" + forecastType;
|
||||||
params += "&key=" + this.config.apiKey;
|
params += "&key=" + this.config.apiKey;
|
||||||
|
|
||||||
return params;
|
return params;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -13,11 +13,12 @@
|
|||||||
*/
|
*/
|
||||||
class WeatherObject {
|
class WeatherObject {
|
||||||
/**
|
/**
|
||||||
|
* Constructor for a WeatherObject
|
||||||
*
|
*
|
||||||
* @param units
|
* @param {string} units what units to use, "imperial" or "metric"
|
||||||
* @param tempUnits
|
* @param {string} tempUnits what tempunits to use
|
||||||
* @param windUnits
|
* @param {string} windUnits what windunits to use
|
||||||
* @param useKmh
|
* @param {boolean} useKmh use kmh if true, mps if false
|
||||||
*/
|
*/
|
||||||
constructor(units, tempUnits, windUnits, useKmh) {
|
constructor(units, tempUnits, windUnits, useKmh) {
|
||||||
this.units = units;
|
this.units = units;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user