Projects / PEAR::Services_Weather


PEAR::Services_Weather searches for given locations and retrieves current weather data and forecasts (depending on the used service). GlobalWeather from CapeScience, Weather XML from EJSE (US only), a XOAP service from, and METAR/TAF from NOAA are supported. Further services will be included if they become available, have a usable API, and are properly documented.

Operating Systems

Recent releases

  •  04 Nov 2009 00:24

    Release Notes: A bug concerning parsing weird TAFs has been fixed again in Metar.php, since the first fix was incorrect.

    •  16 Mar 2009 17:54

      Release Notes: In Metar.php, bug #9471 (undefined variable ($status)), bug #15637 (new TAF format broke date groups), and bug #14732 (parsing weird TAFs) have been fixed. In Weatherdotcom.php, default forecast days has been set to 5.

      •  19 Apr 2007 20:38

        Release Notes: Various additions to the METAR/TAF service, including cloud types, pressure tendencies and the US version of ice pellets in the conditions. Parsing has been changed for the FMC notations and the wind and cloud related groups. EJSE has been fixed to make it work again with the demand for registration. Globalweather seems to be back online after more than a year, but apparently the service is broken, because the replies are all invalid; thus it is tagged for removal unless Capescience fixes this.

        •  08 Mar 2006 17:28

          Release Notes: The license was changed to a BSD-style license to accomodate for Debian requests. PEAR 1.4 compatibility was added by using the file package2.xml. Various minor bugfixes were made, especially in the METAR code. HTTP_Request is now almost exclusively used to retrieve HTTP or SOAP-based information. Calculation of sunrise/sunset times was added for METAR. METAR now features an icon to represent the current conditions. Caching of data was improved.

          •  18 Jul 2005 11:58

            Release Notes: A return-by-reference fix was made for PHP 4.4.


            Project Spotlight


            A Fluent OpenStack client API for Java.


            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.