Now with weather

This commit is contained in:
Remy Moll
2020-10-15 13:28:54 +02:00
parent 4ee2f78e48
commit e92d649451
4 changed files with 33 additions and 5 deletions

View File

@@ -75,7 +75,7 @@ def weather_converter(name):
icons = Image.open(icon_spritesheet)
icons_full = np.array(icons)
print(name)
icon_loc = ["sun","moon","sun and clouds", "moon and clouds", "cloud","fog and clouds","2 clouds", "3 clouds", "rain and cloud", "rain and clouds", "thunder and cloud", "thunder and cloud and moon", "snow and cloud", "snow and cloud and moon", "fog","fog night"]
icon_loc = ["sun","moon","sun and clouds", "moon and clouds", "cloud","fog and clouds","2 clouds", "3 clouds", "rain and cloud", "rain and clouds", "rain and cloud and sun", "rain and cloud and moon", "thunder and cloud", "thunder and cloud and moon", "snow and cloud", "snow and cloud and moon", "fog","fog night"]
#ordered 1 2 \n 3 4 \ 5 5 ...
try:
iy, ix = int(icon_loc.index(name)/2), icon_loc.index(name)%2