API di WU Hello,
I have a “problem” with WU’s API.
At 3 pm I reach the maximum of requests and they stop until midnight. Looking at the dashboard every 3 minutes updates the data.
I thought it was the cronjob, I took it from 5 to 15 minutes, but equally every 3 minutes the dashboard updates.
I would like to understand if it is possible to increase the data download time bringing it to 10 or 15 minutes so as not to saturate the WU APIs that I can make a maximum of 1500 requests per day.
Ok, lets calculate.
Every 3 minutes => 20 times / hour => 480 accesses / day
Your API-key allows 1500 requests per day.
The forecast runs every 900 seconds, the graphsdata every 1800 seconds or slower.
Normally an average WU-api user does not use 50% of the allowed 1500 request / day.
We ( a few WU-users) calculated/tested this and we lowered the cron-min-time from 300 to 180.
Who is using the other 1000+ accesses, as it is not pwsdashboard, I think.
If it is not you, regenerate your API key and insert into your easyweather settings.
You can always change PWS_load_files.php in line 85 from
Hello Thank you.
I have 5 stations that apply to WU. I am making a weather network of amateur stations in my area. Thank you for the information.
I’ll try to change that parameter on all stations and see if tomorrow I don’t saturate the requests. Thank you again for your help.
As soon as I have updates for the solution I will update you. Michele.
That API allowance was based on the stations owner normal use.
There are not many multiple stations for 1 owner
But there were complaints after the switch to API.
And WU refused to change it to 1500 API-calls station.
It remained 1500 API-calls / account, regardless of the number of stations.
Good morning, I have increased the time and the stations are unhooked at night. As you advised me I am making a WU profile for each station so as not to have problems. Thank you. Michele.