Leuven script for Met.No weather-forecast pages ( V3 )

Examples

Demo scriptWhat does this script
explanationFirst a page with all parts separate, beige background-color, explanations for every part of the page, fixed width.
normalA "normal" page, with all parts separate, page style in blue colors, adaptable width, metno icons
compactThe smallest possible view, but with all information combined into tabs, fixed width, transparent background, page style in green.
iconsThe icon-view, to be used on a startpage, adaptable width, metno icons, temperature color red/blue only
SaratogaAnd an example with the Saratoga template
LeuvenAnd here the script is used in the Leuven Template
DownloadYou can download the script here

How it works

Multiple forecast available for Yr.No - Met.No data

The widely used forecast data from the Norwegian Meteorological Institute and Yr.No is available in different xml streams. One of the differences is the way the location of the forecast is addressed. This script uses the LATITUDE LONGITUDE addressing and gets the data from the api.met.no website using a get (CURL) like http://api.met.no/weatherapi/locationforecast/1.9/?lat=50.8952&lon=4.6974

Using that addressing scheme an extensive xml is retrieved. It contains

  • a 9 day forecast, with 6 hour intervals
  • and a detailed forecast for approx. 2 days with a 1 hour interval

How does it work

Most forecast scripts work in a similar way

  1. Get the data from the data storage using some ID, we use here the map coordinates as ID
  2. Store the processed xml as an intermediate array in a cache-type folder on the webserver
  3. Generate all needed parts to be displayed, such as tables, graphs
  4. Display the data in the way the users/visitors of the website expects

1. Get the data

With the correct ID (?lat=50.8952&lon=4.6974) the information is loaded from the api.met.no site.

2. Save the the data for multiple use

As the forecast data has a "lifespan" of hours, it is advisable to save the data in a "cache" on the webserver so it can de re-used. This lowers the load on the Met.No servers and shortens the response time for the website vistors considerably.
In our case we partly process the xml and save a PHP array with already all unnecessary information filtered out and all UOM's converted to the required ones.

The data is only reloaded from the Met.no site as two timing constraints are met:

  1. a minimal period (default: two hours, set in the setting file) must have passed since previous access to the Met.No site
  2. and there must be new information available based on the previous xml which contains the time for the next forecast run

3. Generate needed HTML

While processing the intermediate array "forecast-by-forecast" the html for tables, graphs and so on is generated. In this case the following items are assembled

  • icon set
  • a meteogram's (graph) for 6 hour intervals
  • longer term (6-hour interval) tables
  • detailed (hour-hour) table

4. Display a complete page using the HTML building blocks

Using the definitions in the print-settings the page is assembled to include optional surrounding HTML and the needed parts which can be displayed in optional tabs.

Step by step description of scripts executed

There are several print??.php scripts available in the download which perform the steps just described in the correct order. These print??.php scripts differ only in the number of html parts which will be displayed.

The order of execution is then:

  1. print??.php - part 1
    In this script the settings are specified for which parts of the page should be displayed later. There are also settings for color, icons used, language. All these settings are located at the start of the script and only once customized to the needs of the website administrator.
    The HTML generation script metnoGenerateHtml.php is loaded next.
  2. metnoGenerateHtml.php - part 1
    The settings file is now read first
  3. metnoSettings.php
    This script includes all sorts of settings that (almost) never have to be changed and only serve for internal processing.
    • unit of measurement for the xml and the output to the user.
    • the correct latitude / longitude for loading the xml and finding the correct sun-rise sunset-times
    • time and date formats
    The script processes all settings, loads all general functions and loads the translation tables. Then it returns control to the calling script.
  4. metnoGenerateHtml.php - part 2
    Now the script metnoCreateArr.php to retrieve the xml is called.
  5. metnoCreateArr.php
    As the name of the script implies, the most important task is to store the xml in an intermediate array. The first action of the script is to check if the current cached array is still usable (2 hours lifespan). If so the array is returned and control goes back to the html generation script. If the cache time is exceeded the intermediate array ir retrieved and checked for the next forecast run by MetNo. If a new forecast should be available, a new xml file is fetched from the Met.No site. The information is processed, unit conversion done and then all information is stored in the array in the cache. Then the array and ontrol goes back to the html generation script.
  6. metnoGenerateHtml.php - part 3
    The array is used to generate the html for all parts to be displayed.
  7. print??.php - part 2
    Based on the settings the required html parts are sent to the users browser together with the optional head body javascipts

Install


