Weather Alert application for AppDaemon and HomeAssistant
Make sure your home knows about any severe weather approaching. WeatherAlert sends a persistent_notification to your HA desktop with with information on any severe weather alerts in your area.
Weather alerts is configurable to only show you the alerts you are interested in seeing.
Installation Instructions
- Clone this repository in your AD code directory. It should create a weatherAlert directory.
- Add the following lines to your appDaemon config file
[weatherAlert]
module=weatherAlert
class=weatheralert
alerts = {"HEA","TOR"}
key = your weather underground key
* location={"city":"your city","state":"your state"} or {"zmw":"your zmw"}`
* frequency=minutes between checks ( Defaults to 15 min )
* title=title of persistent notification window
* dash_dir = /home/pi/appdaemon_dashboard/appdaemon/conf/custom_css/notices/ - directory to where alert pages should be placed
- * represent optional entries (do not include *)
- location can be expressed as a dictionary containing the following:
- {"city":"your city", "state":"your state"}
- {"zip":"your zip code"}
- {"Country":"Your country name","city":"Your city"}
- if location is not in the config file, it defaults to your HomeAssistant Latitude/Longitude
- Possible values for alerts are : type Translated
HUR Hurricane Local Statement
TOR Tornado Warning
TOW Tornado Watch
WRN Severe Thunderstorm Warning
SEW Severe Thunderstorm Watch
WIN Winter Weather Advisory
FLO Flood Warning
WAT Flood Watch / Statement
WND High Wind Advisory
SVR Severe Weather Statement
HEA Heat Advisory
FOG Dense Fog Advisory
SPE Special Weather Statement
FIR Fire Weather Advisory
VOL Volcanic Activity Statement
HWW Hurricane Wind Warning
REC Record Set
REP Public Reports
PUB Public Information Statement
- dash_dir - currently this needs to be placed in a directory under the custom_css directory.
- If you are using the following speach apps in appdaemon
- sound - by Rene Tode - https://community.home-assistant.io/t/let-appdaemon-speak-without-tts-and-mediaplayer-in-hass/8058
- speak - by Chip Cox - https://github.com/turboc1208/AppDaemonApps/blob/master/speak.py weatherAlert will recognize them and send alerts to your speakers as well# as the persistent_notifications.
Visit the weatherunderground at the following link for more information about this API https://www.wunderground.com/weather/api/d/docs?d=data/alerts