Nodding Previously Managed
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »



    Npm Version Build Status Dependency Status

    Pimatic plugin to obtain weather data from METAR reports.


    METAR is the abbreviation for METeorological Aerodrome Reports standardized by the ICAO. It was introduced in 1968 to provide pilots with observational weather data to be used for pre-flight weather briefings, for example. Nowadays, METAR data can be obtained for about 9000 airport sites around the world. Typically, the accuracy of the measurement data is better than the data provided by the numerous public weather services.

    Currently, the plugin is able to provide data for

    • air temperature at ground-level
    • dew point temperature
    • relative humidity
    • barometric pressure
    • wind speed, direction, and gust
    • generalized cloud cover in percent based on octas where cover for different heights is accumulated
    • precipitation (rain and snow if available)

    Future work

    There are a couple of things on my list:

    • add information on precipitation (rain and snow if available)
    • add switch to support imperial measures
    • provide a textual report on visibility, clouds and precipitation
    • add support for TAF forecasts
    • localization


    Contributions to the project are welcome. You can simply fork the project and create a pull request with your contribution to start with. If you like this plugin, please consider ★ starring the project on github.

    Plugin Configuration

          "plugin": "metar-weather",
          "debug": false,

    The plugin has the following configuration properties:

    Property Default Type Description
    debug false Boolean Debug mode. Writes debug messages to the pimatic log, if set to true

    Device Configuration


    The Metar Weather device is provided to obtain weather data for a single location.

          "id": "metar-1",
          "name": "TXL",
          "class": "MetarWeather",
          "attributes": [
          "stationCode": "EDDT",
          "interval": 30

    The location is identified by four letter station code. It can be looked up as follows:

    The device has the following configuration properties:

    Property Default Type Description
    interval 30 Number The data acquisition time interval in minutes (minimum 30)
    stationCode - String The 4-letter station code for the weather station
    attributes "temperature" Enum The attribute to be exhibited by the device



    npm i pimatic-metar-weather

    Downloadslast 7 days







    last publish


    • avatar