Author Topic: PHP Error's with the Weather Display/PHP/AJAX Template Set  (Read 10957 times)

0 Members and 1 Guest are viewing this topic.

Offline mstan

  • Senior Member
  • **
  • Posts: 54
PHP Error's with the Weather Display/PHP/AJAX Template Set
« on: June 19, 2008, 01:25:10 PM »
Hi, I just installed the Weather Display/PHP/AJAX Website Template Set and have the following errors at the bottom of the page.

I am running a local windows web webserver.

thanks,
Mark


PHP Notice: Undefined index: DOCUMENT_ROOT in C:\Inetpub\wwwroot\wdajaxphp\WD-AJAX-PHP-USA\Settings.php on line 36 PHP Notice: Undefined index: REQUEST_URI in C:\Inetpub\wwwroot\wdajaxphp\WD-AJAX-PHP-USA\Settings.php on line 37 PHP Warning: session_start() [function.session-start]: open(C:\DOCUME~1\Mark\LOCALS~1\Temp\php\session\sess_t4sn2u2l2f94ecj0dkqbov3rb1, O_RDWR) failed: Permission denied (13) in C:\Inetpub\wwwroot\wdajaxphp\WD-AJAX-PHP-USA\include-style-switcher.php on line 46 PHP Notice: Undefined index: SCRIPT_URI in C:\Inetpub\wwwroot\wdajaxphp\WD-AJAX-PHP-USA\include-style-switcher.php on line 323 PHP Notice: Undefined index: SCRIPT_URI in C:\Inetpub\wwwroot\wdajaxphp\WD-AJAX-PHP-USA\include-style-switcher.php on line 325 PHP Notice: Undefined index: SCRIPT_URI in C:\Inetpub\wwwroot\wdajaxphp\WD-AJAX-PHP-USA\include-style-switcher.php on line 323 PHP Notice: Undefined index: SCRIPT_URI in C:\Inetpub\wwwroot\wdajaxphp\WD-AJAX-PHP-USA\include-style-switcher.php on line 325 PHP Notice: Undefined index: SCRIPT_URI in C:\Inetpub\wwwroot\wdajaxphp\WD-AJAX-PHP-USA\include-style-switcher.php on line 323 PHP Notice: Undefined index: SCRIPT_URI in C:\Inetpub\wwwroot\wdajaxphp\WD-AJAX-PHP-USA\include-style-switcher.php on line 325 PHP Notice: Use of undefined constant NAME - assumed 'NAME' in C:\Inetpub\wwwroot\wdajaxphp\WD-AJAX-PHP-USA\flyout-menu.php on line 430 PHP Notice: Use of undefined constant NAME - assumed 'NAME' in C:\Inetpub\wwwroot\wdajaxphp\WD-AJAX-PHP-USA\flyout-menu.php on line 430 PHP Notice: Use of undefined constant NAME - assumed 'NAME' in C:\Inetpub\wwwroot\wdajaxphp\WD-AJAX-PHP-USA\flyout-menu.php on line 430 PHP Notice: Use of undefined constant NAME - assumed 'NAME' in C:\Inetpub\wwwroot\wdajaxphp\WD-AJAX-PHP-USA\flyout-menu.php on line 430 PHP Notice: Use of undefined constant NAME - assumed 'NAME' in C:\Inetpub\wwwroot\wdajaxphp\WD-AJAX-PHP-USA\flyout-menu.php on line 430 PHP Notice: Use of undefined constant NAME - assumed 'NAME' in C:\Inetpub\wwwroot\wdajaxphp\WD-AJAX-PHP-USA\flyout-menu.php on line 430 PHP Notice: Use of undefined constant NAME - assumed 'NAME' in C:\Inetpub\wwwroot\wdajaxphp\WD-AJAX-PHP-USA\flyout-menu.php on line 430 PHP Notice: Use of undefined constant NAME - assumed 'NAME' in C:\Inetpub\wwwroot\wdajaxphp\WD-AJAX-PHP-USA\flyout-menu.php on line 430 PHP Notice: Use of undefined constant NAME - assumed 'NAME' in C:\Inetpub\wwwroot\wdajaxphp\WD-AJAX-PHP-USA\flyout-menu.php on line 430 PHP Notice: Use of undefined constant NAME - assumed 'NAME' in C:\Inetpub\wwwroot\wdajaxphp\WD-AJAX-PHP-USA\flyout-menu.php on line 430 PHP Notice: Use of undefined constant NAME - assumed 'NAME' in C:\Inetpub\wwwroot\wdajaxphp\WD-AJAX-PHP-USA\flyout-menu.php on line 430 PHP Notice: Use of undefined constant NAME - assumed 'NAME' in C:\Inetpub\wwwroot\wdajaxphp\WD-AJAX-PHP-USA\flyout-menu.php on line 430 PHP Notice: Use of undefined constant NAME - assumed 'NAME' in C:\Inetpub\wwwroot\wdajaxphp\WD-AJAX-PHP-USA\flyout-menu.php on line 430 PHP Notice: Use of undefined constant NAME - assumed 'NAME' in C:\Inetpub\wwwroot\wdajaxphp\WD-AJAX-PHP-USA\flyout-menu.php on line 430 PHP Notice: Use of undefined constant NAME - assumed 'NAME' in C:\Inetpub\wwwroot\wdajaxphp\WD-AJAX-PHP-USA\flyout-menu.php on line 430 PHP Warning: Unknown: open(C:\DOCUME~1\Mark\LOCALS~1\Temp\php\session\sess_t4sn2u2l2f94ecj0dkqbov3rb1, O_RDWR) failed: Permission denied (13) in Unknown on line 0 PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\DOCUME~1\Mark\LOCALS~1\Temp\php\session) in Unknown on line 0

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PHP Error's with the Weather Display/PHP/AJAX Template Set
« Reply #1 on: June 19, 2008, 05:08:34 PM »
All the Notice: errata can be suppressed by changing your php.ini to have

