Access weather API via HTTPS
This commit is contained in:
parent
5a5c9eb8f0
commit
1381ea5275
|
@ -97,7 +97,7 @@ local weather_timer = timer({ timeout = 60 })
|
|||
local resp
|
||||
|
||||
weather_timer:connect_signal("timeout", function ()
|
||||
local resp_json = http.request("http://api.openweathermap.org/data/2.5/weather?q=" .. city .."&appid=" .. open_map_key)
|
||||
local resp_json = http.request("https://api.openweathermap.org/data/2.5/weather?q=" .. city .."&appid=" .. open_map_key)
|
||||
if (resp_json ~= nil) then
|
||||
resp = json.decode(resp_json)
|
||||
icon_widget.image = path_to_icons .. icon_map[resp.weather[1].icon]
|
||||
|
|
Loading…
Reference in New Issue