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.
Alert is a typed Resource that holds all data for a single active NWS weather alert — such as a Tornado Warning, Flood Watch, or Winter Storm Advisory. An array of these resources is emitted by the alerts_fetched signal after calling Nws.fetch_alerts(). Alerts are scoped to the county zone of the configured location. The array may be empty if no alerts are active.
The
ends field may be an empty dictionary if the NWS did not specify a definite end time for the alert. Always check ends.is_empty() before using it. The instruction field may be an empty string for some alert types. The replacedBy and replacedAt fields are only set when this alert has been superseded by a newer one.Fields
Identification
The unique identifier for this alert, assigned by the NWS (e.g.
"urn:oid:2.49.0.1.840.0.abc123..."). Use this to track specific alerts across fetches or to match against references.The complete, unmodified JSON properties object for this alert as returned by the NWS API. Useful for accessing any fields not explicitly mapped by
Alert.Event & Classification
The type of weather event being alerted, such as
"Tornado Warning", "Flood Watch", "Winter Storm Advisory", or "Special Weather Statement". This is the primary field for identifying what kind of alert has been issued.The broad category of the alert. For weather alerts this is typically
"Met" (meteorological).Indicates the operational status of the alert message. Valid values:
In production use, you will almost always see
| Value | Meaning |
|---|---|
"Actual" | A real, operational alert |
"Exercise" | Part of a drill or exercise |
"System" | A system-generated message |
"Test" | A test message |
"Draft" | A draft not yet in effect |
"Actual".Describes the relationship of this alert to previous messages. Valid values:
| Value | Meaning |
|---|---|
"Alert" | Initial issuance of a new alert |
"Update" | Updates and supersedes a previous alert |
"Cancel" | Cancels a previous alert before its expiry |
"Ack" | Acknowledgement message |
"Error" | Error notification |
Severity & Urgency
The severity of the hazard. Valid values in descending order of severity:
| Value | Meaning |
|---|---|
"Extreme" | Extraordinary threat to life or property |
"Severe" | Significant threat to life or property |
"Moderate" | Possible threat to life or property |
"Minor" | Minimal to no known threat |
"Unknown" | Severity not reported |
How certain the forecaster is that the hazard will occur. Valid values:
| Value | Meaning |
|---|---|
"Observed" | Already occurring |
"Likely" | Probability > 50% |
"Possible" | Probability ≤ 50% |
"Unlikely" | Not expected to occur |
"Unknown" | Certainty not reported |
How quickly action is needed. Valid values:
| Value | Meaning |
|---|---|
"Immediate" | Responsive action should be taken immediately |
"Expected" | Responsive action should be taken soon (within the hour) |
"Future" | Responsive action should be taken in the near future |
"Past" | Responsive action is no longer required |
"Unknown" | Urgency not reported |
Timeline
A Godot time dictionary representing when the alert message was transmitted by the NWS. Contains keys:
year, month, day, hour, minute, second, weekday, dst.A Godot time dictionary for when the alert became (or becomes) effective. In the same format as
sent.A Godot time dictionary for when the hazard is expected to begin affecting the area. In the same format as
sent.A Godot time dictionary for when the alert expires if not cancelled or updated first. In the same format as
sent.A Godot time dictionary for the definite end of the hazard, if one was specified. May be an empty dictionary (
{}) when the NWS did not set a definite end time. Always check alert.ends.is_empty() before using this field.Message Content
A brief headline summarizing the alert, such as
"Tornado Warning issued for Travis County until 8:15 PM CDT".An alternate headline sourced from the
NWSheadline parameter in the alert, which may differ in phrasing from headline. Typically written in all-caps style by NWS offices. May be empty if the alert does not include this parameter.The full body text of the alert, containing all details about the hazard, its expected impacts, and affected areas. This is the primary field to show in an expanded alert detail view.
Recommended protective actions that the public should take in response to the alert (e.g.
"Move to an interior room on the lowest floor of a sturdy building."). May be an empty string for some alert types.A shorter suggested response to the alert (e.g.
"Shelter", "Evacuate", "Prepare", "Execute"). Suitable for use in compact UI elements.Sender
The email address or identifier of the NWS office that issued the alert (e.g.
"w-nws.webmaster@noaa.gov").The human-readable name of the NWS office that issued the alert (e.g.
"NWS Austin/San Antonio TX").Supersession
An array of alert IDs that this alert updates or cancels. Empty if this is a fresh
"Alert" message type with no prior references.The ID of the alert that superseded this one. Only set if this alert has been replaced by a newer message. Empty string otherwise.
The time string indicating when this alert was replaced. Only set alongside
replacedBy. Empty string otherwise.