Stand-alone - include

  1. Download this script using this link
  2. Unzip the download
  3. Move (ftp) the folder wsmetno3 to the main folder of your website. Often this is the root.
  4. Set the permissions for the wsmetno3/cache/ folder and its contents at 777, otherwise an error message
    [function.file-put-contents]: failed to open stream: Permission denied
    will occur. All retrieved forecasts are stored in this cache folder.
  5. Test the installation with www.website.xx/wsmetno3/printfull.php. Please replace www.website.xx/ with the name of your own website. This test uses the data and settings for my Leuven area. This script should run without any errors before you can proceed to the next step.
  6. Check and adapt the Settings as described in the Settings tab on the top of this page.
  7. During adapting the settings script, continue to test often using the printfull.php script.
  8. When all settings seem correct, copy one of the print??.php scripts and give it a meaningfull name, such as "myMETNOforecast.php". On the first tab you see the differences between the print??.php scripts.
  9. Now adapt the settings in the first part of your "myMETNOforecast.php" script.
    Again, check the last tab about the meaning of the settings.
  10. If you are completely satisfied with your "myMETNOforecast.php" script, you can transfer the settings to a script for your website.
  11. You should use the "myMETNOforecast.php" as a starting point.
  12. To implement the script in an iFrame is a possibility.
  13. Or simply paste the whole html page into your own scripts through
          include "myMETNOforecast.php";
    Please ensure that
    1. The generation of the HTML body is disabled in the settings
      $includeHTML	 = false; 		// #####         head-body-css-scripts are loaded
      
    2. That the CSS is loaded into your page by including these lines in the head section of your page
      <link rel="stylesheet" href="./wsmetno3/metno.css" type="text/css">
      
    3. And that the correct java scripts are loaded from the correct folder at the bottom of the html page.
      <script type="text/javascript" src="./wsmetno3/javascripts/tabber.js"></script>
      <script type="text/javascript" src="./wsmetno3/javascripts/jquery.js"></script>
      <script type="text/javascript" src="./wsmetno3/javascripts/highcharts.js"></script>
      <script type="text/javascript">$=jQuery;jQuery(document).ready(function(){for(n in docready){docready[n]()}});</script>
      

These files and folders can be found in the download after unzip:

nameWhere is it used for
_read-me.txttexta summary of all this information
cachefoldercache folder
imgfolderThe images used by the scripts.
  • default-icons: The KDE versions of the icons with the MetNo/YrNo coding-sheme of their names
  • wind_icons as used in the tables
  • wind_icons_small for use in the grpahs / meteogram
  • yrno_icons the exact copies of the metno/yrno icons are cached here to lower the load on the met.no servers.
  • some additional icons are als found in this folder
javascriptsfolderThe required javascripts.
  • highcharts.js the graphs are made with this script
  • jquery.js required for highcharts.js
  • tabber.js to create the tabs
langfolderThe translation files, with a separate file for each language
The language translation routines from Saratoga or Leuven are NOT used.
metno.cssCSSCSS for page layout
metnoCreateArr.phpscript Loads the xml forecast, saves pre-processed information in an array in the cache, returns cache information to calling script
metnoGenerateHtml.phpscript Main script which generates all HTML for all the graphs and tables
metnoIconOnly.phpscript Leuven-template only: modified version of printicons.php
metnoMeteogramOnly.phpscript Leuven-template only: modified version of print??.php
metnoSettings.phpscript Main settings for all scripts, only partly used in the template environments
printfull.phpscriptExample script for full page
printicons.phpscriptExample script icons only part
printsmall.phpscriptExample script with everything in the smallest possible representation
startLeuven.phpscriptScript to use the forecast from within the Leuven-template
wxStartMetNofct.phpscript Start script to be moved to the main folder in a saratoga-template environment
zz-iconsreport.phpscriptMultiple new icons were introduced with release 1.9 of the metno / yrno api. This small script can be used to display the current icons and can be used when replacing the icons with your icon sets.

Saratoga

  1. Download this script using this link
  2. Unzip the download
  3. Move (ftp) the folder wsmetno3 to the main folder of your website. Often this is the root.
  4. Set the permissions for the wsmetno3/cache/ folder and its contents at 777, otherwise an error message
    [function.file-put-contents]: failed to open stream: Permission denied
    will occur. All retrieved forecasts are stored in this cache folder.
  5. Test the installation with www.website.xx/wsmetno3/printfull.php. Please replace www.website.xx/ with the name of your own website. This test uses the data and settings for my Leuven area. This script should run without any errors before you can proceed to the next step.
  6. Copy the script wxStartMetNofct.php to the base directory of the Saratoga template. That is often the root.
  7. Customize the script. use the Settings tab at the top right of this page as a guide
  8. Create a menu entry in your menu file. Often this has the name flyout-menu.xml and a menu entry looks like:
    <item caption="MetNo Forecast" link="wxstartmetno.php" title="METNO Forecast"/>"

