Giter Site home page Giter Site logo

devfacet / publicalerts Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 11 KB

A module for obtaining emergency messages about hurricanes, storm warnings and earthquakes

License: MIT License

JavaScript 100.00%
public alerts hurricane emergency storm earthquake

publicalerts's Introduction

Public Alerts

NPM Build Status

Public Alerts is a module for obtaining emergency messages about hurricanes, storm warnings and earthquakes.

Installation

npm install publicalerts

Usage

var publicalerts = require('publicalerts');

// Options:
// query:    any keyword to search
// location: location filter for search

publicalerts.search({location: 'texas'}, function(err, result) {
  if(err) console.log(err);

  console.log(JSON.stringify(result, null, 2));
});
/*
[
  [
    null,
    "-8092547155034825075",
    "6938810711701504273",
    "Severe Thunderstorm Warning",
    [
      "extreme_thunderstorm",
      "thunderstorm",
      "wind_storm",
      "met"
    ],
    "Southeast Texas",
    1,
    "${event} in ${location}",
    [
      null,
      30.606945322920698,
      -94.03319269248593
    ],
    "National Weather Service",
    0,
    [
      "The National Weather Service in Lake Charles has issued a Severe Thunderstorm..."
    ],
    "Active for next 16 minutes",
    "updated 21 minutes ago",
    "en-US",
    "//www.gstatic.com/images/icons/onebox/publicalerts_storm-24.png",
    "http://alerts.weather.gov/cap/wwacapget.php?x=TX12515A187758.SevereThunderstormWarning.12515A18956CTX.LCHSVRLCH.bd68b6b41660907dbc6b4e3104c71a90",
    "http://www.google.org/publicalerts/alert?aid=8fb17f3d180d1e8d",
    "More info",
    null,
    0.87,
    null,
    null,
    null,
    null,
    null,
    null,
    "Severe Thunderstorm Warning in Southeast Texas",
    [
      [
        null,
        [
          null,
          30.479999999999976,
          -94.14
        ],
        [
          null,
          30.700000000000024,
          -93.91
        ]
      ]
    ]
  ]
]
*/

Notes

  • It uses www.google.org/publicalerts/

License

Licensed under The MIT License (MIT)
For the full copyright and license information, please view the LICENSE.txt file.

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.