Projects / PHP Weather

PHP Weather

PHP Weather makes it easy to show the current weather on your Web page. PHP Weather retrieves the latest METAR (weather) report and converts this format into both imperial and metric units, caches the data in a MySQL, PostgreSQL, or DBA database for fast retrieval, and makes it easily available in PHP scripts. You can display the data in several languages by using the included translations.

Tags
Licenses
Operating Systems
Implementation
Translations

RSS Recent releases

  •  17 Jun 2004 08:33

Release Notes: This release sports new Portuguese and British English translations, and an updated list of Brazilian stations. A couple of small bugs were fixed as well.

  •  25 Feb 2004 03:59

Release Notes: This version fixes a grave bug in the handling of METAR timestamps which resulted in the time always being displayed as 3:14. The SQL code for MySQL initialization is also fixed and the Finnish translation is updated.

  •  01 Jan 2004 16:43

Release Notes: Support for parsing TAF reports was added, but there is no textual output yet. The names of the database tables have changed so that they now have a 'pw_' prefix. There are new translations for Italian, Turkish, and Polish.

  •  20 Apr 2003 07:08

Release Notes: A couple of short PHP open tags were replaced with the proper long version, since that's the default on all new installations.

  •  05 Mar 2003 15:26

Release Notes: This release adds a new German translation and fixes a small problem with the configuration of the output modules.

RSS Recent comments

29 Jun 2009 18:10 Avatar patnee Thumbs up

it's realy nice, I use it on several projects and also have written a javascript to use metars in a widget, but for another project www.vakantiehuizen-spa... I will need forecasts, now I'm spidering the forecasts, but do you have any intention integrating forecast into it? Thanks!

09 Oct 2000 21:30 bertd

"empirical" units ??
I believe the correct term is "imperial" units.

08 Sep 2000 16:23 martingimpster

RE: Nice job!
If you just want part of the report, then just find the part of the pretty_print_metar() function you need, and use that. All the data that are pretty-printed are available to you as individual variables, eg $temp_c, $wind_dir_eng etc.

03 Sep 2000 23:33 joesottnik

Nice job!
Nice job interpreting metars to display weather. Are you thinking about adding functions to display individual readings so a developer can pick and choose which readings he or she wants to display. I am using your routines on my web page to display readings for three airports near my home.

Screenshot

Project Spotlight

Personal File Manager

A customizable file manager resembling PFM for DOS.

Screenshot

Project Spotlight

ToPIA

A persistence and application distribution framework.