Erratic updating of earthquake file

Have noticed that Isle of Man Home Weather Station (WDapi version) and Isle of Man Home Weather Station (wd version) are having issues updating the earthquake files as if the host server is not able to get the info everything else updates ok
my local unit Isle of Man Home Weather Station (wd version) gets them ok
so not sure whats wrong

Interesting. . . If you sort by time the WDapi version data is way out but the other two are close.

the host server appears to be fast by about 1min according to this Ballaugh Weather - Station Status look at line above components as soon as you refresh the page compared to the update time at top which to me suggest the daily time sync on the server is broken

Would that make a big difference? And it’s only the WDapi, one of the server versions, that’s out a lot. . .

Checks:
The three sites run the same version of the load script → OK
PWS_quakes_load.php|01|2023-10-31

The three sites return correct json data if I run their EQ-loading script
. . /PWS_quakes_load.php?json in a browser

But when running it via the PWS_loadfiles script similar to the cron-job is doing, they often fail.
Error messages:

invalid CURL Connection timed out after 10001 milliseconds 
invalid CURL Failed connect to www.hc-iom.co.uk:443; 
Connection refused https://www.hc-iom.co.uk/pwsWD1/PWS_quakes_load.php?json

The time to (force) load the data from the EQ-server is acceptable, often < 1 second


As the two dashboards pwsWD and pwsWD1 are on the same IP-address maybe the EQ-server blocks the 'to frequent" accesses?

Wim

So that confirms what I suspected
How often is it normally updated and is it possible to change the EQ call to say every 6 hours and the cache file to 6 hours

Maybe you could get the two versions to use the same files?

Step 1 would be to use only one server to load the data.
The pwsWD1 server seems to have the most recent data.

So pwsWD/PWS_load_files.php line 304 change that from

$url  = $this_server.'PWS_quakes_load.php?json'; ##### 2020-12-31

to

$url  = 'https://www.hc-iom.co.uk/pwsWD1/PWS_quakes_load.php?json'; ##### 2025093-15 multi problem

If that does not work we have to use an external server to load the file.

Succes,
Wim

as the most uptodate one was pwsWD when i came to do this i put that line in the pwsWD1 version and change the pwsWD1 to pwsWD in that text so currently pwsWD1 has the modified file but i do not think its working
i have been able to use WD to upload the earthquakeJS.json from my local unit to my main weather data folder hc-iom.co.uk/weather/earthquakeJS.json that happens every half hour, but not sure how to get it seen by the pwsWD’s

Sadly still the same 403 and Connection timed out errors

Step 2:
Change the line 304 of PWS_load_files.php in both www.hc-iom.co.uk/pwsWD1/ and www.hc-iom.co.uk/pwsWD/ to

$url  = 'http://ballaugh.no-ip.biz:59202/pwsWD/PWS_quakes_load.php?json'; ##### 2025093-15 

As that is an external website there should be no timeout.

Succes,
Wim,

ok so step 2 seems to work but will check tomorrow to see if it’s still ok
thanks Wim