WebService::Livedoor::Weather - Perl interface to Livedoor Weather Web Service


WebService-Livedoor-Weather documentation  | view source Contained in the WebService-Livedoor-Weather distribution.

Index


NAME

Top

WebService::Livedoor::Weather - Perl interface to Livedoor Weather Web Service

SYNOPSIS

Top

  use WebService::Livedoor::Weather;

  $lwws = WebService::Livedoor::Weather->new;
  my $ret = $lwws->get('63','tomorrow'); #63 is tokyo

  print $ret->{title};
  print $ret->{description};

DESCRIPTION

Top

WebService::Livedoor::Weather is a simple interface to Livedoor Weather Web Service (LWWS)

METHODS

Top

    $lwws = WebService::Livedoor::Weather->new;
    $lwws = WebService::Livedoor::Weather->new(fetch=>{
        Cache=>$c
    });

creates an instance of WebService::Livedoor::Weather.

fetch is option for URI::Fetch that used for fetching weather information.

    my $ret = $lwws->get('63','tomorrow'); #63 is tokyo
    my $ret = $lwws->get('cityname','today');

retrieve weather. You can get a city id from http://weather.livedoor.com/forecast/rss/forecastmap.xml

SEE ALSO

Top

URI::Fetch http://weather.livedoor.com/weather_hacks/webservice.html (Japanese)

AUTHOR

Top

Masahiro Nagano, <kazeburo@nomadscafe.jp>

COPYRIGHT AND LICENSE

Top


WebService-Livedoor-Weather documentation  | view source Contained in the WebService-Livedoor-Weather distribution.