EWN 3in1 weird issue

I’ve had this issue for ages, but it only occurs if I do a manual forecast.

WXSIM uploads my forecasts at 02:15, 06:15, 10:15, 14:15, 18:15 and 22:15 each day, the script never has any issues. However, if I run a manual forecast at any time of the day, it won’t read the lastret.txt.

It’s something to do with the timestamp on each line in the lastret.txt. If the timestamp in lastret.txt is like this: 12:00am, 12:30am, 1:00am, 1:30am then there’s no issue. (automated forecast)

If the timestamp is like this:
12:46am, 1:16am, 1:46am, then the script won’t show the lastret details. (manual forecast)

Not sure what’s going on, but I’d like to solve it. :smile:

Can you post the actual error message you get and a copy of the offending lastret.txt please?

Stuart

If you press F12, you’ll see them in the console.

https://warehamwx.co.uk/lastret.txt

I’ve just had a look at my latest (automated version) and compared it to the link above; Apart from the timestamps, I don’t see any differences.

Very perculiar!

The original NordicWeather “EWN” scripts only use the “full hour” lines from the lastret.txt
All other lines are skipped as there would be to much information in the graphs and detailed lines.

Also other authors of wxsim “3in1” scripts do the same when reading lastret.txt or latest.csv

You could add some code to check the “closest” to zero hourly offset of the first so many lines.
And use that offset to adjust the time-stamp of the lines.

I am not familiar with this customised version of a WXSIM script from [email protected].
Just check around lines 107 in . ./ewn-wxsim-old/wxall.lastret.php where the selection is made by checking if date(“Hi”) equals “0000”

Succes,
Wim