Update NOAA link used by weather_all to HTTPS
Thank @yipengsun for the catch. Close #73
This commit is contained in:
parent
ef36b77221
commit
94037efc6c
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue