clientraw.txt # original version by BRIAN UNDERDOWN 2015-2016-2017-2018 # updates and support as from 2019-01-01 by Wim van der Kuil http://wd34.weather-template.com/ # if (isset($_REQUEST['sce']) && strtolower($_REQUEST['sce']) == 'view' ) { $filenameReal = __FILE__; # display source of script if requested so $download_size = filesize($filenameReal); header('Pragma: public'); header('Cache-Control: private'); header('Cache-Control: no-cache, must-revalidate'); header("Content-type: text/plain"); header("Accept-Ranges: bytes"); header("Content-Length: $download_size"); header('Connection: close'); readfile($filenameReal); exit;} elseif (!isset ($_REQUEST['test'])) { ini_set('display_errors', 0); error_reporting(0);} # if (!isset ($almanac) ) {$almanac = false;} # $stck_lst = basename(__FILE__).'('.__LINE__.') loaded =>'.$scrpt_vrsn_dt.PHP_EOL; // save list of loaded scrips; # $blck_ttls = array(); // title of a block $blck_rfrs = array(); // refresh specific for this block IN SECONDS $blck_ppp = array(); // available popups # $script = 'clock_small.php'; $blck_ttls[$script] = lang('Weather Station Local Time '); $blck_rfrs[$script] = false; // needs no refresh # $script = 'temperature_small.php'; // max min temp $blck_ttls[$script] = lang('Max-Min Temperature '); $blck_rfrs[$script] = 30; # $script = 'rainfall_small.php'; $blck_ttls[$script] = lang('Annual Rainfall '); $blck_rfrs[$script] = 10; # $script = 'boltek_small.php'; $blck_ttls[$script] = lang('Nexstrom lightning '); $blck_rfrs[$script] = 630; # $script = 'earthquake_small.php'; $blck_ttls[$script] = lang('Last Earthquake'); $blck_rfrs[$script] = 640; # $script = 'advisory_small.php'; $blck_ttls[$script] = lang('Weather Alert'); $blck_rfrs[$script] = 300; $script = 'temperature_block.php'; $blck_ttls[$script] = lang('Temperature')." °".$weather["temp_units"]; $blck_rfrs[$script] = 30; $blck_ppp [$script][] = array ('show' => true, 'popup' => 'w34_graph_xx.php?period=year&type=temp', 'chartinfo' => true, 'text' => date('Y') ); $blck_ppp [$script][] = array ('show' => true, 'popup' => 'w34_graph_xx.php?period=month&type=temp', 'chartinfo' => true, 'text' => strftime(" %b") ); $blck_ppp [$script][] = array ('show' => true, 'popup' => 'w34_graph_xx.php?period=day&type=temp', 'chartinfo' => true, 'text' => lang('Today') ); $blck_ppp [$script][] = array ('show' => $almanac, 'popup' => 'tempalmanac.php', 'chartinfo' => true, 'text' => lang('Almanac').' '.date('Y') ); $script = 'forecastDSblock.php'; $blck_ttls[$script] = lang('Forecast'); $blck_rfrs[$script] = 60; $blck_ppp [$script][] = array ('show' => true, 'popup' => 'forecastDSdaily_popup.php', 'chartinfo' => true, 'text' => lang('Forecastahead')); $blck_ppp [$script][] = array ('show' => true, 'popup' => 'forecastDShourly_popup.php', 'chartinfo' => true, 'text' => lang('Hourlyforecast') ); $script = 'currentconditionsMTR_block.php'; $blck_ttls[$script] = lang('Currentsky'); $blck_rfrs[$script] = 60; $blck_ppp [$script][] = array ('show' => $metar, 'popup' => 'metar_popup.php', 'chartinfo' => true, 'text' => lang('Nearby')); $blck_ppp [$script][] = array ('show' => true, 'popup' => 'earthquake_popup.php', 'chartinfo' => true, 'text' => lang('Latest Earthquakes Worldwide') ); $script = 'currentconditionsDS_block.php'; $blck_ttls[$script] = lang('Currentsky'); $blck_rfrs[$script] = 3; $blck_ppp [$script][] = array ('show' => $metar, 'popup' => 'metar_popup.php', 'chartinfo' => true, 'text' => lang('Nearby')); $blck_ppp [$script][] = array ('show' => true, 'popup' => 'earthquake_popup.php', 'chartinfo' => true, 'text' => lang('Latest Earthquakes Worldwide') ); $script = 'currentconditionsWD_block.php'; $blck_ttls[$script] = lang('Currentsky'); $blck_rfrs[$script] = 3; $blck_ppp [$script][] = array ('show' => $metar, 'popup' => 'metar_popup.php', 'chartinfo' => true, 'text' => lang('Nearby')); $blck_ppp [$script][] = array ('show' => true, 'popup' => 'earthquake_popup.php', 'chartinfo' => true, 'text' => lang('Latest Earthquakes Worldwide') ); $script = 'currentconditionsEC_block.php'; $blck_ttls[$script] = lang('Currentsky'); $blck_rfrs[$script] = 180; $blck_ppp [$script][] = array ('show' => $metar, 'popup' => 'metar_popup.php', 'chartinfo' => true, 'text' => lang('Nearby')); $script = 'wind_gust_block.php'; $blck_ttls[$script] = lang('Windspeed') .' | '. lang('Gust') ; $blck_rfrs[$script] = 2; $blck_ppp [$script][] = array ('show' => true, 'popup' => 'w34_graph_xx.php?period=year&type=wind', 'chartinfo' => true, 'text' => date('Y') ); $blck_ppp [$script][] = array ('show' => true, 'popup' => 'w34_graph_xx.php?period=month&type=wind', 'chartinfo' => true, 'text' => strftime(" %b") ); $blck_ppp [$script][] = array ('show' => true, 'popup' => 'w34_graph_xx.php?period=day&type=wind', 'chartinfo' => true, 'text' => lang('Today') ); $blck_ppp [$script][] = array ('show' => $almanac, 'popup' => 'windalmanac.php', 'chartinfo' => true, 'text' => lang('Almanac').' '.date('Y') ); $script = 'barometer_block.php'; $blck_ttls[$script] = lang('Barometer'); $blck_rfrs[$script] = 60; $blck_ppp [$script][] = array ('show' => true, 'popup' => 'w34_graph_xx.php?period=year&type=baro', 'chartinfo' => true, 'text' => date('Y') ); $blck_ppp [$script][] = array ('show' => true, 'popup' => 'w34_graph_xx.php?period=month&type=baro', 'chartinfo' => true, 'text' => strftime(" %b") ); $blck_ppp [$script][] = array ('show' => true, 'popup' => 'w34_graph_xx.php?period=day&type=baro', 'chartinfo' => true, 'text' => lang('Today') ); $blck_ppp [$script][] = array ('show' => $almanac, 'popup' => 'baroalmanac.php', 'chartinfo' => true, 'text' => lang('Almanac').' '.date('Y') ); $script = 'sun_block.php'; $blck_ttls[$script] = lang('SunPosition'); $blck_rfrs[$script] = 60; $blck_ppp [$script][] = array ('show' => true, 'popup' => 'moon_popup.php', 'chartinfo' => '
', 'text' => lang('Moon info') ); $blck_ppp [$script][] = array ('show' => true, 'popup' => 'aurora_popup.php','chartinfo' => $info, 'text' => lang('Aurora') ); #$blck_ppp [$script][] = array ('show' => true, 'popup' => 'earthquake_popup.php','chartinfo' => $earthquakeinfo, 'text' => lang('Earthquakes') ); $blck_ppp [$script][] = array ('show' => true, 'popup' => 'meteors_popup.php', 'chartinfo' => true, 'text' => lang('Meteors') ); $script = 'rainfall_block.php'; $blck_ttls[$script] = lang('Rainfalltoday'); $blck_rfrs[$script] = 10; $blck_ppp [$script][] = array ('show' => true, 'popup' => 'w34_graph_xx.php?period=year&type=rain', 'chartinfo' => true, 'text' => date('Y') ); $blck_ppp [$script][] = array ('show' => true, 'popup' => 'w34_graph_xx.php?period=month&type=rain', 'chartinfo' => true, 'text' => strftime(" %b") ); $blck_ppp [$script][] = array ('show' => true, 'popup' => 'w34_graph_xx.php?period=day&type=rain', 'chartinfo' => true, 'text' => lang('Today') ); $script = 'webcam_block.php'; $blck_ttls[$script] = lang('LiveWebCam'); $blck_rfrs[$script] = 30; $blck_ppp [$script][] = array ('show' => true, 'popup' => 'webcam_popup.php', 'chartinfo' => true, 'text' => lang('LiveWebCam') ); $script = 'uvsolarlux_block.php'; $blck_ttls[$script] = lang('Solar - UV-Index - Lux'); $blck_rfrs[$script] = 60; $blck_ppp [$script][] = array ('show' => true, 'popup' => 'uvsolarlux_popup.php', 'chartinfo' => true, 'text' => lang('UV Guide') ); $blck_ppp [$script][] = array ('show' => $almanac, 'popup' => 'uvalmanac.php', 'chartinfo' => true, 'text' => lang('UV Almanac') ); $blck_ppp [$script][] = array ('show' => $almanac, 'popup' => 'solaralmanac.php', 'chartinfo' => true, 'text' => lang('Solar Almanac') ); $script = 'indoor_block.php'; $blck_ttls[$script] = lang('Indoor Temperature')." °".$weather["temp_units"]; $blck_rfrs[$script] = 10; $script = 'earthquake_block.php'; $blck_ttls[$script] = lang('Earthquake'); $blck_rfrs[$script] = 580; $blck_ppp [$script][] = array ('show' => true, 'popup' => 'earthquake_popup.php', 'chartinfo' => true, 'text' => lang('Latest Earthquakes Worldwide') ); $script = 'purpleair_block.php'; $blck_rfrs[$script] = 570; $blck_ttls[$script] = lang('Our PurpleAir sensor'); $blck_ppp [$script][] = array ('show' => true, 'popup' => 'AQ_popup.php?lang='.$used_lang, 'chartinfo' => true, 'text' => lang('Air Quality') ); $script = 'luftdaten_block.php'; $blck_ttls[$script] = lang('Our Luftdaten AQ sensor'); $blck_rfrs[$script] = 560; $blck_ppp [$script][] = array ('show' => true, 'popup' => 'AQ_popup.php?lang='.$used_lang, 'chartinfo' => true, 'text' => lang('Air Quality') ); $script = 'gov_aqi_block.php'; $blck_ttls[$script] = lang('Official AQ sensor station'); $blck_rfrs[$script] = 700; $blck_ppp [$script][] = array ('show' => true, 'popup' => 'AQ_popup.php?lang='.$used_lang, 'chartinfo' => true, 'text' => lang('Air Quality') ); $script = 'moon_block.php'; $blck_ttls[$script] = lang('Moonphase information'); $blck_rfrs[$script] = 1800; $blck_ppp [$script][] = array ('show' => true, 'popup' => 'moon_popup.php', 'chartinfo' => true, 'text' => lang('Moon info') ); $blck_ppp [$script][] = array ('show' => true, 'popup' => 'meteors_popup.php', 'chartinfo' => true, 'text' => lang('Meteors') ); $script = 'forecastWXSIMblock.php'; $blck_ttls[$script] = lang('Our WXSIM forecast'); $blck_rfrs[$script] = 60; $blck_ppp [$script][] = array ('show' => true, 'popup' => 'forecastWXSIMdaily_popup.php', 'chartinfo' => true, 'text' => lang('Details') ); $blck_ppp [$script][] = array ('show' => true, 'popup' => 'forecastWXSIMtext_popup.php', 'chartinfo' => true, 'text' => lang('Forecast texts') ); $script = 'forecastECblock.php'; $blck_ttls[$script] = lang('Environment Canada forecast'); $blck_rfrs[$script] = 1800; $blck_ppp [$script][] = array ('show' => true, 'popup' => 'forecastECdaily_popup.php', 'chartinfo' => true, 'text' => lang('Daily') ); $blck_ppp [$script][] = array ('show' => true, 'popup' => 'forecastECtext_popup.php', 'chartinfo' => true, 'text' => lang('Texts') ); $blck_ppp [$script][] = array ('show' => true, 'popup' => 'forecastECdetails_popup.php', 'chartinfo' => true, 'text' => lang('Hourly') ); $script = 'forecastWUblock.php'; $blck_ttls[$script] = lang('WeatherUnderground forecast'); $blck_rfrs[$script] = 1800; $blck_ppp [$script][] = array ('show' => true, 'popup' => 'forecastWUdaily_popup.php', 'chartinfo' => true, 'text' => lang('Details') ); $blck_ppp [$script][] = array ('show' => true, 'popup' => 'forecastWUtext_popup.php', 'chartinfo' => true, 'text' => lang('Forecast texts') );