Code Monkey home page Code Monkey logo

notams's Introduction

DEPRECATED: notams

Fetch NOTAMs (Notices to Airmen) from https://pilotweb.nas.faa.gov using Node.js

⚠️ This project is deprecated. The FAA has unfortunately prevented the ability to easily retrieve notams.

NPM Version Build Status Coverage Maintainability

Installation

$ npm install --save notams

Usage

notams.fetch([ 'PADK', 'PADU' ], { format: 'DOMESTIC' }).then(results => {
  console.log(JSON.stringify(results, null, 2))
})

Output

[
  {
    "icao": "PADK",
    "notams": [
      "!ADK 04/008 ADK NAV DME NOT MNT 1904170731-1905081400EST\n",
      "!ADK 04/007 ADK NAV NDB NOT MNT 1904130039-1905101500EST\n",
      "!FDC 9/2641 ADK SPECIAL ADAK, Adak Island, AK.\nILS OR LOC/DME RWY 23, AMDT 2...\nS-ILS DA NA.\n1901091550-2101091548EST\n"
    ]
  },
  {
    "icao": "PADU",
    "notams": [
      "!DUT 05/018 DUT TWY ALL FICON WET OBS AT 1905051946. 1905051946-1905061946\n",
      "!DUT 05/017 DUT APRON ALL FICON WET OBS AT 1905051946. 1905051946-1905061946\n",
      "!DUT 05/016 DUT RWY 31 FICON 5/5/5 100 PCT WET OBS AT 1905051945. 1905051945-1905061945\n",
      "!DUT 05/015 DUT RWY 13 FICON 5/5/5 100 PCT WET OBS AT 1905051945. 1905051945-1905061945\n",
      "!DUT 04/123 DUT SVC AUTOMATED WX BCST SYSTEM OUT OF SERVICE 1904251718-1905111500EST\n"
    ]
  }
]

API

notams(icaos, options)

notams.fetch(icaos, options)

icaos

Type: string or array

Valid values:

  • a single ICAO code
  • a comma-separated list of ICAO codes
  • an array of ICAO codes

options

Type: object

{ format: 'ICAO' }
options.format

Type: string

Valid values:

  • DOMESTIC
  • ICAO

notams.fetchAllByType(type, format)

type

Type: string

Valid values:

  • ALLTFR
  • ALLGPS
  • ALLCARF
  • ALLSPECIALNOTICES

format

Type: string

Valid values:

  • DOMESTIC
  • ICAO

Contributing

Contributions welcome!

License

MIT © Forrest Desjardins

notams's People

Contributors

dependabot[bot] avatar fdesjardins avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

notams's Issues

Some characters not encoded

I'm using your notams API. Some characters, like the degrees symbol (°) are not showing up on the results of the query. Instead, a question mark like this (�) is displayed in the console-log result. Could you please get back to me with a solution for this? Thanks.

Callback results is undefined

Dear @fdesjardins unfortunately last few days package is returning undefine
At example.js:

const notams = require('notams')

notams.fetch([ 'PADK', 'PADU' ], { format: 'DOMESTIC' }).then(results => {
	console.log(JSON.stringify(results, null, 2))
})

npm --save install
node example.js

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.