From 63b1999eb4a749014bc52ed486d92d9164332480 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 20 Feb 2017 20:23:02 +0100 Subject: Update doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- info/blueshift.texinfo | 21 +++++++++++++-------- 1 file 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} -- cgit v1.2.3-70-g09d2