| Geo :: weathernws Una forma sencilla de obtener datos meteorológicos actuales de los NWS. |
Descargar ahora |
Geo :: weathernws Clasificación y resumen
- Licencia:
- Perl Artistic License
- Nombre del editor:
- Marc Slagle
- Sitio web del editor:
- http://search.cpan.org/~mslagle/Silly-Krad-0.03/Krad.pm
Geo :: weathernws Etiquetas
Geo :: weathernws Descripción
Una forma sencilla de obtener datos meteorológicos actuales de los NWS. GEO :: Weathernws es un módulo PERL que ofrece una forma sencilla de obtener datos meteorológicos actuales del NWS.SYNOPSIS Use GEO :: WeatherNWS; My $ Informe = Geo :: Weathernws :: New (); # Configure opcionalmente el servidor / usuario / directorio de los informes $ informe-> SetServerName ("Weather.noaa.gov"); $ Informe-> SetUsName ("Anónimo"); $ Informe-> setpassword ('emailaddress@yourdomain.com '); $ INFORME-> SETDIRTORY ("/ DATOS / Observaciones / Metar / Estaciones"); #, Opcionalmente, configure un archivo de plantilla para generar html $ informe-> SELFETPLEFILE FILE (/ "RAYA / A / TEMPLARA / FILE.TMPL"); # Obtener el informe $ informe-> getReport ('kcvg'); # kcvg es el código de la estación para # Cincinnati, OH $ INFORME-> getReporthttp ('kcvg'); # mismo que antes, pero use el método HTTP # al script en # Weather.noaa.gov # Check for Errores si ($ informe -> {error}) {imprimir "$ informe -> {errorText} ";} # Si tiene el informe en una cadena, ahora puede decodificarlo My $ OBS =" 2002/02/2512:00 NSFA 251200Z 00000KT 50km Found024 SCT15027/25 Q1010 "; $ informe-> Decodiobs ( $ OBS); REQUISITOS: · Perl
Geo :: weathernws Software relacionado