• English
  • Nederlands

User Tools

Site Tools


en:check_these_also

Install the Leuven-Template step 4 of 7

Only change the text in the line itself if you are instructed to do so.
In a lot of cases, just add a comment mark, or remove one.

Some optional pages for the menu

Contact page

#---------------------------------------------------------------------------
# CHECK         contact info
#---------------------------------------------------------------------------
$SITE['contactPage']	= true;  // #####    do we want a contact page
$SITE['contactDir']	= 'contact/';
$SITE['contactScript']	= $SITE['contactDir'].'incContact.php';

If you do not want to have a contact page, set the first setting to false.
if you leave ats is, there will also be a small link in the footer to the contact page and the page will be in the menu as a separate choice. The two other settings are changed when you want to use your very own page script.

Mobile devices support

#---------------------------------------------------------------------------
# CHECK         mobile site available
#---------------------------------------------------------------------------
$SITE['useMobile']      = true;    // ##### allow use of small mobile site site for phones and so on

There are a few pages with support for phones and other small devices with an internet browser. you can check this page yourself from the menu to see what possibillities are offered here.

When visitors with a tablet browse to your site, they are directed to the normal site. Only small screen phones a.s.o. are directed to the mobile pages.

We skip numerous settings to come back later

The settings for the different forecasts can wait. The have there own tab

we proceed with the important settings for WeatherUnderground (your free remote data storage) and with settings for other companies which use your weatherdata.

Partner sites

Line 395 in wsUserSettings.php. This number will be different from release to (interim) release.

#---------------------------------------------------------------------------
# IMPORTANT     Partner information:
#---------------------------------------------------------------------------
# 	your id's for weather sites, mostly used to display logo and make a link to your weatherdata on their site
#	set to false if you do not cooperate with them,

Weather Underground

If you are not a member of Weather Underground set the first setting to 'no', otherwise WU history pages will be in your menu but will contain invalid data.

$SITE['wuId']		= false;
#$SITE['wuId']		= 'IVLAAMSG47';	// ##### the ID of your personal weather station at the Wunderground site or false if you are not a member
$SITE['wuStart']	= '22-06-2011'; // #####  Stations first day of operation at wunderground format dd-mm-yyyy for wu history pages 

$SITE['wuId'] should be set with your id at the WeatherUnderground site. An example:'IOOSTVLA8'; Carefully set the start date of your membership at WeatherUnderground. The format is dd-mm-yyyy. So the code shows a start date of June, 22th 2011. You can check this at youw WU site page, example of my page:
http://www.wunderground.com/personal-weather-station/dashboard?ID=IVLAAMSG47

The different pages in the menu will now display your data and not that from a test-account. The date is used by the scripts for the history pages / graphs to know which dtime-frame is valid.

  • “weather reports” = “colored blocks”
  • “almanac” ⇒ “WU History text” = Wunderground Station History Script from Jim McMurry
  • “almanac” ⇒ “WU History graphs” = WU-Graphs from Radomir Luza

Other companies to which you can upload your data to

$SITE['hwaID']		= false; 	// ##### Example  $SITE[hwaID']		= 'abcdefg';
$SITE['wowID']		= false;	// ##### Example  $SITE['wowID']        = 1234567;
$SITE['awekasID']	= false;	// ##### Example  $SITE['awekasID']	= 1234;
$SITE['anWeID']		= false;	// ##### Example  $SITE['anWeID']	= 1234567;
$SITE['pwsID']		= false;	// ##### Example  $SITE['pwsID']	= 'abcd99';
$SITE['cwopId']		= false;	// ##### Example  $SITE['cwopId']       = 'C6440';
$SITE['weatherlinkID']	= false;	// ##### Example  $SITE['weatherlinkID']= 'abcdefgh';
$SITE['wp24ID']		= false;   	// ##### true or false
$SITE['uswg']		= false;   	// ##### true or false
#---------------------------------------------------------------------------
# IMPORTANT     Mesonet id's and names
#---------------------------------------------------------------------------
$SITE['mesoID']		= false;			// #####  'WCWN';  'BNLWN';  do not forget the quote's  !!!
$SITE['mesoName']	= 'xyz Weather Network';	// #####  'Benelux Weather Network';
$SITE['mesoLink']	= 'http://www.xyz.com/';	// #####  'http://www.beneluxweather.net/';
#
$SITE['ewnID']		= true; 			// #####

Your id's for weather sites, mostly used to display logo and generate a link to your weatherdata on their site. You should leave them set to false if you do not cooperate with them. If the Id fields are set to false, no partner information is displayed in the sidebar or bottom area.

Where to change what:
Display partners logo in side area or bottom area or not at all:
⇒ user settings at information_of_partners_equipment_and_other_websites

Set the sequnce in which these logo's will be displayed:
⇒ script _my_texts/partners.php where you can rearrange the partners to be displayed and override any individual setting to not display

$arr_part_OK[]     = 'hwa';
#$arr_part_OK[]     = 'wow';
$arr_part_OK[]     = 'ewn';

