cloudy

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

0 Members and 1 Guest are viewing this topic.

Offline Budgie

  • Martin
  • Global Moderator
  • Posts: 5,576
  • WML Station: WD00934 CWOP: CW7959
  • Isle of Lewis, Scotland
    • Hebrides-Weather
Re: Wxsim 3in1 script
« Reply #75 on: September 05, 2010, 10:32:22 PM »
Henkka,

I found another one tonight: case ($oldicon == "nscttssctlra"): $newicon = "17.png"; break;

Alessandro,

Your WRET settings are fine, the problem is in the wxsim.allinone.settings.php file.
As I posted earlier:
Quote
Open wxsim.allinone.settings.php and go to line 18, it will look something like this:

Code: [Select]
$filea = 'wxsim/plaintext-parser-data.php';
Change is to this:

Code: [Select]
$filea = 'plaintext-parser-data.txt';

Notice that you are changing the file path from a PHP extension to a TXT. Your wxsim.allinone.settings.php still has the PHP extension on the end so it won't find the icons.  :wink:
 

Offline krekel

  • Posts: 488
  • Assen, Netherlands
    • Weerstation Assen
Re: Wxsim 3in1 script
« Reply #76 on: September 06, 2010, 05:31:43 AM »
I still can`t see the tooltip on my site.

This is strange because when you follow this link you can see it:
http://www.weerstation-marsdijk.nl/sivu2.php

But not when you see it on my site:
http://www.weerstation-marsdijk.nl/assen.php

Any ideas how can I solve this?

Oebel

Offline i_fiorentino

  • Alessandro Bardi
  • Posts: 1,500
  • 160 mls Carmignano (Po), Tuscany, Italy
    • Meteocarmignano.it
Re: Wxsim 3in1 script
« Reply #77 on: September 06, 2010, 09:06:08 AM »
Alessandro,
Your WRET settings are fine, the problem is in the wxsim.allinone.settings.php file.
As I posted earlier:
Notice that you are changing the file path from a PHP extension to a TXT. Your wxsim.allinone.settings.php still has the PHP extension on the end so it won't find the icons.  :wink:
 

Oh my god Martin!
Excuse me but i didn't see it before!!
Now it works correctly but i've seen that there are some differences between "old" meteogram and this one.
Look at this: http://www.meteocarmignano.it/wxnewpage.php (new)
and this: http://www.meteocarmignano.it/wxsimforecast.php (old)

Why are there those differences if the two meteograms catches the data at the same file?
Many thanks,

Alessandro

P.S.
The Partly cloudy icon (in the night) doesn't show correctly.
Edit 15.47: Is it possibile to insert the time / date when WXSIM update the forecasts? (Like the attachment)

« Last Edit: September 06, 2010, 04:54:15 PM by i_fiorentino »

Offline FORSURH

  • Posts: 163
  • Grootegast,NL
    • Weerstation Grootegast
Re: Wxsim 3in1 script
« Reply #78 on: September 07, 2010, 04:37:55 AM »
Got everything working, but......


lastret.txt is only produced by wxsimif i do a completely manual run.

Steps


I choose -file -retrieve data then close

then a direct run

In automated run it is not refreshed.....


Any ideas?

Greetz,
Wisse

Offline krekel

  • Posts: 488
  • Assen, Netherlands
    • Weerstation Assen
Re: Wxsim 3in1 script
« Reply #79 on: September 07, 2010, 04:58:38 AM »
Goodmorning Wisse, (and Henkka)

I saw this morning that my lastret isn`t refreshed after 5 sept.
So I have same problem.
Before it worked in auto mode for a few days. Now it stopped.
I don`t have time to make a manual run but will try this this afternoon.

I think this is something for Tom to look at? This has not to do with the 3 - in 1  script but with WXSIM.


Oebel
« Last Edit: September 07, 2010, 07:37:01 PM by krekel »

Offline cansics

  • Posts: 177
  • Duggleby - Weather Centre for North Yorkshire
    • Duggleby Weather Station
Missing Meteogram Icon
« Reply #80 on: September 07, 2010, 06:03:41 AM »
What an excellent script - I 'almost' have it working on a testpage too - after re-reading this forum about 1000 times ;-)

I have a missing icon on the meteogram for the first timeslot at the moment, it's an empty dotvoid mini icon - perhaps it's a missing one.

http://www.dugglenet.org/wxsim/sivu2.php

Any assistance would be really appreciated. I have all the paths correct etc otherwise the rest of it wouldn't work, but this has me stumped.

I see there are posts about missing icons and some debug code but that doesn't seem to work for me here.

Kind Regards, BuB.
Weather Information from Duggleby, Ryedale, North Yorkshire, UK


Offline jwwd

  • WML testers
  • Posts: 3,595
  • Silkeborg, Denmark (56:10:58 N-09:30:26 E) - Elevation 75,35 meters
    • Weather at Silkeborg, Denmark
Re: Wxsim 3in1 script
« Reply #81 on: September 07, 2010, 06:16:24 AM »
Got everything working, but......


lastret.txt is only produced by wxsimif i do a completely manual run.

Steps


I choose -file -retrieve data then close

then a direct run

In automated run it is not refreshed.....


Any ideas?

Greetz,
Wisse

Hi

lastret.txt is produced when you open wret.exe right after the forecast run.

I have setup my System Scheduler to open wret.exe 1 minute before the WXSIM files are uploaded to my website. Wret.exe close by itself after it has done lastret.txt.

Hope this helps.

Best regards,

Henrik

Offline FORSURH

  • Posts: 163
  • Grootegast,NL
    • Weerstation Grootegast
Re: Wxsim 3in1 script
« Reply #82 on: September 07, 2010, 06:28:50 AM »
Quote
lastret.txt is produced when you open wret.exe right after the forecast run.

I have setup my System Scheduler to open wret.exe 1 minute before the WXSIM files are uploaded to my website. Wret.exe close by itself after it has done lastret.txt.

Hope this helps.


Is that with the windows sceduler?

And can it be done when wxsim runs in auto mode?

Greetz,
Wisse

Offline Labbs

  • Posts: 322
  • Göteborg, Sweden
    • Lokalt Väder
Re: Wxsim 3in1 script
« Reply #83 on: September 07, 2010, 06:29:57 AM »
lastret.txt is produced when you open wret.exe right after the forecast run.

Henrik is correct...

I use an alternative solution. If you don't want to use a scheduler you could also uncheck "ext boot" when doing a normal run in wxsim. I think "Ext boot" tells wxsim that wret.exe will be launched externally. When wxsim comes to an end, click either Refresh or Quit (I think both options will start wret.exe briefly). After doing this enable auto run and wxsim will generate the needed files every time a complete run is finished.

/Labbs
« Last Edit: September 07, 2010, 06:31:38 AM by Labbs »

Offline krekel

  • Posts: 488
  • Assen, Netherlands
    • Weerstation Assen
Re: Wxsim 3in1 script
« Reply #84 on: September 07, 2010, 06:48:42 AM »
Henrik is correct...

I use an alternative solution. If you don't want to use a scheduler you could also uncheck "ext boot" when doing a normal run in wxsim. I think "Ext boot" tells wxsim that wret.exe will be launched externally. When wxsim comes to an end, click either Refresh or Quit (I think both options will start wret.exe briefly). After doing this enable auto run and wxsim will generate the needed files every time a complete run is finished.

/Labbs

Hi Labbs,

aaah, yes, I think this is correct. I checked it because Henkka said to do check Graphic and Extboot.
Before always Wretexe was running automaticly after WXSIM forecast was made.
So I will uncheck it and certainly it`s solved then.

Thanks,

Oebel


Offline jwwd

  • WML testers
  • Posts: 3,595
  • Silkeborg, Denmark (56:10:58 N-09:30:26 E) - Elevation 75,35 meters
    • Weather at Silkeborg, Denmark
Re: Wxsim 3in1 script
« Reply #85 on: September 07, 2010, 07:05:54 AM »
Henrik is correct...

I use an alternative solution. If you don't want to use a scheduler you could also uncheck "ext boot" when doing a normal run in wxsim. I think "Ext boot" tells wxsim that wret.exe will be launched externally. When wxsim comes to an end, click either Refresh or Quit (I think both options will start wret.exe briefly). After doing this enable auto run and wxsim will generate the needed files every time a complete run is finished.

/Labbs

Hi Labbs

Cool - didnt know about that solution. I have now changed my WXSIM setup and stopped my System Scheduler.

Thanks.

Best regards,

Henrik

Offline i_fiorentino

  • Alessandro Bardi
  • Posts: 1,500
  • 160 mls Carmignano (Po), Tuscany, Italy
    • Meteocarmignano.it
Re: Wxsim 3in1 script
« Reply #86 on: September 07, 2010, 02:14:02 PM »
...there are some differences between "old" meteogram and this one.
Look at this: http://www.meteocarmignano.it/wxnewpage.php (new)
and this: http://www.meteocarmignano.it/wxsimforecast.php (old)

Why are there those differences if the two meteograms catches the data at the same file?
Many thanks,

Alessandro

P.S.
The Partly cloudy and light fog (in the night) icons doesn't show in "Forecast details".
Is it possibile to insert the time / date when WXSIM update the forecasts? (Like the attachment)

Any help about this?
Thanks,

Alessandro
« Last Edit: September 07, 2010, 02:28:47 PM by i_fiorentino »

Offline Budgie

  • Martin
  • Global Moderator
  • Posts: 5,576
  • WML Station: WD00934 CWOP: CW7959
  • Isle of Lewis, Scotland
    • Hebrides-Weather
Re: Wxsim 3in1 script
« Reply #87 on: September 07, 2010, 03:29:33 PM »
Is it possible to get more days in de hour-by-hour forecast and the Meteogram?
The detailed forecast displays 7 days.
The Meteogram displays 3 days and the Hour-by-hour displays 4 days.

I would like to display 7 days.

Henkka, I saw that you have this on your site.
How did you manage that?

grtz,
Oebel

Open your WRET program and on the left hand side of the window you should see a box marked "Number of Days", just change this to the number of days you want to display.  :wink:

Any help about this?
Thanks,

Alessandro

These are different scripts so there will be a difference between the old & new versions. If you list what you would like to see in the new version, that's only in the old at the moment, then maybe Henkka can look at adding that in to a future release.  :wink:

To add the missing icons Henkka will need to know what the plaintext parser is giving for the icon name. Then he can include that into the functions page with the other descriptions. Can you add the additional code to the Alt text as Henkka requested so that any missing icons can be identified?
Quote
Debugtext added to to the alt-text for "plaintext-forecast", changed file wxsim.allinone.plaintextparser.php or at line 570 change
Code: [Select]
$WXSIMbic[$i] = "<img src=\"$iconDir$newicon\" alt=\"\" />";to
Code: [Select]
$WXSIMbic[$i] = "<img src=\"$iconDir$newicon\" alt=\"$ic||$WXSIMpop[$i]\" />";That should tell us some more info about the icon hopefully...
« Last Edit: September 07, 2010, 03:33:04 PM by Budgie »

Offline Torjan

  • Posts: 118
  • vantage pro2 plus
  • Randaberg. Norway
    • Regnskvett verstasjon
Re: Wxsim 3in1 script
« Reply #88 on: September 07, 2010, 04:07:32 PM »
hey!
This was a great script. when I put it in my Saratoga page I lose the text in the boxes. http://ryggleet.homeserver.com/verweb/test22.php. It works fine alone http://ryggleet.homeserver.com/verweb/sivu2.php?lang=no

Offline i_fiorentino

  • Alessandro Bardi
  • Posts: 1,500
  • 160 mls Carmignano (Po), Tuscany, Italy
    • Meteocarmignano.it
Re: Wxsim 3in1 script
« Reply #89 on: September 07, 2010, 04:57:43 PM »
Hi Martin,
here i am...: <img src="wxsim/img/dotvoid_frc/" alt="Light Fog"  title="Light Fog"/><br />
This icon doesn't show in the forecast detail.
But there is another one that i'm forgotten.  :(
Regards,

Alessandro