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.
HourlyForecastPeriod is a typed Resource representing a single one-hour slot in the NWS hourly forecast. An array of these resources is emitted by the hourly_forecast_fetched signal after calling Nws.fetch_hourly_forecast(). Compared to ForecastPeriod, hourly periods do not have a named label but add dewpoint and relativeHumidity fields that are not present in the daily forecast. The NWS typically returns up to 156 hourly periods (about 6.5 days ahead).
Pass
fetch_images: true to fetch_hourly_forecast() if you need the icon field populated. When false, icon is null and only iconUrl is set. For long timelines, fetching images for all 156 periods can be expensive — consider loading icons on demand using iconUrl instead.Fields
The complete, unmodified JSON object for this hour as returned by the NWS API. Useful for accessing any fields not explicitly mapped by
HourlyForecastPeriod.The sequential index of this period within the hourly forecast.
1 is the first (soonest) hour.A Godot time dictionary produced by
Time.get_datetime_dict_from_datetime_string(). Contains keys: year, month, day, hour, minute, second, weekday, dst. Represents the start of the one-hour interval.The end of this one-hour interval, in the same Godot time dictionary format as
startTime. Typically exactly one hour after startTime.true if this hour falls within daytime, false if it falls overnight. Useful for selecting day or night icon variants and UI themes.The forecast temperature for this hour. The unit is determined by
temperatureUnit.The unit for
temperature. Either "F" (Fahrenheit) or "C" (Celsius).The probability of precipitation during this hour, expressed as a percentage from
0 to 100.The dewpoint temperature for this hour in degrees Celsius. Higher dewpoints indicate more moisture in the air and greater perceived humidity.
The relative humidity for this hour, expressed as a percentage from
0 to 100.The forecast wind speed for this hour. Returned as a raw value from the NWS API.
The forecast wind direction in degrees (0° = North, 90° = East, 180° = South, 270° = West).
A loaded
ImageTexture of the NWS weather icon for this hour. null unless fetch_images: true was passed to fetch_hourly_forecast().The direct URL to the NWS weather icon PNG for this hour. Always populated regardless of the
fetch_images flag.A brief description of the forecast conditions for this hour, such as
"Mostly Clear" or "Light Rain".A prose description of conditions for this hour. For hourly periods this field is often an empty string, as the NWS typically populates it only for daily periods.