NAME
Weather::YR - Perl extension for talking to yr.no
SYNOPSIS
use Weather::YR;
#
# Location forecast
#
use Weather::YR::Locationforecast;
my $loc = Weather::YR::Locationforecast->new(
{
'latitude' => '59.6327',
'longitude' => '10.2468',
}
);
my $loc_forecast = $loc->forecast;
print $loc_forecast->[0]->{'temperature'}->{'value'} . " degrees celcius";
#
# Text forecast
#
use Weather::YR::Textforecast;
my $text = Weather::YR::Textforecast->new(
{
'language' => 'nb',
'forecast' => 'land',
}
);
$text_forecast = $text->forecast;
print $text_forecast->{'title'};
DESCRIPTION
This Perl package contains parsers and web service clients for using web services from yr.no.
EXPORT
None by default.
SEE ALSO
Weather::YR::Locationforecast, Weather::YR::Textforecast
AUTHOR
Knut-Olav Hoven, <knut-olav@hoven.ws>
COPYRIGHT AND LICENSE
Copyright (C) 2008 by Knut-Olav Hoven
This library is free software; you can redireibute it and/or modify it under the terms as GNU GPL version 2.