API WU - offline 3pm

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.

Thank you for your help, Michele.

A link to your website would be extremely helpful.

Wim

1 Like

Hi

As you can see now everything is offline.

while on the WU website it is online.

Thank you

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. :face_with_raised_eyebrow:

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

            $cron_min_time  = 180;

to

            $cron_min_time  = 600;

Success and thanks for using pwsdashboard.
Wim

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.

But every station should have its own API-key.
You should separate them as much as possible, different owner, different e-mail and so on.

The API-key access allowance is meant to be used by 1 station.

Wim

Ok thanks,
I thought that being the usual owner of several stations you could use the usual account T
hank you again.
Michaele

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.

Wim

1 Like

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.