The city and state flags are for specifying a NWS forecast location.
For current conditions data, you must specify a METAR station ID.
You probably want something like this (for La Guardia):

   weather --id=KLGA

Or:

   weather --forecast --city="New York" --st=NY --id=KLGA

Though for most major US airports, there are three-letter macros
defined in the configuration already, such as:

   weather lga

For a list of NY-specific macros, do:

   weather --list | grep "st=NY"

If you want to override the default location information (what gets
output when you don't specify a macro/valid flag combination) or
force any other behavior, you could put something like this in your
~/.weatherrc:

   [default]
   City = New York
   St = NY
   ID = KLGA
   Forecast = True

If you can point out where in the manpage this information was
unclear, I will be happy to see upstream documentation gets modified
to be more obvious where this issue is concerned. If the issue is
more one of the program not erroring on invalid flag values, this
might be more related to Debian bug 379102, for which I am working
on an upstream fix:

   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=379102

If so, they should probably be merged.

As always, thanks for your report!
-- 
{ IRL(Jeremy_Stanley); PGP(9E8DFF2E4F5995F8FEADDC5829ABF7441FB84657);
SMTP([EMAIL PROTECTED]); IRC([EMAIL PROTECTED]); ICQ(114362511);
AIM(dreadazathoth); YAHOO(crawlingchaoslabs); FINGER([EMAIL PROTECTED]);
MUD([EMAIL PROTECTED]:6669); WWW(http://fungi.yuggoth.org/); }



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to