These files and folders can be found in the download after unzip:

nameWhere is it used for
_read-me.txttexta summary of all this information
cachefoldercache folder
imgfolderThe images used by the scripts.
  • default-icons: The KDE versions of the icons with the MetNo/YrNo coding-sheme of their names
  • wind_icons as used in the tables
  • wind_icons_small for use in the grpahs / meteogram
  • yrno_icons the exact copies of the metno/yrno icons are cached here to lower the load on the met.no servers.
  • some additional icons are als found in this folder
javascriptsfolderThe required javascripts.
  • highcharts.js the graphs are made with this script
  • jquery.js required for highcharts.js
  • tabber.js to create the tabs
langfolderThe translation files, with a separate file for each language
The language translation routines from Saratoga or Leuven are NOT used.
metno.cssCSSCSS for page layout
metnoCreateArr.phpscript Loads the xml forecast, saves pre-processed information in an array in the cache, returns cache information to calling script
metnoGenerateHtml.phpscript Main script which generates all HTML for all the graphs and tables
metnoIconOnly.phpscript Leuven-template only: modified version of printicons.php
metnoMeteogramOnly.phpscript Leuven-template only: modified version of print??.php
metnoSettings.phpscript Main settings for all scripts, only partly used in the template environments
printfull.phpscriptExample script for full page
printicons.phpscriptExample script icons only part
printsmall.phpscriptExample script with everything in the smallest possible representation
startLeuven.phpscriptScript to use the forecast from within the Leuven-template
wxStartMetNofct.phpscript Start script to be moved to the main folder in a saratoga-template environment
zz-iconsreport.phpscriptMultiple new icons were introduced with release 1.9 of the metno / yrno api. This small script can be used to display the current icons and can be used when replacing the icons with your icon sets.

Leuven

  1. Download this script using this link
  2. Unzip the download
  3. Move (ftp) the folder wsmetno3 to the main folder of your website. Nearly always this is for the Leuven-template the weather2 folder.
  4. Set the permissions for the wsmetno3/cache/ folder and its contents at 777, otherwise an error message
    [function.file-put-contents]: failed to open stream: Permission denied
    will occur. All retrieved forecasts are stored in this cache folder.
  5. Test the installation with www.website.xx/wsmetno3/printfull.php. Please replace www.website.xx/ with the name of your own website. This test uses the data and settings for my Leuven area. This script should run without any errors before you can proceed to the next step.
  6. Adjust the settings in the wsmetno3/startLeuven.php script using the description in the tab "Settings" as a guide.
  7. Modify the menu entry in your menu file wsMenuData.xml. Should look like this:
    <nr="51-1" 			
            show="metnoPage"
    	link="wsMetNo/metnoFullPage.php"
    	caption="MetNo forecast"
    	title="Weather outlook by Met.No - YR.NO"
    />
    
    Change the link for the new script-name (startLeuven.php) and the new folder-name (wsmetno3)
    <item 	nr="51-1" 			
            show="metnoPage"
    	link="wsmetno3/startLeuven.php"
    	caption="MetNo forecast"
    	title="Weather outlook by Met.No - YR.NO"
    />
    
  8. There are multiple versions of the Leuven-template in use. The next desciption is especially for the newer releases such as 2.4 or 2.5.
    A easy adaptable start page is used in these scripts..
    We need to make sure that older scripts, which use only parts of the metno script, still function after the next api-metno change in September 2014. We replace therefor two scripts in the metno "older version" folder.
    Copy from the download metnoIconOnly.php and metnoMeteogramOnly.php to the weather2/wsmetno/ folder.

These files and folders can be found in the download after unzip:

nameWhere is it used for
_read-me.txttexta summary of all this information
cachefoldercache folder
imgfolderThe images used by the scripts.
  • default-icons: The KDE versions of the icons with the MetNo/YrNo coding-sheme of their names
  • wind_icons as used in the tables
  • wind_icons_small for use in the grpahs / meteogram
  • yrno_icons the exact copies of the metno/yrno icons are cached here to lower the load on the met.no servers.
  • some additional icons are als found in this folder
