Many fixes to the dashboard.
This commit is contained in:
@@ -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",
|
||||
|
@@ -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]])
|
||||
|
||||
|
Reference in New Issue
Block a user