Jon Portnoy

NAME

Weather::OpenWeatherMap::Result::Current - Weather conditions result

SYNOPSIS

  # Normally retrieved via Weather::OpenWeatherMap

DESCRIPTION

This is a subclass of Weather::OpenWeatherMap::Result containing the result of a completed Weather::OpenWeatherMap::Request::Current.

These are normally emitted by a Weather::OpenWeatherMap instance.

ATTRIBUTES

Station

country

The country string.

dt

  my $reported_at = $result->dt->hms;

A UTC DateTime object representing the time this report was updated.

id

The OpenWeatherMap city code.

latitude

The station's latitude.

longitude

The station's longitude.

name

The returned city name.

station

The returned station name.

Conditions

cloud_coverage

The cloud coverage as a percentage.

conditions_code

The OpenWeatherMap conditions code.[

conditions_icon

The OpenWeatherMap conditions icon.

conditions_terse

The conditions category.

conditions_verbose

The conditions description string.

humidity

Current humidity.

pressure

Atmospheric pressure in hPa.

sunrise

A UTC DateTime object representing sunrise time.

(Not available for Weather::OpenWeatherMap::Result::Find result items.)

sunset

A UTC DateTime object representing sunset time.

(Not available for Weather::OpenWeatherMap::Result::Find result items.)

Temperature

temp_f

Temperature in degrees Fahrenheit.

temp_c

Temperature in degrees Celsius.

Wind

wind_speed_mph

Wind speed in MPH.

wind_speed_kph

Wind speed in KPH.

wind_gust_mph

Wind gust speed in MPH (or 0 if the gust speed matches "wind_speed_mph" or is unavailable)

wind_gust_kph

Wind gust speed in KPH (or 0 if the gust speed matches "wind_speed_kph" or is unavailable)

wind_direction

The wind direction, as a (inter-)cardinal direction in the set [ N NNE NE ENE E ESE SE SSE S SSW SW WSW W WNW NW NNW ]

wind_direction_degrees

The wind direction, in degrees azimuth.

SEE ALSO

http://www.openweathermap.org

Weather::OpenWeatherMap

Weather::OpenWeatherMap::Result

Weather::OpenWeatherMap::Result::Forecast

AUTHOR

Jon Portnoy <avenj@cobaltirc.org>