The 'wow' partner is removed from display regardless of the setting in $SITE['wowID'] as the line is commented out.

Example: I am a member of HWA and my ID with them is wilsele. So i have to change the value in the setting from false to 'wilsele':

$SITE['hwaID']		= false; 

By doing this one must NOT forget to enclose the value in quotes or apostrophes, otherwise an error will occur. The correct setting is:

$SITE['hwaID']		= 'wilsele'; 

The following table list the partner ID's and the expected string-type you should enter. An URL is there as an example or to test your own ID.

settingnotepartner standaard verander invoorbeeld URL
hwaID Het Weer Actueelfalse'name' http://www.hetweeractueel.nl/weer/wilsele/actueel/
wowID 1 UK Met Office
Weather Observations Website
false'number' http://wow.metoffice.gov.uk/sitehandlerservlet?requestedAction=READ&siteID=9761581
awekasID 1 AWeKas false 'number' http://www.awekas.at/nl/instrument.php?id=8506
anWeID Anything Weatherfalse 'number' http://www.anythingweather.com/current.aspx?id=48099
pwsID 1 xyz false'name'http://www.pwsweather.com/obs/WILS01.html
cwopId Citizen Weather Observer Program false'key' http://weather.gladstonefamily.net/site/D8113
weatherlinkID 1 Weatherlink false'name' http://www.weatherlink.com/user/wvdkuil/index.php?view=main&headers=1
wp24ID wp24ID false'name'???
mesoID 2 MesoIDfalsetruenone
ewnID 3 European Weather Network false true none

note 1) The information will be displayed in a frame on your website, you will not be redericted.
Example: http://www.weerstation-wilsele.be/index.php?p=82&s=awekas

note 2) mesoID: This is used to select your Regional Weather Network if you are a member of one. There is no seperate page with your own information for the Regional Weather Network, just one page with all cooperating weatherstations and their weather data. If you are a member of for instance the Benelux Weather Netwerk, you adapt the settings as in this example::

$SITE['mesoID']		= 'BNLWN';				// #####  'WCWN';  'BNLWN';
$SITE['mesoName']	= 'Benulx Weather Network';		// #####  'Benulx Weather Network';
$SITE['mesoLink']	= 'http://www.beneluxweather.net/';	// ##### 'http://www.beneluxweather.net/';

note 3) EWN: Set to true if you are a member of EWN. The checking by EWN is not based on an ID but on the website address the maps are loaded from. So if you are not a member but change this setting to true, the EWN page will be in the menu, but it will display an empty map.

Your weather-station

Optional sensors attached to your station ?

$SITE['UV']       	= true;  	// ##### set to false if no UV sensor
$SITE['SOLAR']    	= true;  	// ##### set to false if no Solar sensor
$SITE['tempInside']     = true;  	// ##### set to false if no inside temp sensor available 
$SITE['extraTemp1']     = true;  	// ##### set to false if no extra sensor available 
$SITE['extraTemp2']     = true;  	// ##### set to false if no extra sensor available 

The setting for an UV and solar sensor are clear. If you have them AND your weather-program supports them, set these settings to true.

Basically the other settings often used for inside temperature and a glass-house or pool-temp. But they can be used for any temperature sensor you want to use. Even if used on the default locations (start-page below the thermometer image) you can give them any name you want. Example: If you have a temp-sensor in your barn and you want to check it on the startpage, use one of the two sensors, use the config program later and set the correct name to be displayed in the language file. There is an extensive example in: Other things you might need

Is it a Davis station ?

#---------------------------------------------------------------------------
# Weather Station you are using
$SITE['DavisVP']  	= false;  	// ##### set to false if not a Davis VP weather station

Set to true if you are using a Davis weather-stationfor which the extra forecast texts are available and can be shown. If you set to false those forecast text will not be shown. All but DW (Davis Weatherlink.com) weatherprograms will deliver that Davis text

Your weatherstation on every page ?

In the side- or bottom-area you can display an icon and a link of your weather station.

#---------------------------------------------------------------------------
$SITE['stationShow']	= true;		// ##### show a picture and text of your weather station in sidecolomn or bottom area
#
$SITE['stationTxt']	= 'Davis VP2 weatherstation';
$SITE['stationJpg']	= 'img/davis_logo.png';
$SITE['stationLink']	= 'http://www.davisnet.com/weather/products/professional-home-weather-stations.asp';
#
# example for Alecto:
#$SITE['stationTxt'] 	= 'Alecto WS-5000 ECO';	    	# the brand and name of your station
#$SITE['stationJpg'] 	= 'img/alecto.jpg';      	# a small picture of your station
#$SITE['stationLink']	= 'http://www.alecto.nl/TradePoint/Item_View?itemNo=WS-5000%20ECO'; 
#							# the website for more information about  your weatherstation

If $SITE['stationShow'] is set to true you have to supply some information about your weather-station. The Davis station is selected in the above example. There is an Alecto example also but that is fully commented out. You can use either example to adept these values for your weatherstation.

Your provider on every page ?

Similar to the information about the brand of our weather-station you can decide if you want to display information about the provider for your website. Set to true and adapt the example of GoDaddy so that it reflects your provider.

