On Wed, 3 Aug 2016, Matthieu Weber wrote: > > The URL of the source of the data used by wmweather has changed, > causing the software to exit immediately upon start. > > The fix is trivial, and a patch is included.
Yeah, I thought of that too. And tested (from strace): GET /pub/data/observations/metar/decoded/YBRM.TXT HTTP/1.1\r\nHost: tgftp.nws.noaa.gov\r\nUser-Agent: wmweather 2.4.5\r\nAccept: */*\r\n\r\n HTTP/1.1 404 Not Found\r\nDate: Thu, 04 Aug 2016 19:46:03 GMT\r\nServer: Apache\r\nX-Frame-Options: SAMEORIGIN\r\nX-Content-Type-Options: nosniff\r\nX-XSS-Protection: 1; mode=block\r\nVary: Accept-Encoding\r\nContent-Length: 242\r\nContent-Type: text/html; charset=iso-8859-1\r\nSet-Cookie: NSC_ESNS=10f244c1-39a9-17a3-9678-00e0ed227be8_4120082755_1338136870_00000000043233782597; Path=/; Expires=Thu, 04-Aug-2016 19:46:18 GMT\r\n\r\n<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>404 Not Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p>The requested URL /pub/data/observations/metar/decoded/YBRM.TXT was not found on this server.</p>\n</body></html>\n `wget' behaves likewise: wget http://tgftp.nws.noaa.gov/pub/data/observations/metar/decoded/YBRM.TXT --2016-08-04 21:39:59-- http://tgftp.nws.noaa.gov/pub/data/observations/metar/decoded/YBRM.TXT Resolving tgftp.nws.noaa.gov (tgftp.nws.noaa.gov)... 140.90.101.79 Connecting to tgftp.nws.noaa.gov (tgftp.nws.noaa.gov)|140.90.101.79|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2016-08-04 21:40:01 ERROR 404: Not Found. but managed to get sooomething with `curl' a few minutes ago; not any more: curl -qvs http://tgftp.nws.noaa.gov/pub/data/observations/metar/decoded/YBRM.TXT * Trying 140.90.101.79... * Connected to tgftp.nws.noaa.gov (140.90.101.79) port 80 (#0) > GET /pub/data/observations/metar/decoded/YBRM.TXT HTTP/1.1 > Host: tgftp.nws.noaa.gov > User-Agent: curl/7.50.1 > Accept: */* > < HTTP/1.1 404 Not Found < Date: Thu, 04 Aug 2016 19:52:13 GMT < Server: Apache < X-Frame-Options: SAMEORIGIN < X-Content-Type-Options: nosniff < X-XSS-Protection: 1; mode=block < Vary: Accept-Encoding < Content-Length: 242 < Content-Type: text/html; charset=iso-8859-1 < Set-Cookie: NSC_ESNS=1104eaf0-3b1b-17a3-9678-00e0ed227be8_2753958198_0511137557_00000000013169675417; Path=/; Expires=Thu, 04-Aug-2016 19:52:28 GMT < <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /pub/data/observations/metar/decoded/YBRM.TXT was not found on this server.</p> </body></html> * Connection #0 to host tgftp.nws.noaa.gov left intact `wmfrog' manages to get somthing out, using some other url: http://weather.noaa.gov/mgetmetar.php?cccc=YBRM It seems `wmweather' can't handle redirections and there's some fsck at noaa.gov :( Cheers, -- Cristian