From 52c31db52e8ccbf99512c738b6c044784b99b94b Mon Sep 17 00:00:00 2001 From: Luke Bonham Date: Mon, 13 Apr 2015 11:49:13 +0200 Subject: [PATCH 1/1] yawn: fair/windy icon added --- widgets/yawn/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/widgets/yawn/init.lua b/widgets/yawn/init.lua index be3e614..1f6b0f4 100644 --- a/widgets/yawn/init.lua +++ b/widgets/yawn/init.lua @@ -102,10 +102,10 @@ function yawn.fetch_weather() local hour = tonumber(os.date("%H")) sky = icon_path - if forecast == "Clear" or - forecast == "Fair" or - forecast == "Partly Cloudy" or - forecast == "Mostly Cloudy" + if string.find(forecast, "Clear") or + string.find(forecast, "Fair") or + string.find(forecast, "Partly Cloudy") or + string.find(forecast, "Mostly Cloudy") then if hour >= 6 and hour <= 18 then -- 2.39.5