From 0fafb1a652510f73c3bb3bc703341d6c950701a9 Mon Sep 17 00:00:00 2001 From: Erik Johnson Date: Wed, 30 Mar 2016 13:19:38 -0500 Subject: [PATCH] Identify more kinds of cloudy weather --- i3pystatus/weather/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/i3pystatus/weather/__init__.py b/i3pystatus/weather/__init__.py index e45e39d..45ffe4e 100644 --- a/i3pystatus/weather/__init__.py +++ b/i3pystatus/weather/__init__.py @@ -114,10 +114,10 @@ class Weather(IntervalModule): and color that match. ''' condition_lc = condition.lower() - if condition_lc == 'mostly cloudy': - condition = 'Cloudy' - elif condition_lc == 'clear': + if condition_lc == 'clear': condition = 'Fair' + if 'cloudy' in condition_lc: + condition = 'Cloudy' elif 'rain' in condition_lc: condition = 'Rainy' elif 'thunder' in condition_lc: