Download the PHP scripts to turn your plain text WX-SIM forecast into a colorful graphical forecast table:
Donations will be accepted. Support requests can be posted here for the upcoming week (through 1/7/07).
Best wishes,
Jordan
Download the PHP scripts to turn your plain text WX-SIM forecast into a colorful graphical forecast table:
Donations will be accepted. Support requests can be posted here for the upcoming week (through 1/7/07).
Best wishes,
Jordan
You might consider including the instructions from the web page in the zip file for the scripts.
Hi
Im very happy for your script - but I have some problems getting it to work correctly - see this link:
http://www.buskelundtoften.dk/1/vejret/hjemmeside/vejrudsigt/vejrudsigt.php
I attach my plaintext.txt file
Here is the beginning of the wsofd.php:
<?php ##################################### ########## CONFIGURATION ########## ##################################### # Server location of plain text forecast $slplaintxt = "../../plaintext.txt"; # Server location of weather type file $slwxtypdat = "wxtypedata.txt"; # Web location of forecast images directory $imglnkloc = "http://www.buskelundtoften.dk/1/vejret/hjemmeside/vejrudsigt/images/"; # Extension of all image files in directory $imglnktyp = ".png"; # Desired height and width of forecast images $imgheight = 60; $imgwidth = 60; # Table background for images $imgbackg = "#ffffff"; --- [plaintext.txt|attachment](upload://oDv58oehgfq6wgf3IRaSj6c9x3X.txt) (4.06 KB)Is this is the plaintext file URL http://www.buskelundtoften.dk/1/vejret/plaintext.txt?
Yes - that is correct
I am guessing that this will not work with PHP 4.3? This is what e-rice is using and is what many weather web sites are using as a host.
You could be right, the webpage does say “Requirements: A web server with PHP 5.0 or greater installed” #-o
Hi
My webhost do have PHP5 and if i use this link:
http://www.buskelundtoften.dk/1/vejret/hjemmeside/vejrudsigt/vejrudsigt.php
I get only the headlines of day 1 in the forecast. A lot is missing.
Silly me, I didn’t notice the 5.0 requirement either before I sent the PayPal. That’s OK because I’m having some trouble getting a good WxSim forecast due to WD logfile problems right now anyway.
Maybe we can get Jordan to “downgrade” it to 4.3, or else I guess I’ll just have to figure that out. Can’t golf this time of year anyway.
Running PHP 5.0.4 here and having the same problem. Glad I haven’t Paypalled yet…
Folks,
I will issue a fix very soon. Not sure the details of the problem. Thank you for your patience.
Jordan
For those of you having trouble:
There were slight adjustments made to the files in scripts.zip. Install that new package.
Obtain Jordan Gerth and see if that displays as it does on my web server, http://www.wiscwx.com/jordan/wsofd/example.php.
If they do not match, let me know what version of PHP you have, and I will look into that. I do not see why those of you with PHP4 should have any trouble; I do not believe I used any complex functions here.
I will not accept any PayPal donations until this issue is resolved.
Jordan
Jordan,
I keep getting “Warning: strpos(): Empty delimiter. in /virtual/users/e14335-14533/web/wsofd.php on line 138”. I believe it’s because the last element in $wxtype is nil. There may be something else, but that’s as far as I’ve been so far. I don’t think this is a PHP version issue. - Jim
Oops, I see you were busy while I was typing. Will install and check it out now.
Nope, you can see what I get at http://jcweather.us/example.php and if you need it you can grab my plaintext.txt at the same place.
Hi
Im sorry to tell you, that it still dont work - see this link: http://www.buskelundtoften.dk/1/vejret/hjemmeside/vejrudsigt/example.php
I attach my wsofd.php file as a txt file because this forum wont allow me to attach php files.
wsofd.txt (5.96 KB)
To complicate things further, a test on a PHP 4.3.8 was successful. I will first try to redo the foreach loop into a regular for loop. I believe this is causing some headaches.
Jordan
Forgot to tell, that the example link to your site is working ok at my computer (Jordan Gerth)
A new copy of wsofd.php is available in a new Jordan Gerth to remove the foreach loops and replace them with for loops, along with a few other minor changes. I appreciate the help since I am combatting this problem blindly. No changes to the other files.
Jordan
Its still the same…http://www.buskelundtoften.dk/1/vejret/hjemmeside/vejrudsigt/example.php
I’ll try to dig deeper. Give me some time.
Jordan
Hi Jordan
Its ok - i appreciate your work.
Take care
Jesper