Many fixes to the dashboard.

This commit is contained in:
Remy Moll
2021-01-03 00:33:24 +01:00
parent 8c14b546d9
commit 069c83e796
8 changed files with 270 additions and 180 deletions

View File

@@ -86,15 +86,13 @@ def date_converter():
return pixels
weather_categories = {
"cloud": "cloud",
"cloud_with_rain": "rain and cloud",
"thunder_cloud_rain": "thunder and cloud",
"droplet": "rain and cloud",
"cloud_snow": "snow and cloud",
"sun": "sun",
"Clouds": "cloud",
"Rain": "rain and cloud",
"Thunderstorm": "thunder and cloud",
"Drizzle": "rain and cloud",
"Snow": "snow and cloud",
"Clear": "sun",
"Mist": "fog and clouds",
"Smoke": "Smoke",
"Haze": "Haze",

View File

@@ -92,7 +92,7 @@ class OutputHandler():
if weather["show"] == "weather":
face2_3d = converter.weather_converter(weather["weather"])
else:
face2 = converter.time_converter(top=weather["low"], bottom=weather["high"])
face2 = converter.time_converter(top=str(weather["low"]), bottom=str(weather["high"]))
face2 = np.concatenate((face2[:8,...],2*face2[8:,...]))
face2_3d = self.matrix_add_depth(face2,[[0, 102, 255],[255, 102, 0]])