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.
This commit is contained in:
Adrian C. (anrxc) 2009-08-06 01:50:50 +02:00
parent 477b8d284a
commit 515cc0dd6b
1 changed files with 1 additions and 1 deletions

View File

@ -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()