The NWS issues alerts to communicate imminent hazards — watches, warnings, advisories, and statements — for a specific county.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/OdintheDoggo/GodotNWS/llms.txt
Use this file to discover all available pages before exploring further.
fetch_alerts() retrieves all currently active alerts for the county associated with your configured location and returns them as structured Alert resources. Requires location_setup_complete to have fired before calling.
Method
fetch_alerts()
Fetches active NWS alerts for the configured location’s county zone and emits alerts_fetched. Takes no parameters.
Signal
alerts_fetched(alerts: Array[Alert])
Emitted when the active alert list has been fetched and parsed.
The signal emits an empty array when no alerts are currently active for the area. Always check
alerts.is_empty() before iterating.An array of
Alert resources representing each currently active alert. Each resource exposes the following fields: