aboutsummaryrefslogtreecommitdiff
path: root/weather.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-09-24 15:34:56 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-09-24 15:34:56 +0200
commita54350782e9bbd81aad3ef58a11826e3cd13134c (patch)
treec2281044157b39ab3c7f780d500d084e7d3d3d55 /weather.lua
parent080d1e82f535e5a8e6fb3fbb4e1df97f7a21bf42 (diff)
downloadvicious-legacy-a54350782e9bbd81aad3ef58a11826e3cd13134c.tar.xz
General cleanup to match with HEAD
Diffstat (limited to 'weather.lua')
-rw-r--r--weather.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/weather.lua b/weather.lua
index 476c969..e18fe7f 100644
--- a/weather.lua
+++ b/weather.lua
@@ -18,7 +18,7 @@ module("vicious.weather")
-- {{{ Weather widget type
local function worker(format, station)
-- US National Oceanic and Atmospheric Administration
- -- * Station (ICAO) codes: http://www.rap.ucar.edu/weather/surface/stations.txt
+ -- * ICAO codes: http://www.rap.ucar.edu/weather/surface/stations.txt
local noaa = "http://weather.noaa.gov/pub/data/observations/metar/decoded/"
-- Get info from a weather station
@@ -26,11 +26,8 @@ local function worker(format, station)
local ws = f:read("*all")
f:close()
- -- Setup tables
+ -- Default values
local weather = {
- -- Some of the weather symbols would look nice if prepended to
- -- the final output, but it is up to the user to do that
- -- * http://www.alanwood.net/unicode/miscellaneous_symbols.html
["{city}"] = "N/A",
["{wind}"] = "N/A",
["{windmph}"] = "N/A",