Code: [Select]
error_reporting = E_ALL & ~ ( E_NOTICE )
in it, or adding

Code: [Select]
error_reporting(E_ALL ^ E_NOTICE);
to the Settings.php.

Once you've done that, then you'll need to address the Warning: messages like:

Warning: Unknown: open(C:\DOCUME~1\Mark\LOCALS~1\Temp\php\session\sess_t4sn2u2l2f94ecj0dkqbov3rb1, O_RDWR) failed: Permission denied (13) in Unknown on line 0

PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\DOCUME~1\Mark\LOCALS~1\Temp\php\session) in Unknown on line 0

The PHP Session is used to store your preference for screen layout (wide/narrow, color).

Hope this helps...
Best regards,
Ken


Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline mstan

  • Senior Member
  • **
  • Posts: 54
Re: PHP Error's with the Weather Display/PHP/AJAX Template Set
« Reply #2 on: June 19, 2008, 08:19:08 PM »
Ok, I changed my php.ini to include the code you posted.

it was:

error_reporting  =  E_ALL

I changed it to:

error_reporting  =  E_ALL & ~ ( E_NOTICE )

Some of the errors are now gone....what did adding that line do?

Do I still need to change anything in Settings.php?


I still have the following errors:

PHP Warning: session_start() [function.session-start]: open(C:\DOCUME~1\Mark\LOCALS~1\Temp\php\session\sess_t4sn2u2l2f94ecj0dkqbov3rb1, O_RDWR) failed: Permission denied (13) in C:\Inetpub\wwwroot\wdajaxphp\WD-AJAX-PHP-USA\include-style-switcher.php on line 46 PHP Warning: Unknown: open(C:\DOCUME~1\Mark\LOCALS~1\Temp\php\session\sess_t4sn2u2l2f94ecj0dkqbov3rb1, O_RDWR) failed: Permission denied (13) in Unknown on line 0 PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\DOCUME~1\Mark\LOCALS~1\Temp\php\session) in Unknown on line 0

