Current observations provide real-time conditions reported by the nearest NWS observation station for your configured location. Unlike forecast data, observations reflect what is actually happening right now: temperature, wind, pressure, humidity, precipitation, and cloud cover. RequiresDocumentation 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.
location_setup_complete to have fired before calling.
Method
fetch_current_observations(fetch_icon: bool)
Fetches the latest observation from the NWS zone observation feed and emits observations_fetched with an ObservationPacket resource. Not all fields in ObservationPacket are guaranteed to be present — the NWS API omits measurements that are not available at the reporting station.
When
true, the current condition icon is fetched and stored in ObservationPacket.icon as an ImageTexture. The signal fires only after the icon has loaded. When false, ObservationPacket.icon is null but ObservationPacket.iconUrl is still populated if an icon URL was returned by the API.Signal
observations_fetched(observations: ObservationPacket)
Emitted when the observation data — and the condition icon, if requested — is ready.
An
ObservationPacket resource containing current conditions, or null if observations are unavailable. The packet exposes the following fields:All measurements use metric units as returned directly by the NWS API: temperature in Celsius, wind speed in m/s, pressure in Pascals, precipitation in meters, visibility in meters, and cloud height in meters. Convert as needed before displaying to users.