/* Weather Watcher V1.0 Copyright (C) 2004 Contest Monkey Software, All Rights Reserved. Unless explicitly acquired and licensed from Licensor under a commercial contractural agreement, the contents of this file are subject to the Reciprocal Public License ("RPL") Version 1.1, or subsequent versions as allowed by the RPL, and You may not copy or use this file in either source code or executable form, except in compliance with the terms and conditions of the RPL. All software distributed under the Licenses is provided strictly on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND CONTEST MONKEY SOFTWARE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT, OR NON-INFRINGEMENT. See the Licenses for specific language governing rights and limitations under the Licenses. The Weather Watcher obtains its weather data from pubilicly available iwin and noaa web sites. */ Unpack the archive file. On your web server create a folder for your Weather Watcher and name it weather. upload all of the files and folders to the new weather folder on your website. Edit the include/common.php file Put your two letter state abreviation in the $StateHourlyCode ='' Put your City in the $StateCity - this may need to be your nearest larger if you are a very rural area. A good choice is the nearest city with an airport. The $RadarCode can be found in the included icao_codes.txt file. The rest may be changed to suit your needs. Edit the include/sunrise_sunset_cfg.php file. You will need to put your latitude and longitude in the supplied variables. The lat & long must be in the decimal format. If you do not know your geographical coordinates you may find them here... http://www.zipinfo.com/search/zipcode.htm check the latitude and longitude box, enter your zipcode or city and you will be given your digital lat & long Automation Since we need to fetch data on a regular basis we need to run the fetch files with something line cron. Use your websites control panel to set up cron. Curl is on most severs so this is a goo line to use. Please remember to use your own websites url here or it may not work. ex... /usr/bin/curl http://yourdomain/weather/GetShortReport.php /usr/bin/curl http://yourdomain.com/weather/GetLongReport.php you may call either of these files from your browser for a manual update. This is the way to first ensure that the files are working. When the update is done the time will be noted when you view the includes or weather site. Including the files The scripts out-put three files short_forecast.txt - this is the small report in the right of the main weather page long_forecast.txt - this is the extended forcast displayed on the main weather page include_forecast.txt - this is the small temp/graphic only link. Calling the files While the main weather page will display the files you may use the data files in any site or page you wish. To do so simply call them as an include. The small display contains inline css so nothing more need be done for the small display. The other displays may require the adding of this to the header portion any html page you wish to include on... PHP style SSI style That should get you going. Enjoy!