Wxsim 3in1 script

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

Hi Hennka

Sadly im still struggling, I have used your updated files but for some unknown (to me) reason the weather icons
are not working for me this time lol

Heres what i have in the settings file…

// Icondir-paths (Yeah, we have 5 sets of them :D)
$iconDir =‘wxsim/img/dotvoid_frc/’; // Dotvoid icons
$iconDirb = ‘wxsim/img/dotvoid_mini/’; // Dotvoid mini
$bignumbdir = “wxsim/img/bignumb/”; // colorized numbers
$windarrows = “wxsim/img/arrows/”; // windarrows
$uvimg = “wxsim/img/UV_icons/”; // UV-icons

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

// Other paths
$pathtolsparser = ‘wxsim/wxsim.allinone.lastretparser.php’;
$lastretfile = “./lastret.txt”;
$plaintextFile = ‘./plaintext.txt’; // location of the WXSIM plaintext.txt
$filea = ‘wxsim/plaintext-parser-data.php’;
$fileb = ‘wxsim/plaintext-parser-lang-’.$lang.‘.txt’; // just change the path, language are detetcred auto

Hi all,

Nearly done, but condition icons aren`t there.
See: http://www.weerstation-marsdijk.nl/sivu2.php

Also I changed language in ‘nl’ but it isn`t translated.
Does it use they “old” “plaintext-parser-lang-nl.txt” file or do I have to translate everything again?

Any ideas or tips?

regards,
Oebel

Hello,

First part is solved. All icons are where they belong.

Only a question now about the translation. How is this simple to do?

Regards,
Oebel

Hi,

Only a question now about the translation. How is this simple to do?

So long you have the path to plaintext-parser-lang-nl.txt correct it should use it directly, that was whole idea with the script, less translation-files. Note tought to add the new words from plaintext.lang.txt to it. Even if tryed to get all from old langfile it needed a few new words added to work smoothly :slight_smile:

Bashy,
humm…Have you checked the paths are correct? (ie. it looks for a icon what really exsists)

henkka

Hi Henkka
i try to run the perfect script - very good job.
But the script does not work correctly on my site.
I am not able to find the cause.
I see a message at the top of the page that is a problem with java.
But I do not know how to solve the problem.
I do not know if all of the error is associated with this message.
Maybe you have some hint
http://www.andretti.pl/wxsim_forecast.php
or
http://www.andretti.pl/sivu2.php
thanks
andretti

Edit:
the java error on my page say:
JAVASCRIPT STARTUP ERRORS
am is undefined at line number 8 in http://www.andretti.pl/wxsim_allinone/jquery/jquery.wxsim.flot.js
… please inform your webmaster.

Hi Hennka

The paths appear to be correct,

// Icondir-paths (Yeah, we have 5 sets of them :D)
$iconDir =‘wxsim/img/dotvoid_frc/’; // Dotvoid icons
$iconDirb = ‘wxsim/img/dotvoid_mini/’; // Dotvoid mini
$bignumbdir = “wxsim/img/bignumb/”; // colorized numbers
$windarrows = “wxsim/img/arrows/”; // windarrows
$uvimg = “wxsim/img/UV_icons/”; // UV-icons

All the other icons work apart from the conditions icon/s

Andretti

In the settings file, do you have this path correct

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

I think yours should be as i have put above?

Hi Simon
I think that is good. Since all files are in subdirectory “wxsim_allinone” not “wxsim”

here my settings:

// Icondir-paths (Yeah, we have 5 sets of them :D)
$iconDir ='wxsim_allinone/img/dotvoid_frc/';           // Dotvoid icons
$iconDirb = 'wxsim_allinone/img/dotvoid_mini/';        // Dotvoid mini
$bignumbdir = "wxsim_allinone/img/bignumb/";           // colorized numbers
$windarrows = "wxsim_allinone/img/arrows/";            // windarrows
$uvimg = "wxsim_allinone/img/UV_icons/";               // UV-icons

// jQuerydir-path
$jsdir = "wxsim_allinone/jquery/";                           // js-folder

// Other paths
$pathtolsparser = 'wxsim_allinone/wxsim.allinone.lastretparser.php';
$lastretfile = "lastret.txt";
$plaintextFile = 'plaintext.txt';       // location of the WXSIM plaintext.txt
$filea = 'plaintext-parser-data.txt';
$fileb = 'plaintext-parser-lang-'.$lang.'.txt';  // just change the path, language are detetcred auto

andretti

Andretti,

Check the path to lastret.txt as in source-code are no data in the arrays from that:

<script type="text/javascript">
var wxsimdata = {
tempdata: [],
precdata: [],
dewdata: [],
chilldata: [],
heatdata: [],
winddata: [],
dirdata: [],
uvdata: [],
kidata: []
}

Theese should be full of data. I think, not sure tought, the javascript fails because/when there are no data there. Js can be a bit clunky on that.

henkka

hehe :wink:
What I found to be a problem. The problem to be very trivial.
File lastret.txt not be current, and the date was the September 1.
I probably can not set WXSIM to create this file automatically.
I manually update the file and now everything work. :slight_smile:

But I see a small error. On the charts, after moving the cursor, do not display values. I get a blank label.
Can I fix this? How?

thanks
andretti

To get wxsim to create lastret.txt you need to choose that “Ext Boot”-thingy and at least i had to set up a SS-call what runs WRET before i upload the files. WRET then just starts and automaticly closes itself few seconds later and create the lastret.txt.

For the labels…Humm…
Could it be a css-thingy there? Will add a txt-color the labels and update the zip so we can test, as it seems the texts are defined (the boxes sizes varys) but no text are visible…

Henkka

Henkka,
if you write “SS-call” - you have in mind System Scheduler ?

For the labels …
I noted that work correctly in the file
http://www.andretti.pl/sivu2.php
But I do not work here
http://www.andretti.pl/wxsim_forecast.php?lang=en
And the content is almost the same, the difference is an additional Carterlake template script

andretti

Henkka,

Struggeling with the tabs and graphs,

See link:

http://www.weerstation-grootegast.nl/sivu2.php

What am i doing wrong?

Greetz,

Wisse

Hi Wisse, it will be the path to the jquery folder incorrect i think…