Add "Fog" weather condition
This commit is contained in:
parent
1cc93937e5
commit
7298b7782b
@ -85,6 +85,7 @@ class Weather(IntervalModule):
|
||||
colorize = False
|
||||
color_icons = {
|
||||
'Fair': (u'\u263c', '#ffcc00'),
|
||||
'Fog': (u'', '#949494'),
|
||||
'Cloudy': (u'\u2601', '#f8f8ff'),
|
||||
'Partly Cloudy': (u'\u2601', '#f8f8ff'), # \u26c5 is not in many fonts
|
||||
'Rainy': (u'\u26c8', '#cbd2c0'),
|
||||
@ -131,6 +132,8 @@ class Weather(IntervalModule):
|
||||
condition = 'Sunny'
|
||||
elif 'clear' in condition_lc or 'fair' in condition_lc:
|
||||
condition = 'Fair'
|
||||
elif 'fog' in condition_lc:
|
||||
condition = 'Fog'
|
||||
|
||||
return self.color_icons['default'] \
|
||||
if condition not in self.color_icons \
|
||||
|
Loading…
Reference in New Issue
Block a user