# Grouped event types based on urgency and onset timing
nws:
florida_active_alert_api: https://api.weather.gov/alerts/active/area/FL
jq_filter: |
jq '[.. | objects | select(.event | IN("Hurricane Watch","Tropical Storm Watch","Storm Surge Watch","Hurricane Warning","Tropical Storm Warning","Storm Surge Warning","Extreme Wind Warning"))] | map({event, urgency, areaDesc, headline, instruction})'
example:
hurricane_alerts: curl -s "https://api.weather.gov/alerts/active/area/FL" | jq '[.. | objects | select(.event | IN("Hurricane Watch","Tropical Storm Watch","Storm Surge Watch","Hurricane Warning","Tropical Storm Warning","Storm Surge Warning","Extreme Wind Warning"))] | map({event, urgency, areaDesc, headline, description, instruction})' | yq -p=json
all_alerts: curl -s "https://api.weather.gov/alerts/active/area/FL" | jq '[.. | objects | select(.event != null)] | map({event, urgency, areaDesc, headline, description, instruction})' | yq -p=json
event_categories:
hurricane_possibility:
description: 'Conditions are possible, typically issued up to 48 hours in advance.'
events:
- name: 'Hurricane Watch'
event_code: 'HUA'
severity: 'Watch'
urgency: 'Future'
- name: 'Tropical Storm Watch'
event_code: 'TRA'
severity: 'Watch'
urgency: 'Future'
- name: 'Storm Surge Watch'
event_code: 'SSA'
severity: 'Watch'
urgency: 'Future'
active_hurricane:
description: 'Conditions are expected or imminent, typically issued within 36 hours.'
events:
- name: 'Hurricane Warning'
event_code: 'HUW'
severity: 'Warning'
urgency: 'Immediate'
- name: 'Tropical Storm Warning'
event_code: 'TRW'
severity: 'Warning'
urgency: 'Immediate'
- name: 'Storm Surge Warning'
event_code: 'SSW'
severity: 'Warning'
urgency: 'Immediate'
- name: 'Extreme Wind Warning'
event_code: 'EWW'
severity: 'Extreme'
urgency: 'Immediate'