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:
parent
477b8d284a
commit
515cc0dd6b
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue