[Pkg-wmaker-commits] [wmfrog] 01/02: Update metar data fetching URL.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Thu Nov 17 02:51:22 UTC 2016


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch upstream
in repository wmfrog.

commit 57cfff8085125b47a3107f1a9fc0eea56106f385
Author: Doug Torrance <dtorrance at piedmont.edu>
Date:   Sun Nov 13 10:03:02 2016 -0500

    Update metar data fetching URL.
    
    In accordance with NWS Service Change Notice 16-16 [1], the weather.noaa.gov
    service, which wmfrog uses to obtain weather information, was discontinued
    on August 3, 2016.
    
    However, the data is still available on the National Weather Service's FTP
    server [2].
    
    Patch by Bastien Mourgues <bastien.mourgues at free.fr>, reported in Debian
    bug #843873.
    
    [1] http://www.nws.noaa.gov/om/notification/scn16-16wngccb.htm
    [2] ftp://tgftp.nws.noaa.gov/data/observations/metar/stations/
    [3] https://bugs.debian.org/843873
---
 wmfrog/Src/weather.pl | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/wmfrog/Src/weather.pl b/wmfrog/Src/weather.pl
index 712919b..8f64fa4 100755
--- a/wmfrog/Src/weather.pl
+++ b/wmfrog/Src/weather.pl
@@ -27,7 +27,7 @@
 #       faster, however this might get broken if NOAA change their
 #       webpage layout in wich case you should choose ftp.
 
-$mode="http"; # html || ftp
+$mode="ftp"; # html || ftp
 
 $debug = 0; # turn On/Off debugging
 
@@ -54,6 +54,8 @@ mkdir $tmpfolder;
 
 $html = "http://weather.noaa.gov/cgi-bin/mgetmetar.pl?cccc=${station}";
 $ftp  = "ftp://weather.noaa.gov/data/observations/metar/stations/${station}.TXT";
+$ftp  = "ftp://tgftp.nws.noaa.gov/data/observations/metar/stations/${station}.TXT";
+
 $url  = $html;
 
 if ( $mode eq "ftp" )

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmfrog.git



More information about the Pkg-wmaker-commits mailing list