diff --git a/__pycache__/iconSelector.cpython-311.pyc b/__pycache__/iconSelector.cpython-311.pyc index 59bf320..6d9d874 100644 Binary files a/__pycache__/iconSelector.cpython-311.pyc and b/__pycache__/iconSelector.cpython-311.pyc differ diff --git a/iconSelector.py b/iconSelector.py index 5e91216..4bbc070 100644 --- a/iconSelector.py +++ b/iconSelector.py @@ -10,6 +10,7 @@ fogWords = ["fog", "mist", "smoke"] windWords = ["wind", "windy", "gusts"] cloudWords = ["cloudy", "overcast"] stormWords = ["thunderstorms", "thunderstorm"] +hailWords = ["hail"] def parseDescription(desc): @@ -33,6 +34,8 @@ def parseDescription(desc): return "cloudy" elif i in stormWords: return "thunderstorm" + elif i in hailWords: + return "hail" else: return "clear" @@ -67,6 +70,9 @@ def imageSelector(desc, timeOfDay): case "rain": result = os.path.join( currentDirectory, 'smallIcons', 'rain-small.png') + case "hail": + result = os.path.join( + currentDirectory, 'smallIcons', 'hail-small.png') case _: result = os.path.join( currentDirectory, 'smallIcons', 'code-red-small.png')