javascriptsfolderThe required javascripts.
  • highcharts.js the graphs are made with this script
  • jquery.js required for highcharts.js
  • tabber.js to create the tabs
langfolderThe translation files, with a separate file for each language
The language translation routines from Saratoga or Leuven are NOT used.
metno.cssCSSCSS for page layout
metnoCreateArr.phpscript Loads the xml forecast, saves pre-processed information in an array in the cache, returns cache information to calling script
metnoGenerateHtml.phpscript Main script which generates all HTML for all the graphs and tables
metnoIconOnly.phpscript Leuven-template only: modified version of printicons.php
metnoMeteogramOnly.phpscript Leuven-template only: modified version of print??.php
metnoSettings.phpscript Main settings for all scripts, only partly used in the template environments
printfull.phpscriptExample script for full page
printicons.phpscriptExample script icons only part
printsmall.phpscriptExample script with everything in the smallest possible representation
startLeuven.phpscriptScript to use the forecast from within the Leuven-template
wxStartMetNofct.phpscript Start script to be moved to the main folder in a saratoga-template environment
zz-iconsreport.phpscriptMultiple new icons were introduced with release 1.9 of the metno / yrno api. This small script can be used to display the current icons and can be used when replacing the icons with your icon sets.

Settings


Stand-alone - include


You find the most important settings in the metnosettings.php script.

  • You can specify if you want to use the YrNo icons or the KDE icons on your pages. If set to false the KDE icons are used. If set to true the YrNo icons are used. These icons are cached and can easily be replaced with other icon sets. Check them out in the /img/ folder. The KDE icons are in the default_icons folder.
    $iconsOwn	= false;        // #####    use original yrno icons or our general icons (false)
    

  • Please use a descriptive name for your weatherstation and the surrounding area. This name is displayed in the (optional) heading-line on the forecast page
    $yourArea	= 'yourArea';           // ##### Leuven country side
    $organ	        = 'yourStationName';    // ##### Wilsele weather
    

  • The forecast information is retrieved from the MetNo site based on the map coordinates of your weatherstation. Also the sunrise and sunset times are calculated using your stations latitude/longitude. Be aware that the decimal coordinate system is used. Not the HH MM SS.SS system. North of the equator is positive. West of "greenwich" is negative.
    $latitude	= '50.89518';   // ##### North=positive, South=negative decimal degrees
    $longitude	= '4.69741'; 	// ##### East=positive, West=negative decimal degrees
    

  • For testing, leave as is. For integrating the script in your own page, set this to the correct character set used.
    $charset	= 'UTF-8';	// ##### scripts default to UTF-8, change if necessary to ISO-8859-1'
    

  • Setting $lower to true will convert all texts to lowercase.
    $lower		= false;	// ##### convert all texts to lowercase (true) or leave as is (false)
    

  • Setting $tempSimple to true will use only two colors for the temperature display.
    $tempSimple	= false;	// ##### if you want blue/red temp colors set to true.  If set to false every degree has its own color
    


The next settings in the metnosettings.php script are used for units of measurement and date/time formats.

  • We describe one of these UOM settings in more detail. They are all adapted the same way.
    For every unit there are different settings but ALL possible settings are already in the script. Do not change the value at the right of the = as this will give errors for sure. Select only the one you want to use. Default the first one is made active by removing the comment mark on the first position of the line. So if you want to change the uom for temperature from Celcius to Fahrenheit:
    • You remove the comment mark for $uomTemp = '&deg;F';
    • And type a comment mark for $uomTemp = '&deg;C';
    #-----------------------------------------------------------------------
    # units of measurement UOM      // ##### set them the same as used on your other webpages
    #-----------------------------------------------------------------------
    $uomTemp	= '&deg;C';	
    #$uomTemp	= '&deg;F';
    

  • Most of the uoms have only two choices. But always end with one uom per weather value without a comment mark and all the others per weather value with a comment mark.
    $uomRain	= ' mm';
    #$uomRain	= ' in';
    

    $uomWind 	= ' km/h';
    #$uomWind 	= ' kts';
    #$uomWind 	= ' m/s';
    #$uomWind 	= ' mph';
    

    $uomBaro	= ' hPa';
    #$uomBaro	= ' mb';
    #$uomBaro	= ' inHg';
    

    $uomSnow	= ' cm';
    #$uomSnow	= ' in';
    

    $uomDistance	= ' km';
    #$uomDistance	= ' mi';
    

  • Here we set the format the date and time are displayed. Again by adding and removing comment marks.
    #-----------------------------------------------------------------------
    # date and time settings
    #-----------------------------------------------------------------------
    $timeFormat	 = 'd-m-Y H:i';	        // 31-03-2012 14:03
    #$timeFormat     = 'M j Y g:i a';       // March 31 2012 2:03 pm
    $timeOnlyFormat	 = 'H:i';	        // 14:03  (hh=00..23);
    #$timeOnlyFormat = 'g:i a';             // 2:03 pm
    $hourOnlyFormat	 = 'H';		        // 14  
    #$hourOnlyFormat = 'ga';                // 2pm
    $dateOnlyFormat	 = 'd-m-Y';	        // 31-03-2013
    #$dateOnlyFormat = 'M j Y';             // March 3 2013
    $dateLongFormat	 = 'l d F Y';	        // Thursday 3 january 2013
    #$dateLongFormat = 'l M j Y';           // Thursday January 3 2013
    

  • This setting is extremely important as all date/time information is translated to your own area. You can find your time-zone at this page on the PHP website
    $timezone	= 'Europe/Brussels';	// Time zone for the whole of western europe, 
    


