steampipe plugin install ellisvalentiner/weatherkit

Table: weatherkit_current_weather

Get the current weather conditions for the specified location.

The weatherkit_current_weather table can be used to query the current weather for the requested location. You must specify location in the where or join clause using the latitude and longitude columns.

Examples

Get the current weather for Ann Arbor, MI

select
*
from
weatherkit_current_weather
where
latitude = '42.281'
and longitude = '-83.743';

Get the temperature, humidity, and dew point

select
temperature,
humidity,
temperature_dew_point
from
weatherkit_current_weather
where
latitude = '42.281'
and longitude = '-83.743';

Get the temperature in degrees Fahrenheit

select
temperature * 9 / 5 + 32.from weatherkit_current_weather
where
latitude = '42.281'
and longitude = '-83.743';

Get the wind direction, gust, and speed

select
wind_direction,
wind_gust,
wind_speed
from
weatherkit_current_weather
where
latitude = '42.281'
and longitude = '-83.743';

Schema for weatherkit_current_weather

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
as_oftimestamp with time zoneThe date and time.
cloud_coverdouble precisionThe percentage of the sky covered with clouds during the period, from 0 to 1.
condition_codetextAn enumeration value indicating the condition at the time.
daylightbooleanA Boolean value indicating whether there is daylight.
humiditydouble precisionThe relative humidity, from 0 to 1.
latitudetext=A numeric value indicating the latitude of the coordinate between -90 and 90.
longitudetext=A numeric value indicating the longitude of the coordinate between -180 and 180.
metadatajsonbDescriptive information about the weather data.
precipitation_intensitydouble precisionThe precipitation intensity, in millimeters per hour.
pressuredouble precisionThe sea level air pressure, in millibars.
pressure_trendtextThe direction of change of the sea-level air pressure.
temperaturedouble precisionThe current temperature, in degrees Celsius.
temperature_apparentdouble precisionThe feels-like temperature when factoring wind and humidity, in degrees Celsius.
temperature_dew_pointdouble precisionThe temperature at which relative humidity is 100%, in Celsius.
uv_indexbigintThe level of ultraviolet radiation.
visibilitydouble precisionThe distance at which terrain is visible, in meters.
wind_directionbigintThe direction of the wind, in degrees.
wind_gustdouble precisionThe maximum wind gust speed, in kilometers per hour.
wind_speeddouble precisionThe wind speed, in kilometers per hour.