diff options
author | Mattias Andrée <maandree@kth.se> | 2017-02-20 20:23:02 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2017-02-20 20:23:02 +0100 |
commit | 63b1999eb4a749014bc52ed486d92d9164332480 (patch) | |
tree | 012045f194e687417628f98147d38fee79fdfdc6 | |
parent | Get METAR station from ~/.config/metar if not specified (diff) | |
download | blueshift-63b1999eb4a749014bc52ed486d92d9164332480.tar.gz blueshift-63b1999eb4a749014bc52ed486d92d9164332480.tar.bz2 blueshift-63b1999eb4a749014bc52ed486d92d9164332480.tar.xz |
Update doc
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | info/blueshift.texinfo | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/info/blueshift.texinfo b/info/blueshift.texinfo index 1036619..5f8548e 100644 --- a/info/blueshift.texinfo +++ b/info/blueshift.texinfo @@ -1306,14 +1306,19 @@ This value is approximate. Blueshift includes the function @code{whether} which gives a brief weather report. @code{whether} -takes one manditory argument: the International -Civil Aviation Organization (ICAO) code of your -closest airport. It also takes one optional argument, -@code{downloader}: an function that takes an URL -to download as its only parameter and returns a -command, as a list of arguments, that downloads -the file at the given URL to standard output. -The default @code{downloader} is +takes two optional argument, @code{station}: the +International Civil Aviation Organization (ICAO) +code of your closest airport or other METAR +station , and @code{downloader}: an function that +takes an URL to download as its only parameter and +returns a command, as a list of arguments, that +downloads the file at the given URL to standard +output. If @code{station} is not specified (is +@code{None}), @file{$HOME/.config/metar} +is read, with fallback to @file{~/.config/metar} and +@file{/etc/metar}; the first line is used, as-is sans +LF-termination, as the weather station. The default +@code{downloader} is @code{lambda url : ['wget', url, '-O', '-']}. If Blueshift is unable to download the latest METAR (Meteorological Aerodrome Report) @code{whether} |