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

Recent releases

  •  17 Jun 2004 15: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 11: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.

      •  02 Jan 2004 00: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 14: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 23:26

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

            Recent comments

            29 Jun 2009 18:10 patnee

            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 http://www.vakantiehuizen-spanje.nu 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

            OpenStack4j

            A Fluent OpenStack client API for Java.

            Screenshot

            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.