Access weather API via HTTPS

This commit is contained in:
Sviatoslav Sydorenko 2018-03-21 19:17:56 +01:00
parent 5a5c9eb8f0
commit 1381ea5275
No known key found for this signature in database
GPG Key ID: 9345E8FEA89CA455
1 changed files with 1 additions and 1 deletions

View File

@ -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]