Index PHPmyEasyWeather PHPmyEasyWeather Homepage

First steps

First steps -- Getting started

After downloading and extracting you should be able to start the index.html file in the main directory of PHPmyEasyWeather. There you can select a country and then a location to get the current weather report for the location and - if provided - a weather forecast for the next hours, e.g. for the next 24 hours.

Customizing:

To develop your own application, you should at first study the index.html file. It makes use of only 6 functions, 4 of them are called the display functions (read the documentation). These 4 functions are very powerful, they will 1. display you a menu where you can select the country, 2. display a menu for selecting the location (depending of the country) 3. display the actual weather for a location and 4. finally displaying the forecast for a location. There are two more functions used in index.html: getMetarFromWWW($ICAO) and getTafFromWWW($ICAO). Use this functions to download METAR and TAF information from NOAA's National Weather Service (NWS) server.

To have your fully customized application using PHPmyEasyWeather of course it is necesary to learn some details about METAR and TAF encoding. If you donīt, a deeper custumizing will become a little difficult...

Important note:

if you are using the other functions for encoding METAR or TAF, the first you have to do is to parse the TAF or METAR codes using getTafParts or getMetarParts. If you donīt, PHPmyEasyWeather will return wrong results! Please read the documentation for these two functions to learn more about that.


Previous Up Next