Problem 1 previous answer is solved, no errors
Problem 2 from the same answer: and no data at all., is still there. The data.php script does not return any data.
Therefor the javascripts process an empty string and fail with these messages
Uncaught SyntaxError: Unexpected end of JSON input . . . at wxsim_frc_2017.js?2019.01:104
The lines 102 - 104 read
var dpath = ewnpath+"/data.php?wunit="+wiset+"&lang="+lang;
wget([dpath], function(points) {
strData=JSON.parse(points);
What texts did you try / typed in your wxsim/config.php around line 36 for the correct location of the lastret.txt file? I assume you typed either ./lastret.txt or the full link.
$path_to_lastret = "./lastret.txt";
The main problem now is your lastret,txt, it is NOT created at the exact half and exact full hour as it should for this script. This script only uses lines which have :00 for the minutes .
All other lines, in this case all lines, are skipped.
3:02p M.CLOUDY CHNC. DRZ 7,7 7,2 7,7 7,7 5,1 0 33 1 70 97 0,0 1325 1,1 8,0 7,5 0,0 2,4 1006 -1,7 6 0 2019-12-09_14:02_UTC
3:32p M.CLOUDY DRIZZLE 7,7 7,0 7,6 7,6 4,9 225 36 1 73 96 0,0 1324 0,9 7,9 7,5 0,0 3,1 1006 -1,7 7 0 2019-12-09_14:32_UTC
4:02p P.-M.CLD DRIZZLE 7,6 6,8 7,6 7,6 7,5 225 45 1 64 95 0,0 1330 1,1 7,8 7,4 0,0 3,8 1006 -1,3 5 0 2019-12-09_15:02_UTC
You could adapt the settings in the wxsim programs on your PC to generate the files exactly at the hour.
Or adapt your current ./wxsim/data.php script as we need to modify it to process those non-standard times.
You can do it yourself. Find line about 22 which reads
$wxd = file_get_contents($path_to_lastret);
You should add 1 line below so that it reads
$wxd = file_get_contents($path_to_lastret);
$wxd = str_replace (':02',':00',$wxd);
As you do that, and if the file-location is correct, it should produce the output as on the screenshot.
Wim
P.S. The WXSIM output is meant to be looked at (plaintext.txt) and displayed as is or used in EXCEL and those programs for latest.csv or lastret.txt
Not to be processed by other scripts. So it can take some time to get it right. Make a backup of the scripts and make some notes to use when a new version of the script arrives.