Any ideas?



Thanks for helping!

Mark




Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PHP Error's with the Weather Display/PHP/AJAX Template Set
« Reply #3 on: June 19, 2008, 09:21:48 PM »
No, you don't have to make the change in Settings.php, now that the php.ini change has eliminated the Notice: errors.

You do need to create a directory in C:\DOCUME~1\Mark\LOCALS~1\Temp\php\session\ and give your PHP process permission to create/read/write files there.. then the remaining Warning: errors should disappear.

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline mstan

  • Senior Member
  • **
  • Posts: 54
Re: PHP Error's with the Weather Display/PHP/AJAX Template Set
« Reply #4 on: June 20, 2008, 11:06:11 AM »
Ok,, just to update...php.ini did create the temp dir, but for some reason it would not allow the
session to be written to....not sure why, even after I set it to allow for read and write ect....

So I created a phptempsession dir under the root of my webserver and now their is no problem
the session cookie was written their.

Now the next problem, I uploaded the template set as it was when I dowmloaded from your site,
so it all works just fine, the only problem is how do I get my data in from WD?...I am using a davis
vantage pro along with weather display..I just need to know what files need to be created and
where to put them so the template picks them up...

Thanks Ken,
Mark

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PHP Error's with the Weather Display/PHP/AJAX Template Set
« Reply #5 on: June 20, 2008, 01:08:33 PM »
The templates need three primary files for the weather data (and an assortment of image files on various pages) to work properly.

The testtags.txt and trends-inc.txt files need to be placed in your c:\wdisplay\webfiles directory, and WD set up to upload them as testtags.php and trends-inc.html (respectively).  There is a WD config instructions in the WD-webfiles directory in the distribution .zip on how to do that.

The other file is clientraw.txt for the AJAX part of the website (used on all pages).  Use the WD Control Panel, WebFiles/Web Page/Real time FTP, Real time client FTP TAB to set that up.  I use 5 second delay between uploads, and have 'Rename the file as a temporary file' set on mine.

Hope this helps...
Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline mstan

  • Senior Member
  • **
  • Posts: 54
Re: PHP Error's with the Weather Display/PHP/AJAX Template Set
« Reply #6 on: June 20, 2008, 01:23:20 PM »
Ok, I am working on this now.

Remember I am hosting this myself so i don't need to upoad anything
to the server, how does this happen in WD?

What are the three primary files needed?...and where do I need to put them? Do i still need to upload?

I am just using the clientraw.txt supplied.

thanks,
Mark

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PHP Error's with the Weather Display/PHP/AJAX Template Set
« Reply #7 on: June 20, 2008, 01:35:50 PM »
You haven't said how your own hosting is set up.  You should have a primary directory on your webserver designated for your HTML/PHP pages, and there, you should have unpacked the template set (maintaining the relative directory structure).  You should also unpack the Carterlake icons set into /forecast/images on your webserver (needed for the forecast stuff).

