phpWeather


phpWeather is a nice PHP application which translates METAR from airports all around the world, ie instant weather information for air traffic. METAR are generally refreshed once or twice per hour. A complete weather message contains forecasts for next 24 hours.
PHP Weather can display theses informations.
phpWeather est une application PHP qui traduit les informations des METAR provenant d'aéroports partout dans le monde, c'est-à-dire une information météo instantanée pour le trafic aérien. Les METAR sont généralement rafraîchis une à deux fois par heures. Un message météo complet contient des prévisions pour les prochaines 24 heures (TAF). PHP weather peut afficher ces informations.

 


NOTICE

Martin Geisler (www.gimpster.com) has developed a PHP-script that retrieves and parses METAR data into readable text. You can get the phpWeather script from phpWeather. The script converts METAR EIDW 240130Z VRB03KT 9999 FEW020 SCT130 BKN200 06/04 Q0992 NOSIG in :

  6°C 

Day time sky cover/precipitation icons

The script creates one icon for a sky over and precipitation combination. Basically, the METAR data distinguishes 5 different sky covering types, which are listed horizontally in the table below. There are a lot of precipitation and related types, but in this script the number is limited to the most common types (at least in the Netherlands, country of the author ?): rain, snow, hail, thunderstorm and fog.

Remarks:
For rain,snow and hail, three different intensities are distinguished: light, moderate and heavy.

Sky Cover/
Precipitation
Clear
(CLR/SKC)
Few
(FEW)
Scattered
(SCT)
Broken
(BKN)
Overcast
(OVC/VV)
None
Drizzle/Rain
(DZ/RA)
light
moderate
heavy
Snow/Snow Grains
(SN/SG)
light/
moderate
heavy
Ice Crystals/Ice Pellets/
Hail/Small Hail
(IC/PE/GR/GS)
light/
moderate
heavy
Thunderstorm
(TS)
Mist/Fog
(BR/FG)

Night time sky cover/precipitation icons


Sky Cover/
Precipitation
Clear
(CLR/SKC)
Few
(FEW)
Scattered
(SCT)
Broken
(BKN)
Overcast
(OVC/VV)
None
Drizzle/Rain
(DZ/RA)
light
moderate
heavy
Snow/Snow Grains
(SN/SG)
light/
moderate
heavy
Ice Crystals/Ice Pellets/
Hail/Small Hail
(IC/PE/GR/GS)
light/
moderate
heavy
Thunderstorm
(TS)
Mist/Fog
(BR/FG)

Note: with the sky cover/precipitation icons, there is no such thing as 'no data'. When both groups are omitted, this could mean 'moony' (as opposed to 'sunny' ;-) and no precipitation, and 'no data' as well. Since the metar exists, the author decided to show the 'moony' icon.

Wind direction

Each of the 16 wind direction is mapped onto a icon, e.g. angles from 348.75 degrees through 11.25 degrees are mapped to the 'North' icon. Angles from 11.25 through 33.75 degrees are mapped to 'North-east' etc. This leads to the following icons:

N NNE NE NEE E SEE SE SSE
S SSW SW SSW W NWW NW NNW
VRB Calm
wind
No
data

Temperature

Below
0
deg C
Above
0
deg C
No
data





CategoryResource
Some rights reserved
Except where otherwise noted, content on this site is licensed
under a Creative Commons Attribution - Noncommercial - No Derivative Works 3.0 License.