From 2ac7c6af3de22f04dabe6ce176e578bd957d4165 Mon Sep 17 00:00:00 2001 From: Erik Johnson Date: Wed, 30 Mar 2016 11:40:30 -0500 Subject: [PATCH] Support more types of "rain" conditions --- i3pystatus/weather/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3pystatus/weather/__init__.py b/i3pystatus/weather/__init__.py index c8fa2ed..e45e39d 100644 --- a/i3pystatus/weather/__init__.py +++ b/i3pystatus/weather/__init__.py @@ -118,7 +118,7 @@ class Weather(IntervalModule): condition = 'Cloudy' elif condition_lc == 'clear': condition = 'Fair' - elif condition_lc == 'rain': + elif 'rain' in condition_lc: condition = 'Rainy' elif 'thunder' in condition_lc: condition = 'Thunderstorm'