The get_metar() function is attempting to parse the name of the
locality out of the first line of the decoded METAR. Using the
verbose output option you can see why this won't work:

   fu...@cthulhu:~$ weather -viKMJX
   Station name not available
   Mar 12, 2010 - 09:55 AM EST / 2010.03.12 1455 UTC
   Wind: from the ENE (060 degrees) at 12 MPH (10 KT) gusting to 20 MPH (17 
KT):0
   Visibility: 5 mile(s):0
   Sky conditions: overcast
   Temperature: 42 F (6 C)
   Dew Point: 39 F (4 C)
   Relative Humidity: 86%
   Pressure (altimeter): 30.06 in. Hg (1017 hPa)
   Pressure tendency: the same as three hours ago
   ob: KMJX 121455Z AUTO 06010G17KT 5SM OVC004 06/04 A3006 RMK AO1 54000
   cycle: 15

Since I hadn't seen this on other METARs in the past, the parser
(which could stand some beefed-up error handling anyway) doesn't
account for it. I'll work a fix for this into a new release and post
a patch to this bug.
-- 
{ IRL(Jeremy_Stanley); PGP(9E8DFF2E4F5995F8FEADDC5829ABF7441FB84657);
SMTP(fu...@yuggoth.org); IRC(fu...@irc.yuggoth.org#ccl); ICQ(114362511);
AIM(dreadazathoth); YAHOO(crawlingchaoslabs); FINGER(fu...@yuggoth.org);
MUD(fu...@katarsis.mudpy.org:6669); WWW(http://fungi.yuggoth.org/); }



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to