Weather::YR - Perl extension for talking to yr.no
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'};
This Perl package contains parsers and web service clients for using web services from yr.no.
None by default.
Weather::YR::Locationforecast, Weather::YR::Textforecast
Knut-Olav Hoven, <knut-olav@hoven.ws>
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.
To install Weather::YR, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Weather::YR
CPAN shell
perl -MCPAN -e shell install Weather::YR
For more information on module installation, please visit the detailed CPAN module installation guide.