User Tools

Site Tools


en:check_these_also

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:check_these_also [2015/05/23 13:18]
wvdkuil [Your weatherstation on every page ?]
en:check_these_also [2015/05/30 10:10] (current)
Line 1: Line 1:
 +====== Install the Leuven-Template step 4 of 7  ======
 +<WRAP tabs>
 +  * [[how_to_install|1]]
 +  * [[folder_contents|2]]
 +  * [[test_program|3]]
 +  * [[settings|Manually change the settings files]]
 +  * [[upload|5]]
 +  * [[menu|6]]
 +  * [[how_to_install7|7]]
 +</​WRAP>​
 +<WRAP important>​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.</​WRAP>​
 +<WRAP tabs>
 +  * [[settings|Introduction]]
 +  * [[check these first|Check these first]]
 +  * **[[check these also|You are here]]**
 +  * [[forecast settings|Verwachtingen]]
 +  * [[optinal settings|Optional]]
 +</​WRAP>​
 +===== Some optional pages for the menu  =====
 +==== Contact page ====
 +<​code>#​---------------------------------------------------------------------------
 +# CHECK         ​contact info
 +#​---------------------------------------------------------------------------
 +$SITE['​contactPage'​] = true;  // #####    do we want a contact page
 +$SITE['​contactDir'​] = '​contact/';​
 +$SITE['​contactScript'​] = $SITE['​contactDir'​].'​incContact.php';</​code>​
 +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 ​ ====
 +<​code>#​---------------------------------------------------------------------------
 +# CHECK         ​mobile site available
 +#​---------------------------------------------------------------------------
 +$SITE['​useMobile'​] ​     = true;    // ##### allow use of small mobile site site for phones and so on</​code>​
 +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 [[nl:​forecast_settings|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.
 +<​code>#​---------------------------------------------------------------------------
 +# 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,</​code>​
 +
 +==== 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.
 +<​code>​
 +$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 </​code>​
 +$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 ====
 +<​code>​
 +$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; // #####
 +</​code>​
 +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.
 +<WRAP info >
 +Where to change what:​\\ ​
 +Display partners logo in side area or bottom area or not at all: \\
 +=> user settings at [[en:​check_these_first#​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
 +<​code>​$arr_part_OK[] ​    = '​hwa';​
 +#​$arr_part_OK[] ​    = '​wow';​
 +$arr_part_OK[] ​    = '​ewn';​
 +</​code>​The '​wow' ​ partner is removed from display regardless of the setting in **$SITE['​wowID'​]** as the line is commented out.
 +
 +</​WRAP>​
 +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':<​code>​$SITE['​hwaID'​] = false; </​code>​
 +<wrap important>​By doing this one must NOT forget to enclose the value in quotes or apostrophes,​ otherwise an error will occur. The correct setting is:</​wrap>​
 +<​code>​$SITE['​hwaID'​] = '​wilsele';​ </​code>​
 +
 +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.
 +^setting^note^partner ^standaard ​ ^ verander in^voorbeeld URL^
 +|hwaID ​  ​| ​  |Het Weer Actueel|false|'​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 Weather|false| '​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  |MesoID|false|true|none|
 +|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::
 +<​code>​$SITE['​mesoID'​] = '​BNLWN';​ //​ #####  '​WCWN'; ​ '​BNLWN';​
 +$SITE['​mesoName'​] = '​Benulx Weather Network';​ //​ #####  '​Benulx Weather Network';​
 +$SITE['​mesoLink'​] = '​http://​www.beneluxweather.net/';​ //​ ##### '​http://​www.beneluxweather.net/';</​code>​
 +
 +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 ? ====
 +<​code>​$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 </​code>​
 +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: 
 +[[miscellaneous#​adding_one_extra_tag_value_to_be_used_on_your_start-page|Other things you might need]]
 +
 +==== Is it a Davis station ? ===
 +<​code>#​---------------------------------------------------------------------------
 +# Weather Station you are using
 +$SITE['​DavisVP'​] ​ = false; ​ // ##### set to false if not a Davis VP weather station</​code>​
 +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. ​
 +<​code>#​---------------------------------------------------------------------------
 +$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</​code>​
 +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.
 +<​code>​$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</​code>​
 +==== 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.
 +<​code>​$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';</​code>​
 +
 +==== 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.
 +<​code>​$SITE['​WXsoftwareShow'​] = true;​ </​code>​
 +===== Your upload folder =====
 +
 +<WRAP important>​
 +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.
 +</​WRAP>​
 +<​code>#​---------------------------------------------------------------------------
 +# 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
 +#     </​code>​
 +
 +If you realy have to change the upload-location set the first setting to **false**
 +<​code>#​$SITE['​uploadDir'​] = '​../'; ​       // #####        example for upload to root
 +#​$SITE['​clientrawDir'​] = '​../';​
 +#​$SITE['​graphImageDir'​] = '​../';</​code>​
 +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
 +<​code>#​$SITE['​graphImageDir'​] = '​../';</​code>​
 +has to be changed then to
 +<​code>​$SITE['​graphImageDir'​] = '​../​cumulus/​images/';</​code>​
 +  * 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.
 +<​code>​$SITE['​uploadDir'​] = '​../'; ​       // #####        example for upload to root
 +$SITE['​clientrawDir'​] = '​../';​
 +$SITE['​graphImageDir'​] = '​../';</​code>​
 +<WRAP important>​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.</​WRAP>​
 +
 +===== 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:
 +  - remove the comment mark on that line
 +  - 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:
 +<​code>#​$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</​code>​
 +If the format for your weather program is not in the list:
 +  - add a comment mark to all lines
 +  - 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:​. ​
 +<​code> ​      ​$my_char_sep ​   = '/'; ​ # example ​ 12/25/2015
 +       ​$my_char_sep ​  = '​-'; ​  # example ​ 01-12-2014
 +#       ​$my_char_sep ​  = ' '; ​  # example ​ 20 3 2015  </​code>​
 +In this setting it is a **'​-'​** <wrap important>​As you know already the LAST setting without a comment mark is the one used. </​wrap>​
 +
 +Then you have to set the sequence of the three parts which form a date:
 +
 +<​code> ​      ​$my_day ​        = 1  ;
 +       ​$my_month ​      = 2  ;
 +       ​$my_year ​       = 3  ;</​code>​
en/check_these_also.txt · Last modified: 2015/05/30 10:10 (external edit)