Index PHPmyEasyWeather PHPmyEasyWeather Homepage

Home
Demo
FAQ
Download
> Documentation
Contact
      

Installation

Installation -- Information about installation and general settings

Once you have downloaded and extracted the PHPmyEasyWeather package in an PHP enviroment it should work without any changes starting the index.html file in the main directory. The only important thing is to chmod the two directories (taf/ and metar/) contained in the buffer/ directory with 777 if running on a Unix/Linux system.

Be sure that the package has the following content:

  • LICENSE.TXT - the GNU General Public License
  • phpmyeasyweather.inc.php - the main php - file for including in your homepage
  • index.html - start it to see a first demo of PHPmyEasyWeather
  • icao_db (directory) - it contains information of about 4,000 airports
  • documentation (directory) - self-explanatory
  • buffer/ (directory) - will contain buffered data
  • weatherpics/ (directory) - contains weather graphics

Regardless of this there is the possibility to make some changes in the phpmyeasyweather.inc.php - file. Open it with a text editor (donīt use a word processor, better to have an editor as e.g. note tab) and find the GLOBAL VARIABLE SETTINGS - area, there you can set the following variables:

$buffer_time_metar = 2;

The buffering time for METAR information. A METAR will be reloaded after the buffered one is older than the indicated value in hours. Note: The lower the value the more traffic!

$buffer_time_taf   = 6;

The buffering time for TAF information. A TAF will be reloaded after the buffered one is older than the indicated value. It makes no sense to decrease it more than 6 - normally airports issue new weather TAFīs each 6 hours.

$buffer_night_yes  = 1;

Most airports donīt issue new METAR info during nighttimes (0:00 to 5:00 local time). So if you donīt have to observe e.g. OīHare, leave it to 1 and slow down your traffic.

$path_to_buffer    = "buffer/";

If you want to rename the directory called "buffer/" in the standart PHPmyEasyWeather package you have to note the path to the directory including the final slash in that value.

$type_of_db_acces  = "text";

Currently there is only a text database supported and therefore this value has to be "text" in any case.

$path_to_grafics   = "weatherpics/";

If you want to rename the directory called "weatherpics/" in the standart PHPmyEasyWeather package you have to note the path to the directory including the final slash in that value.

$path_to_icao_db   = "icao_db/";

If you want to rename the directory called "icao_db/" in the standart PHPmyEasyWeather package you have to note the path to the directory including the final slash in that value.

The other variables are for future use.

      

Previous Up Next