Geo::WeatherNWS

A simple way to get current weather data from the NWS.
Download

Geo::WeatherNWS Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Marc Slagle
  • Publisher web site:
  • http://search.cpan.org/~mslagle/Silly-Krad-0.03/Krad.pm

Geo::WeatherNWS Tags


Geo::WeatherNWS Description

A simple way to get current weather data from the NWS. Geo::WeatherNWS is a Perl module that offers a simple way to get current weather data from the NWS.SYNOPSIS use Geo::WeatherNWS; my $Report=Geo::WeatherNWS::new(); # Optionally set the server/user/directory of the reports $Report->setservername("weather.noaa.gov"); $Report->setusername("anonymous"); $Report->setpassword('emailaddress@yourdomain.com'); $Report->setdirectory("/data/observations/metar/stations"); # Optionally set a template file for generating HTML $Report->settemplatefile(/"path/to/template/file.tmpl"); # Get the report $Report->getreport('kcvg'); # kcvg is the station code for # Cincinnati, OH $Report->getreporthttp('kcvg'); # same as before, but use the http # method to the script at # weather.noaa.gov # Check for errors if ($Report->{error}) { print "$Report->{errortext} "; } # If you have the report in a string, you can now just decode it my $Obs="2002/02/25 12:00 NSFA 251200Z 00000KT 50KM FEW024 SCT150 27/25 Q1010"; $Report->decodeobs($Obs); Requirements: · Perl


Geo::WeatherNWS Related Software