Name : perl-Yahoo-Weather
| |
Version : 0.04
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.6.1
| Date : 2023-07-20 15:35:48
|
Group : Development/Libraries/Perl
| Source RPM : perl-Yahoo-Weather-0.04-lp155.6.1.src.rpm
|
Size : 0.06 MB
| |
Packager : https://www_suse_com/
| |
Summary : Perl extension to Find Current Observation WEATHER and Two Day Forecast[cut]
|
Description :
Documentation for Yahoo::Weather. This module will get you Weather for 4.5 Million Locations (approx) but one at a time either by ZIPCODE or Place Name.
Create an Object for Yahoo::Weather.
Yahoo::Weather->new();
Get Weather Details Based on Location Name
$obj->getWeatherByLocation($place);
Get Weather Details Based on Zip Code
$obj->getWeatherByLocation($zip);
Get Weather Details Based on Location Name in FAH
$obj->getWeatherByLocation($place,f);
Get Weather Details Based on Zip Code
$obj->getWeatherByLocation($zip,F);
Default is Cel and if you need it in FARENHEIT only pass \'f\' or \'F\' as last parameter(second parameter) or else it defaults to Celsius.
getWeatherByLocation function needs either ZIPCODE or PLACENAME as mandate. Second Parameter is Optional. In none specified it defaults to CENTIGRADE.
Get GEOGRAPHICAL Sugestions based Zip Code or Place Name
$obj->getSugestions($zip); $obj->getSugestions($loc);
Above 2 functions gives you GEO Details based on either ZIP or PLACE NAME.
getSugestions function takes only one ARG.
ALL above mentioned methods gives you a HASHREF as return value unless some thing goes wrong.
In case of exceptions, we get following
LOCATION_EMPTY = -1
INVALID_LOCATION = -2
INVALID_ZIP = -2
ZIP_EMPTY = -1
WEATHER_FORECAST_NOT_AVAILABLE = -3
INVALID_KEYWORD = -4 -For Getting Sugestions
SUGESTIONS_NOT_AVAILABLE = -4 For Getting Sugestions
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-Y/15.5/noarch |