Hi all,
my website https://www.sint-katelijne-waver-meteo.be/pwsWD/ is working fine except two things I can’t configure.
In the the jsondata folder, a file earthquakeXX.json is regularly populated. but It needs to be transferred to a eqnotification.txt file? I have a eqnotification.txtrnm file populated. How to get a normal txt file?
Can someone point me in the right direction please?
I’m using php 7.4, data from davis wl apiv2, cumulus extra files.
Thank you!
Hi vanuxem,
. . . . er-meteo.be/pwsWD/PWS_module_test.php
= > Bottom button “Load files”
= = > wait at least 10 seconds
PWS_load_files.php (501) Earthquakes___: time spent: 10.0016 - invalid CURL Connection timed out after 10001 milliseconds https://www.sint-katelijne-waver-meteo.be/pwsWD/PWS_quakes_load.php?json
Your webserver/hosting does not allow || blocks || for whatever reason access to your own website from within your website. The CURL gets a timeout which is set at 10 seconds.
If you test the URL . . . waver-meteo.be/pwsWD/PWS_quakes_load.php?json the data is correctly returned.
Who is your webserver-provider: Maybe you could ask support personel there.
Please post if they do not have a solution, we will find another one.
I attach a correct and latest version of the quaks load file script. Please use that one for the tests.
PWS_quakes_load.php.zip (2.5 KB)
Wim
Thank you Wim,
I use telenet in Belgium.
I had the similar problem with my meteotemplate website
where an ecowitt plugin (for my lightning device) would not update the api.php.
instead of using curl a friend on the forum modified the script with using ‘require’ instead.
I have similar issues with the cumulusutils webpage .
I will make a ticket to telenet asap. but i don’t think they will comply. Probably due to security reasons.
ps: in jsondata i have the same txt rename files for darksky.
and probably the same reason why I cant download charts from WU?
Thanks again!
Hi Wim,
Got message back from Telenet: ‘Wordpress is trying to connect through the loopback, this is not permitted on our shared webhosting due to security reasons’.
As expected 
If there’s a another quick solution, please let me know.
KR
Alex V
Yes,
Solution: use another webserver to get the data from.
For that we have to modify the load-data script.
But I need your e-mail address for that. I do not want to post “1-user-adapted” scripts on the forum.
Often new visitors, with another problem, will copy a test/discontinued scripts months later and run into “strange” errors.
Or sent me a FTP userid and password by mail to weathertemplate (at) gmail.com
You could use a temporary FTP id/password if your provider allows that.
Wim
Hi wim, thanks again, I have sent you an email.
Cheers
Alex