summaryrefslogtreecommitdiffstats
path: root/info/blueshift.texinfo
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-03-27 23:26:06 +0100
committerMattias Andrée <maandree@operamail.com>2014-03-27 23:26:06 +0100
commitbb5dfcd19312932113b678d78d2d1d34c70db3c1 (patch)
tree27356e10adeb4fee0795af6a491bd2c4416bb9cd /info/blueshift.texinfo
parentupdate todo (diff)
downloadblueshift-bb5dfcd19312932113b678d78d2d1d34c70db3c1.tar.gz
blueshift-bb5dfcd19312932113b678d78d2d1d34c70db3c1.tar.bz2
blueshift-bb5dfcd19312932113b678d78d2d1d34c70db3c1.tar.xz
doc + make it possible to select download command for weather
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'info/blueshift.texinfo')
-rw-r--r--info/blueshift.texinfo21
1 files changed, 18 insertions, 3 deletions
diff --git a/info/blueshift.texinfo b/info/blueshift.texinfo
index 7984afc..27c9dd8 100644
--- a/info/blueshift.texinfo
+++ b/info/blueshift.texinfo
@@ -1332,9 +1332,16 @@ astronomical twilight, measured in degrees.
Blueshift includes the function @code{whether}
which gives a brief weather report. @code{whether}
-takes one argument: the International Civil Aviation
-Organization (ICAO) code of your closest airport.
-If Blueshift is unable to download the latest METAR
+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
+@code{lambda url : ['wget', url, '-O', '-']}. If
+Blueshift is unable to download the latest METAR
(Meteorological Aerodrome Report) @code{whether}
will return @code{None}. If successful it will
return the sky conditions (assumed clear if not
@@ -1363,6 +1370,14 @@ approximate.
The weather is reported as an string list, that
can and often is empty.
+Airports should publish METAR (Meteorological
+Aerodrome Report) reports at XX:20 and XX:50,
+it can presumable take some time before the
+collection server we use (weather.noaa.gov) have
+received it. Additionally some airports do not
+update while closed, and updates while closed
+are less accurate.
+
@node Running without X