WD will create (when you've set it up) the testtags.php and trends-inc.html in your c:\wdisplay\webfiles directory .. you'll need to have them placed in the same directory that holds the PHP template files on your webserver.  WD can do the copy or 'publish to a directory' for you.  For the clientraw.txt, you can have it copy to your webservers document root directory also. 

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline mstan

  • Senior Member
  • **
  • Posts: 54
Re: PHP Error's with the Weather Display/PHP/AJAX Template Set
« Reply #8 on: June 20, 2008, 03:44:09 PM »
Ok,  I'm back....

Now I have all the 3 files updating in the webserver correctly, clientraw.txt, every 5 sec and testtags.php and  trends-inc.html every min.

But it's still not showing current info, still the default as when I downloaded it.

Is their some other config file I need to change?

Thanks
Mark

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PHP Error's with the Weather Display/PHP/AJAX Template Set
« Reply #9 on: June 20, 2008, 04:31:04 PM »
Are all three files (clientraw.txt, testtags.php, trends-inc.html) in the same directory on the website as the wx*.php pages for the template?  If not, you'll need to change the Settings.php to point to the testags.php, the wxtrends.php page to include the trends-inc.html page, and the ajaxWDwx.js to point to the clientraw.txt.

If all the files are in the document root of your website, then no other configuration is needed.  If you installed it as a subdirectory to the document root, then you need to make the changes listed above.

It's really difficult to diagnose the issues when I can't see the actual website.

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline mstan

  • Senior Member
  • **
  • Posts: 54
Re: PHP Error's with the Weather Display/PHP/AJAX Template Set
« Reply #10 on: June 20, 2008, 05:27:03 PM »
Ok, I got it working, it was the testtags.php, I put testtags.txt in both fields.

The clientraw is updating every 5 secs as it should.

So the counter on the page just keeps counting until I refresh the page. I thought it would restart after 5 secs.
and my next update shows 4:00pm when it's already after 7PM.

So now my only problem is I thought the two files testags.php and trends-inc.html were updating every min but their not, where do you setup the upload times?....and how often....I am really not uploading the file but I need to update it in the webserver dir.

I have another question....once I get it all working....how do I remove the maps at the top of the screen and make
them a menu selection on the left?  They seem to make the whole page very sluggish, at least I think it's the maps.

Thanks,
Mark
« Last Edit: June 20, 2008, 07:10:43 PM by mstan »

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PHP Error's with the Weather Display/PHP/AJAX Template Set
« Reply #11 on: June 20, 2008, 10:52:07 PM »
The counter resets when a new clientraw.txt is found and has a different time in it.  Not having it reset means that either your clientraw.txt is not updating, or that your configuration for ajaxWDwx.js doesn't point to the relative URL address of the clientraw.txt.  Is your thermometer showing correctly?

testtags.php and trends-inc.html should be uploaded at 5 minute intervals to your website

the maps are from Wunderground .. you can just change wxindex.php to remove them, but it's not likely they're the cause of a 'slow to load' problem (unless you're on a dialup internet connection).
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline mstan

  • Senior Member
  • **
  • Posts: 54
Re: PHP Error's with the Weather Display/PHP/AJAX Template Set
« Reply #12 on: June 21, 2008, 04:39:01 PM »
Hi Ken,

Well you are the man!....after all that...the problem was.....

"or that your configuration for ajaxWDwx.js doesn't point to the relative URL address of the clientraw.txt"

All I had to do was take out the / in front of clientraw.txt. My clientraw file is in the same dir.

I wanted to change the upload times of the clientraw.txt to 5 or 6 sec but no matter what I set
it for it's like always 3 secs. Any ideas?

Do you host your own weather site?....would it be possible to see screen shots of your config screens for the file creation and uploads setup for a local server.


I have another remote webserver that I want to setup as my main weather web server. What files
do I need to send to it and how would I go about setting it up. Again screen shots of your config
setup would really help me alot. WD in itself is a bit confusing.


Thanks Ken!
Mark


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PHP Error's with the Weather Display/PHP/AJAX Template Set
« Reply #13 on: June 21, 2008, 10:35:12 PM »
I host my saratoga-weather.org on 1and1 .. I do have a small XAMPP system for testing (not publicly accessible).

The upload frequency for clientraw.txt is set on WD Control Panel, Web Files/Web Page/Real Time FTP/WDL, Real time client TAB

The 'Delay between uploading data (seconds)' box is set to '5' for me. 
I can't help you with uploads/file creation to a local server screenshots.. my setup uses FTP so I have no experience with doing the setup for local file copy instead. Sorry...

For your remote webserver, you'll need to copy all the template files and image directories to the document root of that site (manual FTP most likely).  Then WD should be set up to use it as a regular site

You set up the FTP Main Screen with your FTP server credentials (Control panel, FTP and Connections, Connections TAB)
Make sure the Main Internet Switch is on.  Then on the Web Files Upload Times TAB, pick an upload frequency (I use 5 minute intervals). 

In the Control Panel, WebFiles/WebPage/Real time, Custom Web Page Setup TAB, you set up to upload testtags.txt ->testtags.php and trends-inc.txt -> trends-inc.html on your remote website.

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline mstan

  • Senior Member
  • **
  • Posts: 54
Re: PHP Error's with the Weather Display/PHP/AJAX Template Set
« Reply #14 on: June 23, 2008, 11:43:16 AM »
Hi Ken, I got it working pretty good on my local web server thanks to your help.

I would like to move the maps that are at the top of the page and put them at the bottom before
the footer and also make them smaller so I could add another 1 or 2 across the page and also make
them clickable, so either they get larger when I click them, or they take you to a link to where the
map comes from, or another page where all the maps are....could you show me examples of all?

Here is one of maps I am trying to add and resize

http://sirocco.accuweather.com/nx_mosaic_400x300c/SIR/inmaSIROH_.gif

Your help would be greatly appreciated.

Thanks,
Mark

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PHP Error's with the Weather Display/PHP/AJAX Template Set
« Reply #15 on: June 23, 2008, 04:50:25 PM »
Mark,
I'd advise against adding an accuweather (or weather.com) map to your site .. they have fairly stringent terms of use that prohibit third-party usage of their graphics without their express written permission.  You can use the Wunderground graphics (with attribution and links to Wunderground) if you're a member and contributing conditions to them.
Any of the NOAA site maps/radar/etc are ok to use as they are public domain.

To move stuff around in the wxindex.php page, just edit it and move the graphic links below the include for the ajax dashboard.  So you can change
Code: [Select]
<table width="99%" style="border: none">
<tr><td align="center">
  <img src="http://icons.wunderground.com/data/640x480/<?php echo $SITE['WUregion']; ?>_rd_anim.gif" alt="Regional Radar" width="320" height="240" style="margin: 0px; padding: 0px; border: none" />
</td>
<td align="center">
  <img src="http://icons.wunderground.com/data/640x480/<?php echo $SITE['WUregion']; ?>_ir_anim.gif" alt="Regional Infrared Satellite" 
    width="320" height="240" style="margin: 0px; padding: 0px; border: none" />
</td>
</tr>
<tr><td colspan="2" align="center"><small>Radar/Satellite images courtesy of <a href="http://www.weatherunderground.com">Weather Underground</a>.</small></td></tr>
</table>
<?php include_once("ajax-dashboard.php"); ?>
to
Code: [Select]
<?php include_once("ajax-dashboard.php"); ?>
<table width="99%" style="border: none">
<tr><td align="center">
  <img src="http://icons.wunderground.com/data/640x480/<?php echo $SITE['WUregion']; ?>_rd_anim.gif" alt="Regional Radar" width="320" height="240" style="margin: 0px; padding: 0px; border: none" />
</td>
<td align="center">
  <img src="http://icons.wunderground.com/data/640x480/<?php echo $SITE['WUregion']; ?>_ir_anim.gif" alt="Regional Infrared Satellite" 
    width="320" height="240" style="margin: 0px; padding: 0px; border: none" />
</td>
</tr>
<tr><td colspan="2" align="center"><small>Radar/Satellite images courtesy of <a href="http://www.weatherunderground.com">Weather Underground</a>.</small></td></tr>
</table>
and that will put the two graphics at the bottom of the page instead.

Keep in mind that the maximum width is <=620px for the 'narrow' style.  You can resize the images by changing the width= and height= on the <img> statements and let the browser do the resizing for you.  Sometimes it's not very pretty that way, but it is a cheap trick.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline mstan

  • Senior Member
  • **
  • Posts: 54
Re: PHP Error's with the Weather Display/PHP/AJAX Template Set
« Reply #16 on: June 23, 2008, 05:41:27 PM »
Ok Ken, thanks for the info about the weather maps.

Now how can I make them clickable?....by that I mean make them,

so either they get larger when I click them,

or they take you to a link to where the map comes from, (website)

or another page on my site where all the maps are.

thanks,
Mark

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PHP Error's with the Weather Display/PHP/AJAX Template Set
« Reply #17 on: June 23, 2008, 06:29:37 PM »
You just surround the <img .../> tag with an <a href="..." ...> and a </a> to have it go where you'd like it to.

Sample (with the new bottom code) will cause the images to be full sized in a new browser page.

Code: [Select]
<?php include_once("ajax-dashboard.php"); ?>
<table width="99%" style="border: none">
<tr><td align="center"><a href="http://icons.wunderground.com/data/640x480/<?php echo $SITE['WUregion']; ?>_rd_anim.gif" target="_blank">
  <img src="http://icons.wunderground.com/data/640x480/<?php echo $SITE['WUregion']; ?>_rd_anim.gif" alt="Regional Radar" width="320" height="240" style="margin: 0px; padding: 0px; border: none" /></a>
</td>
<td align="center"><a href="http://icons.wunderground.com/data/640x480/<?php echo $SITE['WUregion']; ?>_ir_anim.gif" target="_blank">
  <img src="http://icons.wunderground.com/data/640x480/<?php echo $SITE['WUregion']; ?>_ir_anim.gif" alt="Regional Infrared Satellite" 
    width="320" height="240" style="margin: 0px; padding: 0px; border: none" /></a>
</td>
</tr>
<tr><td colspan="2" align="center"><small>Radar/Satellite images courtesy of <a href="http://www.weatherunderground.com">Weather Underground</a>.</small></td></tr>
</table>
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline mstan

  • Senior Member
  • **
  • Posts: 54
Re: PHP Error's with the Weather Display/PHP/AJAX Template Set
« Reply #18 on: June 23, 2008, 08:33:09 PM »
Ok, it works as a link now when I click the map but the link is not good, check for yourself...

http://icons.wunderground.com/data/640x480/<?php echo $SITE['WUregion']; ?>_rd_anim.gif

or am I doing something wrong?....

The other thing I was thinking was, since I was wanting to shrink the maps down a bit to fit more
across the bottom of the page, how would I set it up so if you clicked the map all it would do is
make it a larger size on the same page next to the orig...just so you can read it better....

or, I know this is a bit much but what if you just mouse over the maps and they become larger
then return back to the smaller size?

That would really be nice.

Thanks
Mark

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PHP Error's with the Weather Display/PHP/AJAX Template Set
« Reply #19 on: June 23, 2008, 08:36:57 PM »
The code only works within the Carterlake/WD/AJAX/PHP template set (that has the definition for $SITE['WUregion'] in the Settings.php).

If you can see the images on your browser on the wxindex.php page, then clicking on them with the code supplied should open a new window/tab with the full size image in it.

Again... hard to debug exactly when I can't really see the page and the generated HTML of the page.

For the special effects you'd like to use, I'd suggest looking at http://www.dynamicdrive.com/ for samples of mouse-over Javascript image dodads.

Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline mstan

  • Senior Member
  • **
  • Posts: 54
Re: PHP Error's with the Weather Display/PHP/AJAX Template Set
« Reply #20 on: June 23, 2008, 09:52:35 PM »
Thanks Ken,

I will check it out...thanks for the link.

Do you have to purchase the WXSIM to get it working with your templates or is there another
limited version?

I guess the real question what do I need to get it working?

Mark

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PHP Error's with the Weather Display/PHP/AJAX Template Set
« Reply #21 on: June 23, 2008, 09:56:34 PM »
For WXSIM to work in your area, you'll need to buy it from http://www.wxsim.com/ and have Tom Ehrensburg configure it for your locale (otherwise all you'll get is a sample for the Atlanta, GA area).

After it is installed on your weather pc, you can set it to run automatically and create the plaintext.txt forecast file .. WD can be set to upload this file to your website (in the document root).  The included (with the template) plaintext-parser.php and associated files, will read the WXSIM plaintext.txt file, parse it, and make a forecast icon+text similar to what the NOAA forecast script shows.

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

 

anything