|
|
|
@ -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" |
|
|
|
|
|
|
|
|