Imported from archive.
* Release 1.3. * FAQ: Update to clarify that specifying an id won't automatically provide a city and st to get the accompanying forecast. * weather: Provided a consistent means for relocating weather.py to a private location; thanks to Mark Tran for pointing out a conflict with pyweather in ArchLinux (and presumably other distros as well). * weather.py: Upped the version to 1.3.
This commit is contained in:
24
FAQ
24
FAQ
@@ -4,6 +4,16 @@ Copyright (c) 2006 Jeremy Stanley <fungi@yuggoth.org>, all rights reserved.
|
|||||||
Licensed per terms in the LICENSE file distributed with this software.
|
Licensed per terms in the LICENSE file distributed with this software.
|
||||||
|
|
||||||
|
|
||||||
|
Table of Contents:
|
||||||
|
|
||||||
|
1. Can I help?
|
||||||
|
2. How do I figure out my local METAR station ID?
|
||||||
|
3. How do I figure out my local city name and state abbreviation?
|
||||||
|
4. I live outside the USA--can this be made to work for me
|
||||||
|
anyway?
|
||||||
|
5. Why do I get the wrong forecast when specifying -i or --id?
|
||||||
|
|
||||||
|
|
||||||
1. Can I help?
|
1. Can I help?
|
||||||
|
|
||||||
Sure! Bug reports and feature suggestions are always welcome, but
|
Sure! Bug reports and feature suggestions are always welcome, but
|
||||||
@@ -42,3 +52,17 @@ likely to be published in a non-English language, requiring some
|
|||||||
additional input from speakers of that language for how to handle
|
additional input from speakers of that language for how to handle
|
||||||
filtering and formatting of the text.
|
filtering and formatting of the text.
|
||||||
|
|
||||||
|
|
||||||
|
5. Why do I get the wrong forecast when specifying -i or --id?
|
||||||
|
|
||||||
|
The -i or --id switch (or the id parameter in an alias definition),
|
||||||
|
only tells weather(1) what current conditions to retrieve. If you
|
||||||
|
specify -f or --forecast on the command line (or forecast=True in
|
||||||
|
an alias) without providing a city name and state abbreviation
|
||||||
|
(-c/--city and -s/--st, or city and st in an alias), you will
|
||||||
|
instead see the forecast for the built-in default location (or the
|
||||||
|
city and st defined in the default alias, if you have one). See
|
||||||
|
question 3 above for information on figuring out what city name and
|
||||||
|
state abbreviation to use, and the manual for weatherrc(5) for
|
||||||
|
information on defining aliases.
|
||||||
|
|
||||||
|
|||||||
8
weather
8
weather
@@ -1,11 +1,17 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
# weather version 1.2, http://fungi.yuggoth.org/weather/
|
# weather version 1.3, http://fungi.yuggoth.org/weather/
|
||||||
# Copyright (c) 2006 Jeremy Stanley <fungi@yuggoth.org>, all rights reserved.
|
# Copyright (c) 2006 Jeremy Stanley <fungi@yuggoth.org>, all rights reserved.
|
||||||
# Licensed per terms in the LICENSE file distributed with this software.
|
# Licensed per terms in the LICENSE file distributed with this software.
|
||||||
|
|
||||||
"""Wrapper utility using the weather.py module."""
|
"""Wrapper utility using the weather.py module."""
|
||||||
|
|
||||||
|
# added so distributors can consistently specify a private module location
|
||||||
|
private_module_path = None
|
||||||
|
if private_module_path:
|
||||||
|
import sys
|
||||||
|
sys.path.insert(1, private_module_path)
|
||||||
|
|
||||||
import weather
|
import weather
|
||||||
|
|
||||||
# initialize options and configs
|
# initialize options and configs
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
# weather.py version 1.2, http://fungi.yuggoth.org/weather/
|
# weather.py version 1.3, http://fungi.yuggoth.org/weather/
|
||||||
# Copyright (c) 2006 Jeremy Stanley <fungi@yuggoth.org>, all rights reserved.
|
# Copyright (c) 2006 Jeremy Stanley <fungi@yuggoth.org>, all rights reserved.
|
||||||
# Licensed per terms in the LICENSE file distributed with this software.
|
# Licensed per terms in the LICENSE file distributed with this software.
|
||||||
|
|
||||||
"""Contains various object definitions needed by the weather utility."""
|
"""Contains various object definitions needed by the weather utility."""
|
||||||
|
|
||||||
version = "1.2"
|
version = "1.3"
|
||||||
|
|
||||||
class Selections:
|
class Selections:
|
||||||
"""An object to contain selection data."""
|
"""An object to contain selection data."""
|
||||||
|
|||||||
Reference in New Issue
Block a user