Coder Social home page Coder Social logo

pimatic-metar-weather's Introduction

pimatic-metar-weather

Npm Version Build Status Dependency Status Greenkeeper badge

Pimatic plugin to obtain weather data from METAR reports.

Introduction

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)

Additionally, it possible to obtain the observation time, that is the UTC time stamp at which the measured data has been recorded.

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

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

MetarWeather Device Type

Screenshot

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

{
      "id": "metar-1",
      "name": "TXL",
      "class": "MetarWeather",
      "attributes": [
        "temperature",
        "dewPoint",
        "humidity",
        "pressure",
        "windSpeed",
        "windGust",
        "windDirection",
        "clouds"
      ],
      "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

MetarWeatherTimeBased Device Type

This device type has the same configuration properties as MetarWeather and provides additional properties to query the weather data at the given local time of day being transformed to a given target timezone. In other words, it is possible to get the weather data at the same time of day in the target timezone as the local time of day.

Depending on the timezones used the current time of day in the target timezone may be less than requested time of day. In this case the data of the previous day will be used. If daylight savings shall be ignored it is suggested to use universal time UTC along with a given offset time. The following configuration properties are provided:

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
localTimezone "" String The local time zone to be applied. If empty the timezone derived from the system will be used
localUtcOffset 0 Number Local timezone offset to be added localTimezone. Useful if local timezone is UTC
targetTimezone "UTC String The target time zone to be applied. If the timezone is running behind UTC the data of the previous day will be used
targetUtcOffset 0 Number Target timezone offset to be added targetTimezone. Useful if target timezone is UTC

Links

License

Copyright (c) 2015-2019, Marcus Wittig and contributors. All rights reserved.

AGPL-3.0

pimatic-metar-weather's People

Contributors

greenkeeper[bot] avatar hvdwolf avatar mwittig avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

poml88

pimatic-metar-weather's Issues

Version 10 of node.js has been released

Version 10 of Node.js (code name Dubnium) has been released! 🎊

To see what happens to your code in Node.js 10, Greenkeeper has created a branch with the following changes:

  • Added the new Node.js version to your .travis.yml
  • The new Node.js version is in-range for the engines in 1 of your package.json files, so that was left alone

If you’re interested in upgrading this repo to Node.js 10, you can open a PR with these changes. Please note that this issue is just intended as a friendly reminder and the PR as a possible starting point for getting your code running on Node.js 10.

More information on this issue

Greenkeeper has checked the engines key in any package.json file, the .nvmrc file, and the .travis.yml file, if present.

  • engines was only updated if it defined a single version, not a range.
  • .nvmrc was updated to Node.js 10
  • .travis.yml was only changed if there was a root-level node_js that didn’t already include Node.js 10, such as node or lts/*. In this case, the new version was appended to the list. We didn’t touch job or matrix configurations because these tend to be quite specific and complex, and it’s difficult to infer what the intentions were.

For many simpler .travis.yml configurations, this PR should suffice as-is, but depending on what you’re doing it may require additional work or may not be applicable at all. We’re also aware that you may have good reasons to not update to Node.js 10, which is why this was sent as an issue and not a pull request. Feel free to delete it without comment, I’m a humble robot and won’t feel rejected 🤖


FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

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.