GithubHelp home page GithubHelp logo

mdecourcy / nws_alerts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from finity69x2/nws_alerts

0.0 0.0 0.0 294 KB

An updated version of the nws_alerts custom integration for Home Assistant

Python 100.00%

nws_alerts's Introduction

Alerts from the US National Weather Service (nws_alerts)

An updated version of the nws_alerts custom integration for Home Assistant originally found at github.com/eracknaphobia/nws_custom_component

This integration retrieves updated weather alerts every minute from the US NWS API.

The integration presents the number of currently active alerts as the state of the sensor and lists many alert details as a list in the attributes of the sensor.

The sensor that is created is used in my "NWS Alerts Custom" package - https://github.com/finity69x2/nws_alerts/blob/master/packages/nws_alerts_custom_package.yaml

You can also display the generated alerts in your frontend - https://github.com/finity69x2/nws_alerts/blob/master/lovelace/alerts_tab

Installation:

Manually:

Clone the Repository and copy the "nws_alerts" directory to your "custom_components" directory in your config directory

<config directory>/custom_components/nws_alerts/...

HACS:

open the HACS section of Home Assistant.

Click the "+ Explore & Add New repositories" button in the bottom right corner.

In the window that opens search for "NWS Alerts".

In the window that opens when you select it click om "Install This Repository in HACS"

After installing the integration you can then configure it using the instructions in the following section.

Configuration:

You can find your Zone or County ID by going to https://alerts.weather.gov/, scroll down to your state and click on the “zone list” and/or "county list" then look for the entry for your county.

There are two ways to configure this integration.

Manually via an entry in your configuration.yaml file:

To create a sensor instance add the following configuration to your sensor definitions using the zone_id found above:

- platform: nws_alerts
  zone_id: 'PAC049'

or enter comma separated values for multiple zones:

- platform: nws_alerts
  zone_id: 'PAC049,WVC031'

After you restart Home Assistant then you should have a new sensor called "sensor.nws_alerts" in your system.

You can overide the sensor default name ("sensor.nws_alerts") to one of your choosing by setting the "name:" option:

- platform: nws_alerts
  zone_id: 'INZ009,INC033'
  name: My NWS Alerts Sensor

Using the configuration example above the sensor will then be called "sensor.my_nws_alerts_sensor"

Or you can configure the integration via the "Configuration->Integrations" section of the Home Assistant UI.

Look for the integration labeled "NWS Alerts"

nws_alerts's People

Contributors

303bryan avatar conorsham avatar eracknaphobia avatar finity69x2 avatar firstof9 avatar kreene1987 avatar mdecourcy avatar

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.