$SITE['providerShow']	= true;		// ##### show a picture and text of your provider in sidecolomn or bottom area
#					// set the information about your provider here
$SITE['providerTxt']	= 'My provider';                // you have to fill in your own information
$SITE['providerJpg']	= 'img/_provider.jpg';          // default picture
$SITE['providerLink']	= 'http://www.provider.xyz/';   // here also

Your weather-computer on every page ?

Similar to the information about the brand of your weather-station you can decide if you want to display information about the computer you run your weather-program on. Set to true and adapt one of the examples so that it reflects your computer.

$SITE['pcShow']		= true; // ##### show a picture and text of your pc in sidecolomn or bottom area
#																// set the information about your pc here
$SITE['pcTxt']		= 'My Computer';
$SITE['pcJpg']		= 'img/_computer.png';
$SITE['pcLink'] 	= 'http://www.computer.xyz';

Your weather-program on every page ?

If you do not want the link and the image of your weatherprogram on every page, set to false.

All information ofr every program si already in the scrpis, no need to add them yourself.

$SITE['WXsoftwareShow']	= true;	

Your upload folder

I strongly advise to use the default upload location weather27/upload?? were ?? stands for the two letter code for your weatherprogram. Example MH for Meteohub.

#---------------------------------------------------------------------------
# IMPORTANT     will you be uploading to the default upload folder (uploadXX) where xx is the short code for your weather program
#---------------------------------------------------------------------------
#
$SITE['standard_upload']= true;
#       If you do not want or are not able to upload to the default folder set the correct upload folder here
#     

If you realy have to change the upload-location set the first setting to false

#$SITE['uploadDir']	= '../';        // #####        example for upload to root
#$SITE['clientrawDir'] 	= '../';
#$SITE['graphImageDir'] = '../';

Only change the lines which HAVE to change. Example: A current Cumulus user is uploading all data for the template to uploadCU. But the images are uploaded to the old site, so to cumulus/images The line with

#$SITE['graphImageDir'] = '../';

has to be changed then to

$SITE['graphImageDir'] = '../cumulus/images/';
  • The comment mark is removed
  • The location is specified in two steps:
    • first part ../ which means 1 step from the template folder to the root,
    • and then to the folder cumulus/ and to the folder images/.

Other example: WeatherDisplay users with a Saratoga template are used to uploading everything into the root. They have to modify all three lines by removing the comment mark.

$SITE['uploadDir']	= '../';        // #####        example for upload to root
$SITE['clientrawDir'] 	= '../';
$SITE['graphImageDir'] = '../';

If you change the upload folder copy (not move) all files in weather27/upload?? to the new upload folder. You are not yet uploading your own files yet and to test your changes you need the test-files. By copying the files to the new upload folder you can continue to test the implementation.

Datum / time format

Most weather-programs either use a standardized format fo dates, or they can tell themselves what format is used. For WVIEW, VWS and Weatherlink you have to tell the template what the format is of the dates uploaded by that weatherprogram.

Users of another weather program can skip the remainder of this page / tab and continue with the settings for the weather-forecasts.

In the settings below there are the most common settings already listed.
If your weather-program uses one of these formats:

  1. remove the comment mark on that line
  2. check if ALL other lines have a comment mark

Example: a date from your weather-program looks like: 18/12/15 and the current year is 2015.
So the format looks to be day month year with a / character between the parts.
I removed the comment mark for that date format below:

#$my_date_format = 'mm-dd-yyyy';  #    03-15-2015   march the 15th, 2015
#$my_date_format = 'mm-dd-yy';    #    03-15-15     march the 15th, 2015 without the century 20
#$my_date_format = 'mm/dd/yyyy';  #    03/15/2015   march the 15th, 2015
#$my_date_format = 'mm/dd/yy';    #    03/15-15     march the 15th, 2015 without the century 20

#$my_date_format = 'dd/mm/yyyy';  #    15/03/15     15th of march 2015
$my_date_format = 'dd/mm/yy';    #    15/03/15     15th of march 2015 without the century 20
#$my_date_format = 'dd-mm-yyyy';  #    15-03-2015   15th march 2015
#$my_date_format = 'dd-mm-yy';    #    15-03-15     15th march 2015 without the century 20 
#
#$my_date_format = 'other';      # set this one uncommented if none of the others is correct

If the format for your weather program is not in the list:

  1. add a comment mark to all lines
  2. remove the # ath the line with $my_date_format = 'other';

Now you have to specify how the date is formatted: first you choose the character used as separator:.

       $my_char_sep    = '/';  # example  12/25/2015
       $my_char_sep   = '-';   # example  01-12-2014
#       $my_char_sep   = ' ';   # example  20 3 2015  

In this setting it is a '-' As you know already the LAST setting without a comment mark is the one used.

Then you have to set the sequence of the three parts which form a date:

       $my_day         = 1  ;
       $my_month       = 2  ;
       $my_year        = 3  ;
en/check_these_also.txt · Last modified: 2015/05/30 10:10 (external edit)