Updated base URL for weather widget
This commit is contained in:
parent
59841b30b4
commit
e7ee21cc73
|
@ -40,7 +40,7 @@ local function worker(format, warg)
|
|||
|
||||
-- Get weather forceast by the station ICAO code, from:
|
||||
-- * US National Oceanic and Atmospheric Administration
|
||||
local url = "http://weather.noaa.gov/pub/data/observations/metar/decoded/"..warg
|
||||
local url = "http://tgftp.nws.noaa.gov/data/observations/metar/decoded/"..warg
|
||||
local f = io.popen("curl --connect-timeout 1 -fsm 3 "..helpers.shellquote(url)..".TXT")
|
||||
local ws = f:read("*all")
|
||||
f:close()
|
||||
|
|
Loading…
Reference in New Issue