Browse Source

Storm Fix

master
NCLanceman 5 months ago
parent
commit
3bf5faafa6
  1. BIN
      __pycache__/iconSelector.cpython-311.pyc
  2. 3
      iconSelector.py

BIN
__pycache__/iconSelector.cpython-311.pyc

Binary file not shown.

3
iconSelector.py

@ -4,6 +4,7 @@ rainWords = ["rain", "showers"]
fogWords = ["fog", "mist", "smoke"]
windWords = ["wind", "windy", "gusts"]
cloudWords = ["cloudy", "overcast"]
stormWords = ["thunderstorms", "thunderstorm"]
def parseDescription(desc):
@ -25,6 +26,8 @@ def parseDescription(desc):
return "wind"
elif i in cloudWords:
return "cloudy"
elif i in stormWords:
return "thunderstorm"
else:
return "clear"

Loading…
Cancel
Save