deformed-offering

Free Weather Website Templates

They're free, but use at your own risk

The scripts referenced here are used in the operation of this weather station, and may be freely copied and used to support your station. Please note that you use these scripts at your own risk. No warranty is expressed or implied. I accept no liability for any damages that may ensue from their use.
You will need to configure them for your own particular weather station website.
RSS feed for Scripts Updates A RSS Feed is available to help keep you informed on updates to the scripts.

If you find one or more of the scripts useful to you, please consider making a donation to help offset the routine expenses of operation of this website.
Thanks for your kind support!

A Version History is available -- check back from time to time to see if there are updates to scripts you have downloaded earlier. Announcements of version updates and new scripts are made on WXForum.net and Weather-Watch forums and saratogaWXPHP Twitter account as they become available.

This page was updated Wednesday, 02-Sep-2009 11:19 AM

Weather Display/PHP/AJAX Website Template Set - Settings.php - USA

The configuration for Settings.php discussed here is for the USA Specific template set. It assumes you've already done the common Settings.php configuration required for all the template sets.
Common Settings in Settings.php | USA specific | Canada specific | Canada-ML specific | World specific | World-ML specific | menubar.php configuration


<?php
# USA Specific settings
$SITE['noaazone']         = 'CAZ513'// used for NOAA advisories and advforecast2.php forecasts
$SITE['hurlURL']        = "wxadvisory.php"// page to launch for details on NOAA advisories
#

# fcsturlNWS is the point-printable forecast URL from http://www.weather.gov/ (used by advforecast2.php)
$SITE['fcsturlNWS']        = 'http://www.wrh.noaa.gov/forecast/MapClick.php?site=mtr&smap=1&textField1=37.26389&textField2=-122.02194&TextType=2';

$SITE['fcsticonsdir'] = './forecast/images/'// NOAA-style icons for NWS, WU, WXSIM forecast scripts
#
#---- in the following section, enable settings for ONE primary forecast organization
# pick which script AND org are to be used for your forecast here: (last uncommented pair will
#  be the ones used on the wxforecast.php page and in your dashboard and sidebar
$SITE['fcstscript']        = 'advforecast2.php';  // USA-only NWS Forecast script
$SITE['fcstorg']        = 'NWS';    // set to 'NWS' for NOAA NWS

#$SITE['fcstscript']    = 'plaintext-parser.php';    // WXSIM forecast (if only forecast script)
#$SITE['fcstorg']        = 'WXSIM';    // set to 'WXSIM' for WXSIM forecast


# carterlake-radar settings (will override defaults in
#  the scripts themselves when included in this site
###########################################################################
$SITE['noaaradar']        = 'MUX';               // LAST 3 characters of NOAA Radar Site ID
                                            // e.g. Radar KMUX has $SITE['noaaradar'] = 'MUX';
$SITE['WUregion']    = 'sw';                // Wunderground regional maps
// 'sw'=SouthWest, 'nw'=NorthWest, 'mw'=Midwest
// 'sp'=South Central, 'ne'=North East, 'se'=South East
$SITE['WUname1']    = 'City Level';        // tooltip label for mode=1
$SITE['WUname2']    = 'South SF Bay';    // tooltip label for mode=2
$SITE['WUname3']    = 'SF Bay Area';    // tooltip label for mode=3
$SITE['WUname4']    = 'Southwest US';    // tooltip label for mode=4
$SITE['WUname5']    = 'Entire US';        // tooltip label for mode=5

