aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-08-06 01:50:50 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-08-06 01:50:50 +0200
commit515cc0dd6bc24d56e85803f626e60fa70bb73b4e (patch)
treecb33989f175b0c787f927115ea2f5aa61bf5f28a
parent477b8d284ad3ab84f4990cbba4570910e3ffa522 (diff)
downloadvicious-legacy-515cc0dd6bc24d56e85803f626e60fa70bb73b4e.tar.xz
Weather widget switched to curl.
It is somewhat lighter, faster and simpler than wget. It is as common as wget these days... from GnuPG to Git and Gimp, they all depend on it, and we all have it installed.
-rw-r--r--weather.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/weather.lua b/weather.lua
index e156da8..3dba976 100644
--- a/weather.lua
+++ b/weather.lua
@@ -22,7 +22,7 @@ function worker(format, station)
local noaa = "http://weather.noaa.gov/pub/data/observations/metar/decoded/"
-- Get info from a weather station
- local f = io.popen("wget --timeout=3 -o /dev/null -O - "..noaa..station..".TXT")
+ local f = io.popen("curl --max-time 3 -f -s "..noaa..station..".TXT")
local ws = f:read("*all")
f:close()