Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

adds

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adds

Javascript client for https://www.aviationweather.gov/ text data server

  • 1.2.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

ADDS

Build Status NPM Version Coverage

Javascript client for https://www.aviationweather.gov/ text data server

Installation

npm install --save adds

Usage

const ADDS = require('adds')

ADDS('metars', {
  stationString: 'KSEA',
  hoursBeforeNow: 1
})
  .then(metars => {
    console.log(JSON.stringify(metars, null, 2))
  })

Output:

[
  {
    "raw_text": "KSEA 202353Z 27005KT 10SM BKN042 19/10 A3004 RMK AO2 SLP176 T01940100 10200 20139 56010 $",
    "station_id": "KSEA",
    "observation_time": "2018-05-20T23:53:00Z",
    "latitude": 47.45,
    "longitude": -122.32,
    "temp_c": 19.4,
    "dewpoint_c": 10,
    "wind_dir_degrees": 270,
    "wind_speed_kt": 5,
    "visibility_statute_mi": 10,
    "altim_in_hg": 30.041338,
    "sea_level_pressure_mb": 1017.6,
    "quality_control_flags": {
      "auto_station": "TRUE",
      "maintenance_indicator_on": "TRUE"
    },
    "sky_condition": {
      "sky_cover": "BKN",
      "cloud_base_ft_agl": 4200
    },
    "flight_category": "VFR",
    "three_hr_pressure_tendency_mb": -1,
    "maxT_c": 20,
    "minT_c": 13.9,
    "metar_type": "METAR",
    "elevation_m": 136
  }
]

See example.js for more usage examples.

API

ADDS(dataSource, options)

dataSource

Type: string

One of the following:

  • metars
  • tafs
  • aircraftreports
  • airsigmets
  • gairmets
  • stations
options

Type: object

These options are passed to ADDS as query parameters. See the ADDS documentation for all available options.

License

MIT © Forrest Desjardins

Keywords

FAQs

Package last updated on 17 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc