mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
Correct #2018
Weather forecast need the maxNumberOfDays as argument &cnt=** The minimum is 1 and the maximum is 17.
This commit is contained in:
parent
8a3a4d6fae
commit
457c80fe76
@ -294,6 +294,8 @@ Module.register("weatherforecast", {
|
||||
return;
|
||||
}
|
||||
|
||||
params += "&cnt=" + (((this.config.maxNumberOfDays < 1) || (this.config.maxNumberOfDays > 17)) ? 7 : this.config.maxNumberOfDays);
|
||||
|
||||
params += "&units=" + this.config.units;
|
||||
params += "&lang=" + this.config.lang;
|
||||
params += "&APPID=" + this.config.appid;
|
||||
|
Loading…
x
Reference in New Issue
Block a user