Weather::OpenWeatherMap::Result::Current - Weather conditions result
# Normally retrieved via Weather::OpenWeatherMap
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.
The country string.
my $reported_at = $result->dt->hms;
A UTC DateTime object representing the time this report was updated.
The OpenWeatherMap city code.
The station's latitude.
The station's longitude.
The returned city name.
The returned station name.
The cloud coverage as a percentage.
The OpenWeatherMap conditions code.[
The OpenWeatherMap conditions icon.
The conditions category.
The conditions description string.
Current humidity.
Atmospheric pressure in hPa.
A UTC DateTime object representing sunrise time.
(Not available for Weather::OpenWeatherMap::Result::Find result items.)
A UTC DateTime object representing sunset time.
Temperature in degrees Fahrenheit.
Temperature in degrees Celsius.
Wind speed in MPH.
Wind speed in KPH.
Wind gust speed in MPH (or 0 if the gust speed matches "wind_speed_mph" or is unavailable)
Wind gust speed in KPH (or 0 if the gust speed matches "wind_speed_kph" or is unavailable)
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 ]
[ N NNE NE ENE E ESE SE SSE S SSW SW WSW W WNW NW NNW ]
The wind direction, in degrees azimuth.
http://www.openweathermap.org/current
Weather::OpenWeatherMap::Result
Weather::OpenWeatherMap::Result::Forecast
Weather::OpenWeatherMap::Request
Jon Portnoy <avenj@cobaltirc.org>
Licensed under the same terms as Perl.
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.