Giter Site home page Giter Site logo

corporealfunk / metar.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pierreca/metar.js

0.0 0.0 0.0 89 KB

Javascript parser for METAR weather reports

Home Page: http://skydivejkl.github.io/metar.js

License: MIT License

HTML 6.75% JavaScript 93.25%

metar.js's Introduction

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

metar.js's People

Contributors

esamattis avatar rheh avatar djmartinnz avatar kami avatar corporealfunk avatar datadriver avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.