Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

107 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

metar.js

METAR (Meteorological Aviation Report) parser for Javascript

Demo: http://skydivejkl.github.io/metar.js/

Install

node.js or browserify

npm install metar

browser

<script src="metar.js"></script>

Example

Get reports from http://weather.noaa.gov/pub/data/observations/metar/stations/

// only required in node or browserify otherwise it's a global.
var parseMETAR = require("metar");

console.log(parseMETAR("EFJY 171950Z AUTO 27006KT 220V310 9999 FEW012 SCT015 BKN060 13/12 Q1006"));
{
    "station": "EFJY",
    "time": "2013-12-17T19:50:38.219Z",
    "auto": true,
    "wind": {
        "speed": 6,
        "gust": null,
        "direction": 270,
        "variation": {
            "min": 220,
            "max": 310
        },
        "unit": "KT"
    },
    "cavok": false,
    "visibility": 9999,
    "weather": null,
    "clouds": [
        {
            "abbreviation": "FEW",
            "meaning": "few",
            "altitude": 1200,
            "cumulonimbus": false
        },
        {
            "abbreviation": "SCT",
            "meaning": "scattered",
            "altitude": 1500,
            "cumulonimbus": false
        },
        {
            "abbreviation": "BKN",
            "meaning": "broken",
            "altitude": 6000,
            "cumulonimbus": false
        }
    ]
}

Changelog

1.0.0

  • Renamed altimeter_in_hg to altimeterInHg and altimeter_hpa to altimeterInHpa for consistency
  • Works in browsers without precompiling
  • Bunch of bug fixes

0.3.0

  • Parse REUP #16
  • Added METAR|SPECI type parsing #15
  • Added RVR parser

0.2.0

  • Support negative dewpoint and air temp #10

Releases

Packages

Used by

Contributors

Languages