On Thu 04.08.2016 at 10:20:17PM +0200, Cristian Ionescu-Idbohrn wrote: > 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
Remove the "/pub" in the beginning of the path, it shouldn't be there. This url works: http://tgftp.nws.noaa.gov/data/observations/metar/decoded/YBRM.TXT This one does not: http://tgftp.nws.noaa.gov/pub/data/observations/metar/decoded/YBRM.TXT > `wmfrog' manages to get somthing out, using some other url: > > http://weather.noaa.gov/mgetmetar.php?cccc=YBRM Looks like a web page with the METAR data in it, but you then need to parse the HTML. > It seems `wmweather' can't handle redirections That is true, but I guess that the original URL is going to go out of comission at some point, so we would then face the same problem at that time, since wmweather cannot "learn" the new URL from the redirection. wmweather has been working fine for 36h with my patch, so it seems that the new URL has been working all this time. I'm quite happy with that solution, and I'll work on another one if there is ever a problem more complex than changing the URL. Matthieu -- (~._.~) Matthieu Weber - mwe...@free.fr (~._.~) ( ? ) http://weber.fi.eu.org/ ( ? ) ()- -() public key id : 0x85CB340EFCD5E0B3 ()- -() (_)-(_) "Humor ist, wenn man trotzdem lacht (Otto J. Bierbaum)" (_)-(_)