WWW::Weather::Yahoo - Gets information from yahoo weather.
use WWW::Weather::Yahoo; my $yw = WWW::Weather::Yahoo->new( 'São Paulo, SP', 'c' );#by city name my $yw = WWW::Weather::Yahoo->new( 'São Paulo, SP', 'f' );#by city name my $yw = WWW::Weather::Yahoo->new( 455827 , 'c' ); #by woeid print $yw->{ _weather }{location_city}; print $yw->{ _weather }{location_region}; print $yw->{ _weather }{location_country}; print $yw->{ _weather }{unit_temperature}; print $yw->{ _weather }{unit_distance}; print $yw->{ _weather }{unit_pressure}; print $yw->{ _weather }{unit_speed}; print $yw->{ _weather }{wind_chill}; print $yw->{ _weather }{wind_direction}; print $yw->{ _weather }{wind_speed}; print $yw->{ _weather }{atmosphere_humidity}; print $yw->{ _weather }{atmosphere_visibility}; print $yw->{ _weather }{atmosphere_pressure}; print $yw->{ _weather }{atmosphere_rising}; print $yw->{ _weather }{astronomy_sunrise}; print $yw->{ _weather }{astronomy_sunset}; print $yw->{ _weather }{location_lat}; print $yw->{ _weather }{location_lng}; print $yw->{ _weather }{condition_text}; print $yw->{ _weather }{condition_code}; print $yw->{ _weather }{condition_temp}; print $yw->{ _weather }{condition_date}; print $yw->{ _weather }{condition_img_src}; print $yw->{ _weather }{forecast_tomorrow_day}; print $yw->{ _weather }{forecast_tomorrow_date}; print $yw->{ _weather }{forecast_tomorrow_low}; print $yw->{ _weather }{forecast_tomorrow_high}; print $yw->{ _weather }{forecast_tomorrow_text}; print $yw->{ _weather }{forecast_tomorrow_code};
WWW::Weather::Yahoo retrieves weather data from http://weather.yahoo.com. Enter the city name and get weather data.
Hernan Lopes CPAN ID: HERNAN HERNAN hernanlopes@gmail.com
This program is free software licensed under the...
The BSD License
The full text of the license can be found in the LICENSE file included with this module.
perl(1).
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in ''São'. Assuming UTF-8
To install WWW::Weather::Yahoo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Weather::Yahoo
CPAN shell
perl -MCPAN -e shell install WWW::Weather::Yahoo
For more information on module installation, please visit the detailed CPAN module installation guide.