-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weather forecast ignores "maxNumberOfDays" #2018
Comments
Please send a PR. Thanks! |
|
Maybe add a "Good first bug" to this Issue so people who want to start helping can fix it? Otherwise I will do it sooner than later ;-) |
I the documentation it said:
I think only a limit of 16 would be nice. |
and more importantly, can you GET a forecast from any api for more that 15 days? |
Well I can make it work up to 17 after there is no answer. |
Weather forecast need the maxNumberOfDays as argument &cnt=** The minimum is 1 and the maximum is 17.
I wanted to add a comment here that this issue is not actually "fixed" as the new version now reverts forecasts back to showing only two days (at least when using the Free API). In doing some research, it appears that the actual URL being used to retrieve the forecast is not the correct / current one. From what I can tell, the base URL is being built out as:
According to the API docs, it should be built out as:
|
Hi there,
currently the config parameter "maxNumberOfDays" of the module "weatherforecast" seems to be ignored - at least it does not work increasing it to more than 7 days. That is because the API needs an additional parameter "cnt", which indicates how many days are to be retrieved. Adding it to the weatherforecast.js in line 305 solves the issue for me:
params += "&cnt=" + this.config.maxNumberOfDays;
Best regards,
Mirko
The text was updated successfully, but these errors were encountered: