Note: Since WeatherUnderground is no longer issuing API keys, the default forecast has been changed to be from DarkSky.net -- you will need to acquire an API key from them to enable your forecasts.
<?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'] = true; // 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'] = true; // 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
'af', // afrikaans
'bg', // bulgarian
// 'ct', // 'catalan',
'dk', // 'danish',
'nl', // 'dutch',
'fi', // 'finnish',
'fr', // 'french',
// 'ga', // 'irish',
'de', // 'german',
'el', // 'greek',
'he', // 'hebrew',
'hu', // 'hungarian',
'it', // 'italian',
'no', // 'norwegian',
'pl', // 'polish',
'pt', // 'portuguese',
'ro', // 'romanian',
'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'] = 'World Multilingual Website with PHP & AJAX';
$SITE['copyr'] = '© ' . date("Y",time()) . ', Your Weather Website';
$SITE['location'] = 'Somewhere, Some Country';
$SITE['email'] = 'mailto:somebody@somemail.org';
# Station location: latitude, longitude, cityname
$SITE['latitude'] = '37.27153397'; //North=positive, South=negative decimal degrees
$SITE['longitude'] = '-122.02274323'; //East=positive, West=negative decimal degrees
$SITE['cityname'] = 'Saratoga';
$SITE['tz'] = 'America/Los_Angeles'; //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/Los_Angeles'; // 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.
###########################################################################
// world Settings
$SITE['WDdateMDY'] = false; // for weather software date format of month/day/year. =false for day/month/year
$SITE['uomTemp'] = '°C'; // ='°C', ='°F'
$SITE['uomBaro'] = ' hPa'; // =' hPa', =' mb', =' inHg'
$SITE['uomWind'] = ' km/h'; // =' km/h', =' kts', =' m/s', =' mph'
$SITE['uomRain'] = ' mm'; // =' mm', =' in'
$SITE['uomSnow'] = ' cm'; // =' cm', =' in'
$SITE['uomDistance'] = ' km'; // or ' miles' -- 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'] = true; // 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)
$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/
//
// 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
// --- Aerisweather.net forecast variables ---
$SITE['fcstscript'] = 'AW-forecast.php';
$SITE['fcstorg'] = 'Aerisweather'; // set to 'Aerisweather' for Aerisweather.net
$SITE['AWAPIkey'] = 'specify-your-Aerisweather-API-Access-ID-key-here'; // Your API Access ID key
$SITE['AWAPIsecret'] = 'specify-your-Aerisweather-API-secret-here'; // Your API Secret Key
// Aerisweather display Units:
// si: SI units (C,m/s,hPa,mm,km)
// ca: same as si, except that windSpeed and windGust are in kilometers per hour
// uk2: same as si, except that nearestStormDistance and visibility are in miles, and windSpeed and windGust in miles per hour
// us: Imperial units (F,mph,inHg,in,miles)
$SITE['AWshowUnitsAs'] = 'ca'; // ='us' for imperial, , ='si' for metric, ='ca' for canada, ='uk2' for UK
$SITE['AWforecasts'] = array(
// Location|lat,long (separated by | characters)
'Saratoga, CA, USA|37.27465,-122.02295',
'Auckland, NZ|-36.910,174.771', // Awhitu, Waiuku New Zealand
'Assen, NL|53.02277,6.59037',
'Blankenburg, DE|51.8089941,10.9080649',
'Carcassonne, FR|43.2077801,2.2790407',
'Braniewo, PL|54.3793635,19.7853585',
);
// --- end of Aerisweather forecast variables ---
/*
For more information on customization of the AW-forecast.php script, please see the documentation at
https://saratoga-weather.org/scripts-AWforecast.php
*/
/*
// NOTE: as of 31-Mar-2020, new DarkSky API keys are not available and the API will be removed
// at the end of 2021. Use Aerisweather or WU/TWC for forecasts.
//
// --- DarkSky.net forecast variables ---
$SITE['fcstscript'] = 'DS-forecast.php';
$SITE['fcstorg'] = 'DarkSky'; // set to 'DarkSky' for DarkSky.net
$SITE['DSAPIkey'] = 'specify-your-DarkSky-API-key-here'; // Your API key from https://darksky.net/dev
// DarkSky display Units:
// si: SI units (C,m/s,hPa,mm,km)
// ca: same as si, except that windSpeed and windGust are in kilometers per hour
// uk2: same as si, except that nearestStormDistance and visibility are in miles, and windSpeed and windGust in miles per hour
// us: Imperial units (F,mph,inHg,in,miles)
$SITE['DSshowUnitsAs'] = 'ca'; // ='us' for imperial, , ='si' for metric, ='ca' for canada, ='uk2' for UK
$SITE['DSforecasts'] = array(
// Location|lat,long (separated by | characters)
'Saratoga, CA, USA|37.27465,-122.02295',
'Auckland, NZ|-36.910,174.771', // Awhitu, Waiuku New Zealand
'Assen, NL|53.02277,6.59037',
'Blankenburg, DE|51.8089941,10.9080649',
'Carcassonne, FR|43.2077801,2.2790407',
'Braniewo, PL|54.3793635,19.7853585',
);
// --- end of DarkSky forecast variables ---
/*
For more information on customization of the DS-forecast.php script, please see the documentation at
https://saratoga-weather.org/scripts-DSforecast.php
*/
//
// For Europe only, use the meteoalarm.org site for your area's watches/warnings on the wxadvisory page
// $SITE['EUwarnings'] is used by get-meteoalarm-warning-inc.php V3.00 for EU countries
// Go to https://saratoga-weather.org/meteoalarm-map/ to get the EMMA_ID code(s) for your area
// and uncomment the following with your codes installed to activate the wxadvisory.php script.
#$SITE['EUwarnings'] = 'DK002,DK004,EE007';
$SITE['useMeteoalarm'] = true; // =true; to use get-meteoalarm-warning-inc.php for alerts; =false; if not
$SITE['EUminLevel'] = 2; # 1=Green, 2=Yellow, 3=Orange, 4=Red - minimum alert level to display
##########################################################################
# end of configurable settings
##########################################################################
?>