Update NOAA link used by weather_all to HTTPS

Thank @yipengsun for the catch. Close #73
This commit is contained in:
Nguyễn Gia Phong 2019-02-05 16:21:01 +07:00
parent ef36b77221
commit 94037efc6c
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ local function worker(format, warg)
-- Get weather forceast by the station ICAO code, from: -- Get weather forceast by the station ICAO code, from:
-- * US National Oceanic and Atmospheric Administration -- * US National Oceanic and Atmospheric Administration
local url = "http://tgftp.nws.noaa.gov/data/observations/metar/decoded/"..warg local url = "https://tgftp.nws.noaa.gov/data/observations/metar/decoded/"..warg
local f = io.popen("curl --connect-timeout 1 -fsm 3 "..helpers.shellquote(url)..".TXT") local f = io.popen("curl --connect-timeout 1 -fsm 3 "..helpers.shellquote(url)..".TXT")
local ws = f:read("*all") local ws = f:read("*all")
f:close() f:close()