@meteopalermolive :
One can not use https://www.meteopalermolive.it/wxsim_wxall/wxall.plaintext.php
That script can only be run AFTER the settings script.
The program wxsim_wxall/sivu2.php should used as an example to adapt.
Please study the https://www.meteopalermolive.it/wxsim_wxall/README.txt
Also sivu2.php will run into a 500 error
Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error [color=red][b]may be available in the server error log[/b][/color].
[07-Jun-2022 12:09:20 Europe/Helsinki] PHP Warning: file_get_contents(https://api.yr.no/weatherapi/locationforecast/1.9/?lat=60.4202&lon=23.2372): failed to open stream: Operation timed out in /wxsim_wxall/wxall.lastret.php on line 795That [b]api.yr.no[/b] link used is no longer available, it should be replaced with a link to met.no using the 2.0 version. New API documentation at: https://api.met.no/weatherapi/locationforecast/2.0/documentation Example new link: https://api.met.no/weatherapi/locationforecast/2.0/classic?lat=59.93&lon=10.72 this link still returns a xml file, if it is compatible, I do not know. Change line 788 in wxall.lastret.php from ``` $URLS = "https://api.yr.no/weatherapi/locationforecast/1.9/?lat=$lat&lon=$long"; // URL to the ENGLISH page on yr.no where location is ``` to ``` $URLS = 'https://api.met.no/weatherapi/locationforecast/2.0/classic?lat'.$lat.'&lon='.$long; ```
Often there are multiple small problems together, f.i. a setup error and a brand-new PHP version.
- Seems that the webserver used is a windows one, could be the reason.
- Also which PHP version is used? Please test with PHP 5.6 first, the default downloaded scripts will not run with PHP8. With PHP7 it can flood your error log with messages.
There is a similar script which is now PHP8 tested. Check this topic on this forum [color=blue][b]WXSIM “EWN-style” for php8[/b][/color] - The cachefolder on line 27 is wrong, that is still the original line from the download
- The lines with the paths should be changed to:
# Paths
$wxallmainfolder = ''; # Location of 3in1 scripts RELATIVE to page where shown
# Full paths
$wxallmainfolderfull = getcwd().'/'; #'/home/web3/httpdocs/test/wxsim_wxall/';
$plaintextfolderfull = getcwd().'/'; #'/home/web3/httpdocs/test/wxsim_wxall/';
$lastretfile = './lastret.txt';
$plaintextfile = ./plaintext.txt';
IMHO there are far too many possible causes for the not functioning.
Possible solution: meteopalermolive should use a more recent script or a more recent version of this 3in1 script
It took @pwsdashboard a few hours to update the scripts with PHP 5.6 to generate the page in the screenshot.
Knowledgable support-persons do not have a looking glass as fortune tellers have. And neither are they clairvoyant.
It just need enough free time to check for all errors and update the scripts.
Attached a first shot to get them running again with PHP 5.6 and 7. PHP8 needs more time.
[ol]
[li]Make a backup of the wxsim_wxall folder.[/li]
[li]Then replace the three scripts and add the cache folder.[/li][/ol]
@moderators
Maybe this topic could be moved to the WxSIM Display Utilities board: http://discourse.weather-watch.com/c/77
It is all about a very “old” 3in1 WXSIM script. Nothing to do with WXSIM-program itself.
Bill
P.S. “All good things must come to an end” (Poem “Troilus and Criseyde” by Geoffrey Chaucer in the year 1300)
Maybe another programmer can develop a script for WXSIM users?
scripts.zip (26.8 KB)