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.
WeatherStory is a typed Resource representing a single weather story published by the local NWS forecast office. Weather stories are short, illustrated narratives that offices use to highlight notable weather events or patterns for their region — for example, an upcoming heat wave, a prolonged drought, or a severe weather outlook. An array of these resources is emitted by the weather_stories_fetched signal after calling Nws.fetch_weather_stories(). Stories are always delivered with their images already loaded; there is no flag to skip image fetching.
The
weather_stories_fetched signal is emitted only after all story images have finished downloading. If the local NWS office has no active stories, the signal is not emitted at all — add a timeout or fallback in your UI if stories are optional content.Fields
The headline title of the weather story as written by the NWS office (e.g.
"Heat Advisory This Weekend" or "Flash Flood Threat Tuesday"). Suitable for use as a card heading.A prose explanation of the weather story, providing context and detail beyond the title. Suitable for display in an expanded story view.
Accessibility alt text describing the story image. May not always be present — check that this string is non-empty before using it. When available, use it as the
alt attribute or tooltip for the story image.true if the NWS office has flagged this story as a priority item. Priority stories typically represent imminent or high-impact weather events and should be surfaced prominently in the UI.The display order index assigned by the NWS office. Use this to sort stories into the intended sequence when iterating the array (lower values first).
The loaded
ImageTexture for this story’s illustration or graphic. Always populated — the signal is not emitted until all images have been fetched. Use this directly as a texture in a TextureRect or Sprite2D.The direct URL to the story image PNG. Useful if you want to re-download the image at a later time or display it in a web view.
A Godot time dictionary for when this story’s validity period begins. Contains keys:
year, month, day, hour, minute, second, weekday, dst. Produced by Time.get_datetime_dict_from_datetime_string().A Godot time dictionary for when this story’s validity period ends, in the same format as
startTime. Stories past their endTime will no longer be served by the NWS API.A Godot time dictionary for when the story was last updated by the NWS office, in the same format as
startTime. Note the capital U in the field name — this matches the GDScript declaration exactly.