Name

Weather::WWO - API to World Weather Online

Synopsis

my $wwo = Weather::WWO->new( api_key => $my_api_key, location => $location, temperature_units => 'F', wind_units => 'Miles'); Where the $location can be: * zip code * IP address * latitude,longitude

my ($highs, $lows) = $wwo->forecast_temperatures;

NOTE: api_key and location are required parameters to new()

forecast_temperatures

Get the high and low temperatures for the number of days specified.

Returns: Array of two ArrayRefs being the high and low temperatures
Example: my ($highs, $lows) = $wwo->forecast_temperaures;

highs

Get an ArrayRef[Int] of the forecasted high temperatures.

lows

Get an ArrayRef[Int] of the forecasted low temperatures.

winds

Get an ArrayRef[Int] of the forecasted wind speeds.

get_forecast_data_by_key

Get the values for a single forecast metric. Examples are: tempMinF, tempMaxC, windspeedMiles etc...

query_string

Construct the query string based on object attributes.

query_URL

Construct the to URL to get by putting the source URL and query_string together.

Authors

Mateu Hunter hunter@missoula.org

Copyright

Copyright 2010, Mateu Hunter

License

You may distribute this code under the same terms as Perl itself.