The following settings are used for all versions of the scripts. You find those settings of the start of every print??.php script.

  • # ---------------HERE YOU NEED TO MAKE SOME CHANGES --------------------
    # 
    $defaultWidth		= '96%';	// set do desired width 999px  or 100%
    $defaultMargin          = '10px';
    #
    # what parts should be printed
    #
    $times                  = true;        // this forecast and next forecast times
    #       icons for top of page or startpage
    $iconGraph		= true; 	// icon type header  with 4 icons for each day (6 hours data)
    $topCount		= 8;		// max nr of day-part forecasts in icons
    #       meteogram
    $chartsMeteogram	= true;	        // high charts meteogram -  one colom for every 6 hours  
    $chartsMeteogramHeight  = '340px';
    $MeteogramInTabs	= false; 	// high charts graph separate (false) or in a tab (true)
    #
    $metnoTable		= true;		// table with one line for every 6 hours
    $metnoDetailsTable	= true;		// table with one line for every 3 or 1 hours
    $tableHeight            = '500px';      // no restricted height use ''  - restrict use number of pixels: '500px' 
    $tableInTabs            = true;         // put tables in tabs
    

  • If using outside a template these settings specify the 'look' of the resulting page.
    #-----------------------------------------------------------------------
    # Customize the printed page settings here:
    #
    $includeHTML		= true; 	// head body css scripts  are loaded
    $javaOutput             = true;		// javascripts are printed if set to true 
    
    $colorClass		= 'blue';	// pastel green blue beige orange 
    $pageWidth		= '100%';	// set do disired width 999px  or 100%
    

  • If running these scripts from a different folder, specify the folder here.
    #-----------------------------------------------------------------------
    # where are we? Specify the folder the scripts are executing from
    $scriptDir	        = './';         // same folder as this script
    #$scriptDir	        = './wsmetno3'; // other folder
    # --------------- END OF SETTINGS --------------------------------------
    

Saratoga


