Weather::OpenWeatherMap::Result::Forecast::Block - A Role for weather forecast items
# 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
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.
The forecast cloud coverage as a percentage.
The conditions category.
The conditions description string.
The OpenWeatherMap conditions code.
The OpenWeatherMap conditions icon.
my $date = $result->dt->mdy;
A DateTime object coerced from the timestamp (in UTC) attached to this forecast.
The forecast humidity as a percentage.
The forecast atmospheric pressure in hPa.
The forecast wind speed in MPH.
The forecast wind speed in KPH.
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 ]
[ N NNE NE ENE E ESE SE SSE S SSW SW WSW W WNW NW NNW ]
The forecast wind direction in degrees azimuth.
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
Jon Portnoy <avenj@cobaltirc.org>
To install Weather::OpenWeatherMap, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Weather::OpenWeatherMap
CPAN shell
perl -MCPAN -e shell install Weather::OpenWeatherMap
For more information on module installation, please visit the detailed CPAN module installation guide.