From c8f755270e710c83556767ebe18bd77621583cdf Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 19 Mar 2014 13:56:49 +0100 Subject: m doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/weather.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/weather.py b/src/weather.py index c3aa2f9..d5f8a2f 100644 --- a/src/weather.py +++ b/src/weather.py @@ -23,14 +23,15 @@ def weather(station): Get a brief weather report @param station:str The station's International Civil Aviation Organization airport code - @return :(sky:str, visiblity:(:int, :float)?, weather:list) + @return :(sky:str, visiblity:(:int, :float)?, weather:list)? The sky condition, visiblity and weather. Sky condition values include ‘clear’, ‘mostly clear’, ‘overcast’, ‘partly cloudy’, ‘mostly cloudy’ and ‘obscured’. The visibility consists of two parameters: the first on indicates the the visiblity is a upper bound if the value is -1, a lower bound if +1, and approximate if 0; the second parameter is the visibility in kilometers. If the visibility is unknown the value will - be `None`. The weather is a list that can, and often is, empty. + be `None`. The weather is a list that can, and often is, empty. `None` + is return if observation data cannot be downloaded. ''' url = 'http://weather.noaa.gov/pub/data/observations/metar/decoded/%s.TXT' url %= station.upper() -- cgit v1.2.3-70-g09d2