1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208
|
<?php ############################################################################ # Sitewide configuration - website style and features ############################################################################
$SITE['CSSscreen'] = 'weather-screen-blue-narrow.css'; // Default screen 800px design // Note: $SITE['CSSscreen'] will be overridden if the Theme Switch (below) is enabled. // To lock your site to use only one CSS as specified in $SITE['CSSscreen'], just // turn off the Theme Switcher. $SITE['CSSprint'] = 'weather-print-php.css'; # #$SITE['CSSscreen'] = 'weather-screen.css'; // Classic design #$SITE['CSSprint'] = 'weather-print.css';
# Mike Challis' Theme Switch configuration $SITE['allowThemeSwitch'] = true; // set to false to disable the use of Theme Switcher $SITE['CSSscreenDefault'] = 'weather-screen-blue.css'; // leave -narrow or -wide off this .. just change color here $SITE['CSSwideOrNarrowDefault'] = 'narrow'; // 'narrow' or 'wide' # CSSsettings_mode # sets allowable user style select options: # 1 user can select style and screen width (show style select and screen width select) # 2 user can select styles only (hide screen width select) # 3 user can select screen width only (hide style select) $SITE['CSSsettings_mode'] = 1; // set to 1, 2 or 3
$SITE['flyoutmenu'] = false; // set to false to use the menu list inside menubar.php instead
$SITE['charset'] = 'ISO-8859-1'; // default character set for webpages (iso-8859-1=latin) # # Multilanguage support # $SITE['lang'] = 'en'; // default language for website to use $SITE['allowLanguageSelect'] = false; // set to false to disable the use of language selector $SITE['useLanguageFlags'] = true; // true=show flags, false=show language 2-char abbreviations $SITE['languageSelectDropdown'] = true; // true=show dropdown list for languages, false=show linear flags list $SITE['languageSelectButton'] = false; // true=show 'Set' button for language select, false=use onchange to submit $SITE['langavail'] = array('en', // select languages to offer here. Use comments to remove languages // array('en', should be first entry on line above // other languages with the USA set can be enabled by installing language packs // 'af', // afrikaans // 'ct', // 'catalan', // 'dk', // 'danish', // 'nl', // 'dutch', // 'fi', // 'finnish', // 'fr', // 'french', // 'de', // 'german', // 'el', // 'greek', // 'it', // 'italian', // 'no', // 'norwegian', // 'pl', // 'polish', // 'pt', // 'portuguese', // 'es', // 'spanish', // 'se', // 'swedish', ); // if your software uploads almanac dates using a language OTHER THAN English, please put the month // names in your language to replace the English ones below. This is used primarily by the // wxastronomy.php page for the local dates of moon phases, solistices, and equinoxes $SITE['monthNames'] = array( // for wxastronomy page .. replace with month names in your language 'January','February','March','April','May','June', 'July','August','September','October','November','December' ); // example: //$SITE['monthNames'] = array( // Danish for wxastronomy page .. replace with month names in your language //'januar','februar','marts','april','maj','juni', //'juli','august','september','oktober','november','december' //);
############################################################################ # Sitewide configuration - Station location, identity and date/time info ############################################################################
$SITE['organ'] = 'Northwest Omaha Weather'; $SITE['copyr'] = '© ' . date("Y",time()) . ', Your Weather Website'; $SITE['location'] = 'Omaha, NE, USA'; $SITE['email'] = 'mailto:garypriceomaha@gmail.com'; # Station location: latitude, longitude, cityname $SITE['latitude'] = '41.277981'; //North=positive, South=negative decimal degrees $SITE['longitude'] = '-96.187195'; //East=positive, West=negative decimal degrees $SITE['cityname'] = 'Omaha';
$SITE['tz'] = 'America/Chicago'; //NOTE: this *MUST* be set correctly to // translate UTC times to your LOCAL time for the displays. // http://us.php.net/manual/en/timezones.php has the list of timezone names // pick the one that is closest to your location and put in $SITE['tz'] like: // $SITE['tz'] = 'America/Chicago'; // or // $SITE['tz'] = 'Europe/Brussels'; // note: date format used for PHP parts only. Weather software dates are not processed // except on the astronomy page
$SITE['timeFormat'] = 'D, d-M-Y g:ia T'; // Day, 31-Mar-2006 6:35pm Tz (USA Style) //$SITE['timeFormat'] = 'm/d/Y g:ia'; // USA format 03/31/2006 14:03 //$SITE['timeFormat'] = 'd/m/Y H:i'; // Euro format 31/03/2006 14:03 //$SITE['timeFormat'] = 'Y-m-d H:i'; // ISO format 2006-03-31 14:03
$SITE['timeOnlyFormat'] = 'g:ia'; // USA format h:mm[am|pm\ //$SITE['timeOnlyFormat'] = 'H:i'; // Euro format hh:mm (hh=00..23); $SITE['dateOnlyFormat'] = 'd-M-Y'; // for 31-Mar-2008 or 'j/n/Y' for Euro format
############################################################################ # Sitewide configuration - support scripts configuration ############################################################################
########################################################################### # These values should reflect the units-of-measure your weather station # uses to report the weather data when processing weather tags. # Note: if you change them here, make sure to make the corresponding # changes in the ajax[WXname]wx.js AJAX script also. ###########################################################################
$SITE['WDdateMDY'] = true; // for WD date format of month/day/year. =false for day/month/year
$SITE['uomTemp'] = '°F'; // ='°C', ='°F' $SITE['uomBaro'] = ' inHg'; // =' hPa', =' mb', =' inHg' $SITE['uomWind'] = ' mph'; // =' km/h', =' kts', =' m/s', =' mph' $SITE['uomRain'] = ' in'; // =' mm', =' in' $SITE['uomSnow'] = ' in'; // =' cm', =' in' $SITE['uomDistance'] = ' miles'; // or ' km' -- used for Wind Run display $SITE['uomPerHour'] = '/hr'; // $SITE['imagesDir'] = './ajax-images/'; // directory for ajax-images with trailing slash // $SITE['cacheFileDir'] = './cache/'; // directory to use for scripts cache files .. use './' for doc.root.dir // $SITE['UVscript'] = 'get-UV-forecast-inc.php'; // worldwide forecast script for UV Index // comment out above line to exclude UV forecast from dashboard, gizmo and wxuvforecast.php page // // if you have WXSIM installed set $SITE['WXSIM'] = true; otherwise set it to false $SITE['WXSIM'] = false; // Set to false if you have not installed WXSIM $SITE['WXSIMscript'] = 'plaintext-parser.php'; // script for decoding plaintext.txt into icons $SITE['defaultlang'] = 'en'; // 'en' for English (WXSIM plaintext-parser.php)
# fcsturlNWS is the point-printable forecast URL from http://www.weather.gov/ (used by advforecast2.php) $SITE['fcsturlNWS'] = 'https://forecast.weather.gov/MapClick.php?lat=41.3167&lon=-95.8793&smap=1&unit=0&lg=en&FcstType=text'; $SITE['fcsticonsdir'] = './forecast/images/'; // NOAA-style icons for NWS, WU, WXSIM forecast scripts $SITE['fcsticonstype']= '.jpg'; // default type='.jpg' -- use '.gif' for animated icons from http://www.meteotreviglio.com/ // // 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
// Optional multi-city/zone forecast specification for advforecast2.php $SITE['NWSforecasts'] = array( // for the advforecast2.php V3.xx version script // use "Zone|Location|Point-printableURL", as entries .. first one will be the default forecast. "NEZ052|2 Miles SSW from Carter Lake, IA|https://forecast.weather.gov/MapClick.php?lat=41.2587&lon=-95.9384&unit=0&lg=english&FcstType=text&TextType=2",
);
// */
// Uncomment the two lines below to use WXSIM as the ONLY forecast script to use // $SITE['fcstscript'] = 'plaintext-parser.php'; // WXSIM forecast (if only forecast script) // $SITE['fcstorg'] = 'WXSIM'; // set to 'WXSIM' for WXSIM forecast
// NOAA warning zone $SITE['noaazone'] = 'NEZ052'; // used for NOAA advisories and advforecast2.php forecasts $SITE['hurlURL'] = "wxadvisory.php"; // page to launch for details on NOAA advisories //
// NWS Alerts package configuration (for Curly's nws-alerts scripts) // "Location|ZoneCode|CountyCode[|CountyCode]..." // Note: if more than 4 zone/county codes are used, a message will appear if you are NOT using // cron to provide updates. // Note: additional/optional nws-alerts configuration is in nws-alerts-config.php file $SITE['NWSalertsCodes'] = array( "Carter Lake, IA|NEZ052|NEC055",
); $SITE['NWSalertsSidebar'] = true; // =true to insert in menubar, =false no insert to menubar //
// Radar settings $SITE['noaaradar'] = 'oma'; // 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['NWSregion'] = 'sw'; // NOAA/NWS regional radar maps // 'ak' = Alaska, // 'nw' = Northwest, 'nr' = Northern Rockies, 'nm' = North Mississippi Valley, // 'nc' = Central Great Lakes, 'ne' = Northeast, // 'hi' = Hawaii, // 'sw' = Southwest, 'sr' = Southern Rockies, 'sc' = Southern Plains, // 'sm' = South Mississippi Valley, 'se' = Southeast
$SITE['WUsatellite'] = 'sw'; // Wunderground regional satellite maps // ="nw" North West, ="nc" North Central, ="ne" North East, // ="wc" West Central, ="ce" Central, ="ec" East Central, // ="sw" South West, ="sc" South Central, ="se" South East,
// GRLevel3 Radar image settings (for wxgr3radar.php and radar-status.php scripts $SITE['GR3radar'] = 'koma'; // 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 by radar-status.php
########################################################################## # end of configurable settings ########################################################################## ?>
|