2017 © Pedro Peláez
 

library metar-php

lightweight library for decoding METAR messages

image

jzawadzki/metar-php

lightweight library for decoding METAR messages

  • Wednesday, April 1, 2015
  • by jzawadzki
  • Repository
  • 3 Watchers
  • 10 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

metar-php

Lightweight library for parsing METAR message, (*1)

METAR is a format for reporting weather information. A METAR weather report is predominantly used by pilots in fulfillment of a part of a pre-flight weather briefing, and by meteorologists, who use aggregated METAR information to assist in weather forecasting.

From Wikipedia, the free encyclopedia

Installation

$ composer require "jzawadzki/metar-php"

Usage


$metar = new \METAR\Message("EPKK 160030Z 06010KT 8000 BKN060 04/M03 Q1034"); echo $metar->getLocation(); //EPKK echo $metar->getVisibility(); //8000 echo $metar->getQNH()->toHPa(); //1034 echo $metar->getQNH()->toInHg(); //30.53 echo $metar->getTemperature()->toUnit('C'); //4 echo $metar->getDewPoint()->toUnit('F'); //26.6 $view = new \METAR\View\Text($metar); echo $view->render(); /* METAR: EPKK 160030Z 06010KT 8000 BKN060 04/M03 Q1034 Location: EPKK Day of month: 16 Time: 0030Z Temperature: 4.0C Dew point: -3.0C QNH: 1034 hPa (30.53 inHg) */

License

MIT, (*2)

Author

Jerzy Zawadzki https://github.com/jzawadzki, (*3)

The Versions

01/04 2015

dev-master

9999999-dev

lightweight library for decoding METAR messages

  Sources   Download

MIT