Projects / Matt's Weather

Matt's Weather

Matt's Weather (mweather) is a PHP script that will retrieve current weather conditions for anywhere in the world by reading and parsing the hourly METAR reports created for the area. It is designed to be highly configurable to be able to insert data in any Web page with ease.


Recent releases

  •  06 Feb 2001 09:53

    Release Notes: This release includes rewrites to most of the METAR parsing code, and the inclusion of a CODES file containing all the METAR location codes around the globe.

    •  18 Oct 2000 13:46

      Release Notes: A typo was fixed.

      •  13 Oct 2000 13:04

        Release Notes: A few changes were made, including some drop down menu changes.

        •  09 Oct 2000 17:09

          Release Notes: This release adds some more metar codes, the ability to format your own date and time, drop down menu support for selecting the area, automatic detection of area name, and the ability to customize drop down menus. The template files have been changed so that they are fully working (with all images). Fixes have been made for a bug regarding wind directions and a few more minor bugs.

          •  02 Oct 2000 19:41

            Release Notes: This release fixes a bug that caused wind direction to be reported as North North West, stops the script from trying to parse `AUTO' metar data, fixes a bug related to data checking, and adds a full list of all the weather metar codes for the UK, USA, and Canada (more to come). Precipitation intensity checking is currently broken.

            Recent comments

            17 Jun 2002 16:37 pumpsoft

            Inaccurate parsing
            I have also found inaccuracies in his script. For example, if the tag TSNO is present (which means (T)hunder(S)torm info (NO)t available his code interprets it to mean that there ARE thunderstorm conditions.

            Also, his code seems to pay no attention at all to precipitation strength, he throws away the indicator before processing. (He has a comment about "getting rid of those annoying" hyphens and removes them with a string replace. Those "annoying" hyphens indicate the strength of the precipitation. A Hyphen means light, none means moderate, and a plus means heavy. He doesn't seem to realize that. ;)

            A cribsheet for METAR format can be found
            href=" (

            27 Sep 2000 07:15 darrou

            bug ?
            I have found difference between your program and Phpweather ( about the height of the clouds, and temperature in °F.


            Project Spotlight


            A Fluent OpenStack client API for Java.


            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.