Wxsim 3in1 script

When look at your page now (and with same list of notices at jwwd’s page) seem i will add a setting what force php-errornotices to off in the script, that way we get ride off the them at least.

Bashy, add

<?php
error_reporting(0);
?>

to top of that page and it will fix those.

Then, check the paths to the js-files, seems it did not find them (therefore no tabs), in the code you copied from sivu2.php but also in the settings-file.

Bashy, did it showed up finnish translation for you as default? 8O

henkka

Hi Henkka, I will add that now, Yeah i chose en in the settings and thats whats showing now…

Just added that bit of error code and it through up a 2 more with regards to the style switcher
that i dont use…?

language…

ahh, now i see the problem…
in almost beginning of xx.plaintextparser.php are theese 2 lines:

$lang = $_GET['lang'];
if ($_GET[lang] == "") { $lang ="fi"; }

delete them, have forgot them from my own setup/code, will update zip now.

henkka

EDIT: zip updated, also added the errorreporting to off-thing.

Hi Henkka

Thats cured the language side of it thank you… still gettting langaue errors though and i think theres
been a needle found in the haystack, whatever that means pmsl…

Got fixed the issue with the paths on line 75-80 in xx.plaintextparser.php, are now in the settingsfile for easier setup (you still need to check the 2 paths ate top of that file tought).

henkka

Bashy,

Add that errorreporting(0); to the top of page too :wink:
Check the path to js-files, add a slash to $jsfile-settings (is “jquery” not “jquery/”?) as i saw it pushed out paths w/o that, also upload the jquery-files to that folder, seemed missing :wink:

henkka

OK, Error reporting added back in, i took it back out cause of the theme switcher error (i dont use it)

The files are in the jquery folder, e.g. public_html/wxsim/jquery

I have the jquery setting as

// jQuerydir-path
$jsdir = “jquery”; // js-folder

OK, Error reporting added back in, i took it back out cause of the theme switcher error (i dont use it)
Aah, ok.

jQuery’s…
Try to set to

$jsdir = "wxsim/jquery/";                           // js-folder

also the slash at the end

henkka

Ok this is strange, just added

$jsdir = “wxsim/jquery/”; // js-folder

and its still not right, just checked the sivu2.php as a test and thats showing the same,
see, i told you i wanted to be 1st that breaks it :wink: lol

Hi Henkka

Got it working:

www.silkeborg-vejret.dk/wxsim_allinone.php

Thank you very much for this great script. It has been a pleassure (as always) helping you testing.

Best regards,

Henrik

Just looked at your source-code, js-files are found ok, so also css-file.
But for some strange reason are the wind-dirs in charcters not numeric like this:
dirdata: [E,SSE,SSE,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,E,ESE,ESE,ESE,ESE,ESE,ESE,ESE,ESE,ESE,E],
Can you check they are numeric in lastret.txt? as they should be readed in “as they are” and that was the first error what FF’s errorconsole picked up for me.

henkka

I just changed it back to numeric, i prefer N E S W numbers confuse me lol its changed and uploaded as numeric now

I also changed from m/s to mph in the settings file but i aint sure if that was the correct place as its
still in m/s?

$uoms = array(’

Great, now its working :slight_smile:

The “m/s”-issue…
Aah… i see know forgot to add those, they are hardcoded to m/s #-o
Will fix that.

henkka

ok m8 no worries, Im going to call it a night, have to be up early tomoz, I will pick up on tomorrow
night, thanks for your help this evening, tis a great script, well done :slight_smile:

Fixed and zip updated.

changed files:
wxsim.allinone.plaintextparser.php
wxsim.allinone.lastretparser.php
jquery.wxsim.allinone.js

It now grabs it directly from plaintext.txt-file like plaintextparser “the orginal” do :wink:

Also added to sivu2.php a fix what hopefully fix that the tabs sometimes drops down below left sidebar (covered whole thing inside a table)

henkka

Hi,

Great script , it looks amazing.

I’m in need of some help however if I could be pointed in the right direction please to fix the following.

I have the script setup at http://www.hayesweatherstation.info/sivu2.php

Detailed forecast is fine but hour by hour and meteogram are not showing data. Is there something i’ve missed?

Thanks

Gray

Hi Gray

Where is your lastret.txt located? I think the meteogram and hour-by-hour use the data from lastret.txt. Detailed forecast use your plaintext.txt.

Check the paths for lastret.txt in the settings file.

Best regards,

Henrik

Hi Henrik,

Thankyou for the pointer everything is working now.
However it turns out that my paths in the end were ok but my lastret.txt is corrupt.
I borrowed another lastret.txt and it fired up ok so I need to go back and see how my text file differs from the working copy.

Many thanks for the reply this was the pointer I needed to track down the issue

Kind Regards
Gray

Hi,

I,ve compared my lastret.txt with a working copy and I can see some differences such as decimal points and commas for temperature results.

Could someone please cast an eye over my non working version

http://hayesweatherstation.info/weatherdisplay/wxsim/lastretold.txt

For the script it should not matter are commas or points in use as it convert all commas to points anyway when it loop trought the file :smiley:

Henkka