DEMO PAGE


PLEASE NOTE! The HTML extention of THIS webpage must match your individual web server! Most web servers REQUIRE that the page end with a ".SHTML" ending, this is not a rule. Please consult your web servers documentation and read the section about SSI or Server Side Includes!

Although the script is designed to process the HTML sent to it, your web browser may have trouble with the = sign and other symbols when transferring them to the script.

This script will provide command line or webpage access to:
Temperature
Wind Direction
Dew Point
Humidity
Visibility
Barometer
Sunrise is at
Sunset is at
Icon picture URL

PLEASE READ THE INCLUDED "README.TXT" FOR A LIST OF EXAMPLES!

For SSI (Server Side Include) Web based usage, simply put the script into your webpage:

<!--#exec cgi="/cgi-local/diagweather.pl? chicago il The Humidity in Chicago is currently $humi$."-->


WHY ARE THERE 2 SCRIPTS?
"diagweather.pl" has built in diagnostic routines which will help you locate any problems. Always use this script first to test your data. Once you know for a fact it works, then switch over to "weather.pl". "weather.pl" has been optimised for that fastest execution possible, but it will not trap any errors. If the script just hangs, verify that you can get to www.weather.com from your web server.

This script will go to www.weather.com and will retrieve a webpage based on the informtion you provide. The URL is built based on 2 key elements that YOU provide:

1. The 2 letter STATE code.
2. The CITY you want the report on.

The final information for the script comes right after the CITY name. The script will search this line and replace all $NAME$ with the correct information. Once again, every command ment for the script MUST be in lower case only!!

AVAILABLE COMMANDS ARE:

Temperature $temp$
Wind Direction $wind$
Dew Point $dewp$
Humidity $humi$
Visibility $visb$
Barometer $baro$
Sunrise is at $rise$
Sunset is at $set$
Icon picture URL $pic$

Information provided by www.weather.com


[an error occurred while processing this directive]