The settings are located in the first part of thewxStartMetnoFct.php script.
You copied this script during install to the main folder (often the root) of the Saratoga template.


  • First two settings are for the width and margin of the foecast part on the page.
    # ---------------HERE YOU NEED TO MAKE SOME CHANGES --------------------
    # 
    $defaultWidth		= '96%';	// set do desired width 999px  or 100%
    $defaultMargin          = '10px';
    

    Now you have to specify which parts you do not want to display by changing the corresponding setting form true to false.
  • The $times setting is used for the part with your stations name,area and the times of the current and next forecast.
    $times                  = true;        // this forecast and next forecast times
    

  • The $iconGraph setting displays the icons with some weather information.
    the $topCount setting specifies the number of icons to be displayed. The standard narrow CSS as used in the Saratoga template can only cope with 8 icons next to eacht other.
    #       icons for top of page or startpage
    $iconGraph		= true; 	// icon type header  with 4 icons for each day (6 hours data)
    $topCount		= 8;		// max nr of day-part forecasts in icons
    

  • The $chartsMeteogram setting sets the display of the combined graph.
    $chartsMeteogramHeight sets the height of the graph, 340px is the minimum you should use
    $MeteogramInTabs is used for combining the grpah with the tables into one tabbed area.
    #       meteogram
    $chartsMeteogram	= true;	        // high charts meteogram -  one colom for every 6 hours  
    $chartsMeteogramHeight  = '340px';
    $MeteogramInTabs	= false; 	// high charts graph separate (false) or in a tab (true)
    

  • With the$metnoTable and $metnoDetailsTable setting, you specify the tables you want to display.
    With $tableInTabs you decide if you want a tabbed interface
    $tableHeight is the maximum height for the tables, a scrollbar is added to the right. When using the setting $tableHeight = ''; the complete (long) table is displayed.
    $metnoTable		= true;		// table with one line for every 6 hours
    $metnoDetailsTable	= true;		// table with one line for every 3 or 1 hours
    $tableHeight            = '500px';      // no restricted height use ''  - restrict use number of pixels: '500px' 
    $tableInTabs            = true;         // put tables in tabs
    



  • There are two different sets of icons available in the download. The standard MetNo/YrNo icons and the "default" icons as used by other leuven scripts, which are the clear KDE icons.
    # -------most of the other settings are copied Settings.php
    # -------these you have to specify yourself 
    #
    $iconsOwn	= true; 		// #####        use original yrno icons or our general icons (false)
    

  • When $lower is set to true, all texts will be displayed in lowercase only.
    $lower          = false;                // #####	convert all texts to lowercase
    

  • Default the temperature values are displayed in different colors for every degree. Here you can choose to use only two colors, blue and red.
    $tempSimple	= false;		// #####        false = we want colorfull temps;  true = red blue temps
    

  • Not all versions of a template has identical settings files. The next two settings are often missing and you specify them here. Default the metric versions of display are used. When you remove the comment mark (#) on the first position of the other two settings, the Us versions will be used.
    $hourOnlyFormat	 = 'H';		        // 14  
    #$hourOnlyFormat = 'ga';                // 2pm
    $dateLongFormat	 = 'l d F Y';	        // Thursday 3 january 2013
    #$dateLongFormat = 'l M j Y';           // Thursday January 3 2013
    #
    # ---------------END OF USER CHANGES - LEAVE REST OF SCRIPT AS IS ------
    

All other settings, such as language and UOM's are copied from your Saratoga $SITE settings as specified in your Settings.php script.

Leuven


The settings are located in the first part of the startLeuven.php script.
THe other start scripts (metnoIconOnly.php and metnoMeteogramOnly.php) contain similar settings


  • The first setting sets the default margin.
    # ---------------HERE YOU NEED TO MAKE SOME CHANGES --------------------
    # 
    $defaultMargin          = '10px';
    

    Now you have to specify which parts you do not want to display by changing the corresponding setting form true to false.
  • The $times setting is used for the part with your stations name,area and the times of the current and next forecast.
    $times                  = true;        // this forecast and next forecast times
    

  • The $iconGraph setting displays the icons with some weather information.
    the $topCount setting specifies the number of icons to be displayed. The standard narrow CSS as used in the Saratoga template can only cope with 8 icons next to eacht other.
    #       icons for top of page or startpage
    $iconGraph		= true; 	// icon type header  with 4 icons for each day (6 hours data)
    $topCount		= 8;		// max nr of day-part forecasts in icons
    

  • The $chartsMeteogram setting sets the display of the combined graph.
    $chartsMeteogramHeight sets the height of the graph, 340px is the minimum you should use
    $MeteogramInTabs is used for combining the grpah with the tables into one tabbed area.
    #       meteogram
    $chartsMeteogram	= true;	        // high charts meteogram -  one colom for every 6 hours  
    $chartsMeteogramHeight  = '340px';
    $MeteogramInTabs	= false; 	// high charts graph separate (false) or in a tab (true)
    

  • With the$metnoTable and $metnoDetailsTable setting, you specify the tables you want to display.
    With $tableInTabs you decide if you want a tabbed interface
    $tableHeight is the maximum height for the tables, a scrollbar is added to the right. When using the setting $tableHeight = ''; the complete (long) table is displayed.
    $metnoTable		= true;		// table with one line for every 6 hours
    $metnoDetailsTable	= true;		// table with one line for every 3 or 1 hours
    $tableHeight            = '500px';      // no restricted height use ''  - restrict use number of pixels: '500px' 
    $tableInTabs            = true;         // put tables in tabs
    



  • All other settings, such as language and UOM's are copied from your SITE settings as specified in your wsSettings.php script.
    #
    # ---------THE FOLLOWING SETTINGS ARE COPIED FROM WSSETTINGS.PHP -------
    #