But the forecast.php script is absolutely filled with errors,
. . . Not sure why the script is filled with so many errors
First of all, I am not the script writer.
Second these are not [b]errors[/b] but notices, they should be switched off in your webserver by default.
The wxsim script finished all init stuff. => OK
The javascript wxsim_frc_2017.js?2017.03 starts to load the data http://aspgweather.com/townsville/wxsim/v5/wxsim//data.php?wunit=kmh&lang=en => OK
data.php script loads your config.php => OK
Again a few notices, same as with the forecast.php script. => OK, but we should switch off the ânoticeâ reporting also in data.php
The sunmoon.php is loaded and then there is a new error (at least to me):
<b>Parse error</b>: syntax error, unexpected T_OBJECT_OPERATOR in
<b>/home/aspgweat/public_html/townsville/wxsim/v5/wxsim/sunmoon.php</b> on line <b>32</b>
I can not check why this happens as I have no access to the contents of that config.php so please zip it and attach it to your post.
Also this error sometimes occurs when running a old version of PHP, what is your version?
The https://southfranklinweather.com/wxsim/forecast.php displays Updated: 14.03.2017 04:08
That lastret.txt which is used by the script is not yours, it is the test version in the wxsim downloaded folder.
Was meant to be :
The http://aspgweather.com/townsville/wxsim/v5/forecast.php displays Updated: 14.03.2017 04:08
That lastret.txt which is used by the script is not yours, it is the test version in the wxsim downloaded folder.
@BeaumarisWX
Thank you =D>, I adapted the post for that error. I was looking for users in the same region to find the cause of the error. And I left your and mine forecast wide open to compare to the Burdell, QLD one. And then I copied the wrong URL. Must be a very good eyesight, to catch the DST WXSIM errors and this wrong link.
The error must be something with the user settings / location-specific settings as I tested with similar cities/timezones for the east of AU but the error did not occur.
Will wait to see if @dwa128 find time to post the settings.
Spot on! Very hard to find any free time at the moment
Thank you all for the help!
I updated the version of my PHP, and disabled error reporting on the data.php file and everything is now working as I had hoped!
Hi all, @Henkka thanks for the nice script
The following occurs in the table see the column precipitation.
The precipitation value is in some lines with 14 digits after the point see photo. Can I solve it somewhere?
I have problems with this script could you help?
Link forecast.php
www.meteostroncone.info/forecast.php
www.meteostroncone.info/short.php
www.meteostroncone.info/graph.php
Thanke you!!
Hi,
With regards the multiple decimals in âpreâ ((prec)precipitation) on some lines.
It bugged me for ages so found a fix : In âwxsim_frc_2017.jsâ around line (â198â).
Itâs been a while since I have asked the question on this forum.
So you can see that there is ever an answer to your question. :lol:
Fine is it that I get an answer from someone who lives 16.832 km away from me.
Thanks for your help Tony. It works!
Hi I realise this is an old thread, however just curious if anyone else has had this issue and if they may have found a cause or fix.
when âChance of precipitation less than 20 percent. Precipitation mostly less than 2 mm.â the overview (precip) displays as 120% instead of 20%
below : Quote from my plaitext.txt :
Today: Partly cloudy in the morning, becoming mostly sunny in the afternoon. A
slight chance of rain. Windy. High 17. UV index up to 7. Wind west-northwest
around 27 kph, gusting to 51 kph. Chance of precipitation less than 20 percent.
Precipitation mostly less than 2 mm.
I tried to get the Wxsim Ewn Style script to work, but it doesnĂ´t work. It only loads one circle all time.
I tried a few solutions from here, but to no avail. I hope someone can help me?
Hi Wetter-Bu
I looked at your config file
$path_to_langfiles = â/WxsimSkripts/Skript1/wxsim/langâ; should work with= âlang/â;
$path_to_lastret = â/wxsim/lastret.txtâ; the path has to be exact but try= âhttps://www.bĂÂźchelbergwetter.de/wxsim/lastret.txtâ;
but you may need to check the path with your host
mine is âE:/Domains/h/hc-iom.co.uk-10digit number/user/my root folder/weather/lastret.txtâ; this is an internal path
mine did not work with http://www.hc-iom.co.uk/weather/lastret.txt
$path_to_dataphp = â/WxsimSkripts/Skript1/wxsim/â; should work with= âwxsim/â;
$path_to_js = â/WxsimSkripts/Skript1/js/â; should work with= âjs/â;
$path_to_css = â/WxsimSkripts/Skript1/css/â; should work with= âcss/â;
===
The lastret file is not synchronised.
This script only displays the lines of lastret.txt which are âexactlyâ on the hour, your files does not contain any of those lines
Hello everybody,
thank you for your help. I have already adapted some of the paths. The lastret path is right. But I will check it again next weekend with the hardpath.php. The problem with the times in the lastret was also known to me. This is because my meteohub updates the file 22020lg.txt with the data imported from Wxsimate to: 24 and: 53 and therefore only data up to: 21 or 53 is available. This ultimately creates the timestamps in the lastret, which sometimes vary 1-2 minutes. I saw earlier in this topic that I can adjust the timestamps in the script. Problem: the timestamps sometimes vary by 1-2 minutes. Is it possible to adapt the script so that it automatically takes the timestamps that are in the lastret?
And yes the link no longer works, it was only valid for 1 week.
The correct path is essential.
The current path is invalid as the scripts use the same lastret setting for the plaintext.txt file as that should be in the same folder.
And the plaintext data is not displayed either
The problem with the times in the lastret was also known to me. This is because my meteohub updates the file 22020lg.txt with the data imported from Wxsimate to: 24 and: 53 and therefore only data up to: 21 or 53 is available. This ultimately creates the timestamps in the lastret, which sometimes vary 1-2 minutes. I saw earlier in this topic that I can adjust the timestamps in the script. Problem: the timestamps sometimes vary by 1-2 minutes. Is it possible to adapt the script so that it automatically takes the timestamps that are in the lastret?
I attach a version which can cope with all minutes from :50 to :59
Update:
Since Wxsimâs calculation this morning, it has not worked at all and the circle is spinning all the time. The timestamp in lastret has increased by 1 minute. However, I used the modified data.php. Is there still a mistake in it? @Wim
I copied your lastret and plaintext to my MAMP-server.
I used the data php from the previous post which accepts the 50 - 59 minutes
I added your station name to config php
And set the path right
It then works as in the attached screenshot. No problems at all.
As I can not post code anymore on this forum (get a 403 forbidden) i attach a textfile with my settings in config php
When it works with the least amount of changes, then you can start to change other things,