NAME

Weather::OpenWeatherMap::Result::Forecast::Block - A Role for weather forecast items

SYNOPSIS

# A Role providing attributes/methods for objects produced by a
# Weather::OpenWeatherMap::Result::Forecast, one of:
#  Weather::OpenWeatherMap::Result::Forecast::Day
#  Weather::OpenWeatherMap::Result::Forecast::Hour

DESCRIPTION

This role provides methods and attributes for classes implementing a Weather::OpenWeatherMap weather forecast for a block of time, such as Weather::OpenWeatherMap::Result::Forecast::Day & Weather::OpenWeatherMap::Result::Forecast::Hour.

ATTRIBUTES

cloud_coverage

The forecast cloud coverage as a percentage.

conditions_terse

The conditions category.

conditions_verbose

The conditions description string.

conditions_code

The OpenWeatherMap conditions code.

conditions_icon

The OpenWeatherMap conditions icon.

dt

my $date = $result->dt->mdy;

A DateTime object coerced from the timestamp (in UTC) attached to this forecast.

humidity

The forecast humidity as a percentage.

pressure

The forecast atmospheric pressure in hPa.

wind_speed_mph

The forecast wind speed in MPH.

wind_speed_kph

The forecast wind speed in KPH.

wind_direction

The forecast 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 forecast wind direction in degrees azimuth.

SEE ALSO

Weather::OpenWeatherMap::Result

Weather::OpenWeatherMap::Result::Forecast

Weather::OpenWeatherMap::Result::Forecast::Day

Weather::OpenWeatherMap::Result::Forecast::Hour

Weather::OpenWeatherMap::Result::Current

http://www.openweathermap.org

AUTHOR

Jon Portnoy <avenj@cobaltirc.org>