Thanks for updating this script! Although it’s working, I get multiple warnings like this: Warning : Undefined variable $noprectxt in /home/meteothes/public_html/wxsim_wxall_new/wxall.plaintext.php on line 204
Warning : Undefined variable $noprectxt in /home/meteothes/public_html/wxsim_wxall_new/wxall.plaintext.php on line 205
The warnings disappear after updating line 28 in sivu2.php, but after inserting in line 190 the code that you provided in wxall.plaintext.php, I get this Fatal Error:
Fatal error : Uncaught Error: Undefined constant “��” in /home/meteothes/public_html/wxsim_wxall_new/wxall.plaintext.php:190 Stack trace: #0 /home/meteothes/public_html/wxsim_wxall_new/wxall.settings.php(94): include() #1 /home/meteothes/public_html/wxsim_wxall_new/sivu2.php(35): include(‘…’) #2 {main} thrown in /home/meteothes/public_html/wxsim_wxall_new/wxall.plaintext.php on line 190
Hi Wim
Thanks for updating this, I have installed it and it works fine but for some reason I get some error messages as the attached image shows.
Do you know what this could be caused by?
Sorry, I was not specific enough.
There are 10 blocks of text in plaintext.txt
The icons, temp, wind a.s.o. are shown in the top-row.
Yesterday the information for svenni.no (Moss) in plaintext.txt was not complete. So the last part in the top-row was “empty”
And with error reporting “on” the messages appeared.
When switching off error-reporting there still is an empty part on the right.
If this happens more often, one better set the line to a lower value.
$topfrcam = 10; # How many forecasts do we show in "top-forecast"? Max = forecasts in plaintext.txt
Attached screenshot shows early in the day a plaintext.txt with 10 blocks of text for 5 days
Later in the day there are only 9 blocks of text for 5 days.
Is there a max 5 day forecast version?
If not better generate a 6 day forecast when using these old wxsim-scripts
Checked the settings in “wxsim” and in “Parameters - Numbers of day” and it was at 5 and I set it to 6 and ran “wxsim”, and when I set $topfrcam back to 10 it is displayed correctly now.