###########################################################################
# GRLevel3 Radar image settings
$SITE['GR3radar']    = 'kmux';    // set to lower-case full name of NEXRAD radar site
$SITE['GR3DIR']        = '/GR3';     // set to directory for GRLevel3 images (or '.' for root directory
$SITE['GR3type']    = 'cr';        // radar image type 'cr','br','cr248','br1' etc.
$SITE['GR3img']        = 'jpg';    // GR3 image type 'jpg' or 'png'
$SITE['GR3cnt']        = 10;        // number of images in series 10=(_0 ... _9 in name of file)
$SITE['GR3width']    = 512;        // width of GR3 images
$SITE['GR3height']  = 512;        // height of GR3 images
$SITE['showradarstatus'] = true// set to false to suppress 'active' message
?>
$SITE['noaazone'] = 'CAZ513';
This setting specifies the NOAA warning zone. This setting is used by the advforecast2.php forecast script, the rss-top-warning.php and rss-advisory.php scripts for advisory/watch/warning information to be displayed on the wxindex.php, wxforecast.php, wxadvisory.php pages.
$SITE['hurlURL'] = "wxadvisory.php";
This setting specifies the page to be launched for more details when an advisory is present. It is used by
rss-advisory.php and rss-top-warning.php scripts, and the wxindex.php, wxforecast.php and wxadvisory.php pages.
$SITE['fcsturlNWS'] = 'http://www.wrh.noaa.gov/forecast/MapClick.php?site=mtr&smap=1&textField1=37.26389&textField2=-122.02194&TextType=2';
This setting specifies the URL to your NWS Point-printable forecast. It is used by the advforecast2.php to extract forecast icons/text from the NWS forecast which is displayed in the ajax-dashboard, ajax-sidebar, and on the wxforecast.php page.
$SITE['fcsticonsdir'] = './forecast/images/';
This setting specifies the relative FILE location for the NOAA icon images. These images are also used by the WXSIM forecast via plaintext-parser.php
$SITE['fcstscript'] = 'advforecast2.php';
$SITE['fcstorg'] = 'NWS';
This pair of settings indicates the NWS forecast is to be used for icons/text in the ajax-dashboard, ajax-sidebar and on the wxforecast.php page. Optionally, you can use WXSIM for the forecast source by setting
$SITE['fcstscript'] = 'plaintext-parser.php'; and
$SITE['fcstorg'] = 'WXSIM';
This will cause the WXSIM forecast icons to appear in the ajax-dashboard and WXSIM forecast to be used on the wxforecast.php page.
$SITE['noaaradar'] = 'MUX';
This setting specifies the LAST three characters of the NEXRAD radar ICAO (name). It is used by the
WU-radar-inc.php script to specify the primary radar site. This setting overrides what is specified within the WU-radar-inc.php script.
$SITE['WUregion'] = 'sw';
This setting specifies the Weather Underground 'region' for use with regional map displays on the wxindex.php home page and by WU-radar-inc.php for the wxradar.php page. This setting overrides what is specified within the WU-radar-inc.php script.
$SITE['WUname1'] = 'City Level';
$SITE['WUname2'] = 'South SF Bay';
$SITE['WUname3'] = 'SF Bay Area';
$SITE['WUname4'] = 'Southwest US';
$SITE['WUname5'] = 'Entire US';
These settings are used by the WU-radar-inc.php to label the tooltip displays on a mouseover of the zoom display controls in the wxradar.php page. These settings override what is specified within the
WU-radar-inc.php script.
$SITE['GR3radar'] = 'kmux';
Even if you don't have GRLevel3 installed, set this to the lowercase ICAO (name) of your NOAA Nexrad radar site. It is used by the radar-status.php script to select the radar site to monitor.
$SITE['GR3DIR'] = '/GR3';
$SITE['GR3type'] = 'cr';
$SITE['GR3img'] = 'jpg';
$SITE['GR3cnt'] = 10;
$SITE['GR3width'] = 512;
$SITE['GR3height'] = 512;
These settings control the wxgr3radar.php page for generation and display of GRLevel3 radar. If you don't have GRLevel3 software, you can remove the wxgr3radar.php page from the menubar.php links and not be concerned about setting up this optional page.
$SITE['showradarstatus'] = true;
This setting specifies the action that the radar-status.php script uses when displaying the status of your NEXRAD radar on the wxradar.php and wxgr3radar.php pages. The default is to show the status box even when the radar is active. Set $SITE['showradarstatus'] =false; to show the radar status box only when there is a problem with the radar site.


deformed-offering