small fixes

This commit is contained in:
luke bonham 2014-08-07 12:21:02 +02:00
parent f2fb4f6fda
commit 4903782e55
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