cloudy cloudy

Author Topic: Wxsim 3in1 script  (Read 214160 times)

0 Members and 1 Guest are viewing this topic.

Bashy

  • Guest
Re: Wxsim 3in1 script
« Reply #15 on: September 01, 2010, 08:02:50 PM »
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 ;) lol


Offline jwwd

  • WML testers
  • Posts: 3,704
  • Silkeborg, Denmark (56:10:58 N-09:30:26 E) - Elevation 75,35 meters
    • Weather at Silkeborg, Denmark
Re: Wxsim 3in1 script
« Reply #16 on: September 01, 2010, 08:14:30 PM »
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

Offline weatherc

  • Posts: 1,983
  • Salo, Finland
    • Weatherstation Salo,FI
Re: Wxsim 3in1 script
« Reply #17 on: September 01, 2010, 08:15:31 PM »
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



Bashy

  • Guest
Re: Wxsim 3in1 script
« Reply #18 on: September 01, 2010, 08:22:14 PM »
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('C','mm','mph','hPa');

Offline weatherc

  • Posts: 1,983
  • Salo, Finland
    • Weatherstation Salo,FI
Re: Wxsim 3in1 script
« Reply #19 on: September 01, 2010, 08:29:00 PM »
Great, now its working :)

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

henkka

Bashy

  • Guest
Re: Wxsim 3in1 script
« Reply #20 on: September 01, 2010, 08:40:40 PM »
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 :)

Offline weatherc

  • Posts: 1,983
  • Salo, Finland
    • Weatherstation Salo,FI
Re: Wxsim 3in1 script
« Reply #21 on: September 01, 2010, 08:41:45 PM »
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 ;)

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

Offline Growlingtiger

  • Posts: 17
Re: Wxsim 3in1 script
« Reply #22 on: September 02, 2010, 10:17:17 AM »
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

Offline jwwd

  • WML testers
  • Posts: 3,704
  • Silkeborg, Denmark (56:10:58 N-09:30:26 E) - Elevation 75,35 meters
    • Weather at Silkeborg, Denmark
Re: Wxsim 3in1 script
« Reply #23 on: September 02, 2010, 10:48:24 AM »
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

Offline Growlingtiger

  • Posts: 17
Re: Wxsim 3in1 script
« Reply #24 on: September 02, 2010, 12:26:34 PM »
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

Offline Growlingtiger

  • Posts: 17
Re: Wxsim 3in1 script
« Reply #25 on: September 02, 2010, 01:05:59 PM »
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
« Last Edit: September 02, 2010, 01:09:41 PM by Growlingtiger »

Offline weatherc

  • Posts: 1,983
  • Salo, Finland
    • Weatherstation Salo,FI
Re: Wxsim 3in1 script
« Reply #26 on: September 02, 2010, 02:53:33 PM »
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  :D

Henkka

Bashy

  • Guest
Re: Wxsim 3in1 script
« Reply #27 on: September 02, 2010, 07:45:26 PM »

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

Offline oreitsma

  • Posts: 544
  • Assen, Netherlands
    • Weerstation Assen
Re: Wxsim 3in1 script
« Reply #28 on: September 03, 2010, 02:59:48 PM »
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
« Last Edit: September 03, 2010, 03:28:03 PM by krekel »

Offline oreitsma

  • Posts: 544
  • Assen, Netherlands
    • Weerstation Assen
Re: Wxsim 3in1 script
« Reply #29 on: September 03, 2010, 03:54:46 PM »
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

 

cumulus