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.
ForecastPeriod is a typed Resource that represents a single named period in a daily weather forecast — for example, “Tonight”, “Monday”, or “Monday Night”. An array of these resources is emitted by the forecast_fetched signal after calling Nws.fetch_forecast(). Periods are ordered chronologically, with number = 1 being the soonest upcoming period. The NWS typically returns 14 periods covering the next 7 days.
Pass
fetch_images: true to fetch_forecast() if you need the icon field populated. When false, icon is null and only iconUrl is set.Fields
The complete, unmodified JSON object for this period as returned by the NWS API. Useful for accessing any fields not explicitly mapped by
ForecastPeriod.The sequential index of this period within the forecast.
1 is the first (soonest) period. Periods increment by one and cover either daytime or overnight intervals.A human-readable label for the period, such as
"Tonight", "Monday", or "Monday Night". Suitable for display as a heading in forecast UI elements.A Godot time dictionary produced by
Time.get_datetime_dict_from_datetime_string(). Contains keys: year, month, day, hour, minute, second, weekday, dst.The end of this forecast period, in the same Godot time dictionary format as
startTime.true if this period represents a daytime interval (e.g. “Monday”), false for overnight periods (e.g. “Monday Night”). Useful for choosing day vs. night UI themes.The forecast temperature for this period. The unit is determined by
temperatureUnit.The unit for
temperature. Either "F" (Fahrenheit) or "C" (Celsius), depending on the NWS response for the location.The probability of precipitation for this period, expressed as a percentage from
0 to 100.The forecast wind speed for this period. Returned as a raw value from the NWS API — the underlying unit follows the NWS response format for the location.
The forecast wind direction in degrees (meteorological convention: 0° = North, 90° = East, 180° = South, 270° = West).
A loaded
ImageTexture of the NWS weather icon for this period. This field is null unless fetch_images: true was passed to fetch_forecast().The direct URL to the NWS weather icon PNG for this period. Always populated regardless of the
fetch_images flag. Use this if you want to load the image yourself or display it via a web view.A brief description of the forecast conditions, such as
"Partly Cloudy" or "Chance Rain Showers". Suitable for compact display alongside the temperature.A full prose description of the forecast for this period, for example:
"Partly cloudy, with a low around 54. South wind 5 to 10 mph." Suitable for expanded detail views or accessibility text.