Henkka, I tried to run data.php directly and that gives the same messages. In addition it produced a lot of output. I include a screen shot.
Runar,
You need to get data.php output to be cleaned out of the notices => so only the JSON are there.
Check that error_reporting is set to 0 in both plaintext.php and lastret.php. If its so but they still shows up, then ask your provider why error_report(0); do no affect.
Zip updated.
- Applied the moonphase-fix from hrvistaweather (let me know how it works ;))
- Fix for graph rainscale when inch shown. Minrange set to 0.5 while its 5 for mm.
- Fix for sun/moon-times when no *-set/rise
- Fix for bft in tooltip when input-data other than m/s
Hi
I finally got it showing something but the low temps on the top half of screen show as 0 instead of the values in the bottom half of the screen
http://www.hc-iom.co.uk/wxsim2/forecast.php
if there something I have missed
Harold
Hennka,
Latest version working. Rain graph in inches is much better.
Only thing I see is in overview rain still isnât right but rain on table is good.
You can see it here: http://www.shermanctweather.org/ewntest/wxsim/forecast.php
Thanks,
Tom
Henkka,
I have now downloaded your latest version and turned off error reporting. No change
When I only run data.php, what I get is what you see in the attached file.
data.txt (49 KB)
Henkka,
I have one issue and one question after installing the latest update. The issue I have is that the Barometer reading in the Table section shows âhPaâ instead of âinHgâ that I have defined in $uoms.
The question I have has is about the day/date in the carousel. Is there any way to change the format of the date? For example, Monday currently shows as âMonday 27.02â. Iâd prefer this to read âMonday 2/27â or even âMonday, Feb 27â. Is it possible to provide this ability?
Thanks,
Steve
Henkka,
After a lot of tracing I see that it stops with json error 7 from json_encode. I really donât know how to find out what causes itâŚ
Is anyone interested in fixed units (especially the wind)? I modified the script, so that it fits my needs now (also no possibility to change the units) . If Henkka doesn
Possible bug?
With the new version Tom released today, data.php won
I loaded new version of Wxsim and my forecast still works.
Tom
I have tried finding out why it failes, but Iâm not a json experst, so Iâm afraid that I have to give up on this
Hi runarbg,
I would envisage that since the WXSIM upgrade something has changed in your wret.exe
Make sure all your settings are correct, I also noticed that you must not have UV checked in Wret.exe as UV is only displayed in your plaintext.txt on the Overview and not on the Tables which is obtained from Lastret.txt (ex wret.exe) I see many others in the same stateâŚ
Kind Regards,
runarbg,
HmmmâŚwhat PHP-version do have in use?
Make sure all your settings are correct, I also noticed that you must not have UV checked in Wret.exe as UV is only displayed in your plaintext.txt on the Overview and not on the Tables which is obtained from Lastret.txt (ex wret.exe) I see many others in the same state..
The important in parsing lastret.txt are that the header-line are on âcorrect lineâ. The script looks up the needed variable-positions so extra variables in the data should not affect.
It also does not work if I use the files that comes from Henkka with the program?
Iâm using V7.0
I had to go back to php Ver 5.6 from ver.7 to get it working.
Tom
I have just set this up and put it live on my weather site. Thanks Henkka for this. It is great!!
Very easy to set up and it works out of the box.
http://www.brantfordweather.ca/html/kennedy.php
Gary
Hello Henkka,
Iâve tried to install your latest WXSIM script (which looks fabulous!!) on my weather site.
Unfortunately, it doesnât quite work, for some reason only the Overview is populated but no forecast and no other tabs. At first I thought it was my data file, but it doesnât work even with the original distribution. Iâve only changed the two paths in config.php to match my ISP:
$path_to_langfiles = â/home/REDACTED/celinmeteo.com/WXSIM_2017original/lang/â;
$path_to_lastret = â/home/REDACTED/celinmeteo.com/WXSIM_2017original/wxsim/lastret.txtâ;
You can see the script live at http://www.celinmeteo.com/WXSIM_2017original/forecast.php
I would appreciate any help you can provide, thank you very much in advance,
Marian
Hi Marian
Just a comment. On the paths that you show, does it really contain the URL or a username.
I am not sure of the server of the setup that you have.
Here is mine.
/home/brantfordw/public_html/lastret.txt
My lastret file is in the root of the site.
Gary