Mike Machado > Geo-Weather > Geo::Weather

Download:
Geo-Weather-1.41.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  1
View/Report Bugs
Module Version: 1.41   Source  

NAME ^

Geo::Weather - Weather retrieval module

SYNOPSIS ^

  use Geo::Weather;

  my $weather = new Geo::Weather;

  $weather->get_weather('Folsom','CA');

  print $weather->report();

  -or-

  use Geo::Weather;

  my $weather = new Geo::Weather;
  $weather->{timeout} = 5; # set timeout to 5 seconds instead of the default of 10

  my $current = $weather->get_weather('95630');

  print "The current temperature is $current->{temp} degrees\n";

DESCRIPTION ^

The Geo::Weather module retrieves the current weather from weather.com when given city and state or a US zip code. Geo::Weather relies on LWP::UserAgent to work. In order for the timeout code to work correctly, you must be using a recent version of libwww-perl and IO::Socket. Geo::Weather was developed with libwww-perl 5.53 and IO::Socket 1.26.

FUNCTIONS ^

OBJECT KEYS ^

There are several object hash keys that can be set to manipulate how Geo::Weather works. The hash keys should be set directly following new.

Below is a list of each key and what it does:

AUTHOR ^

 Geo::Weather was wrtten by Mike Machado I<E<lt>mike@innercite.comE<gt>>
syntax highlighting: