diff options
Diffstat (limited to 'weather.lua')
-rw-r--r-- | weather.lua | 2 |
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() |