small fixes

This commit is contained in:
luke bonham 2014-08-07 12:21:02 +02:00 committed by copycat-killer
parent b7c3cb77a1
commit 3e735d3eff
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ yawn_notification_preset = {}
local function fetch_weather()
local url = api_url .. units_set .. city_id
local f = io.popen("curl --connect-timeout 1 -fsm 3 '" .. url .. "'" )
local text = f:read("*all")
local text = f:read("*a")
f:close()
-- In case of no connection or invalid city ID