v.0.11.2 added beautyful soup bs4
This commit is contained in:
@@ -123,19 +123,16 @@ class Weather_Checker:
|
||||
color=colors.RAINBOW[2],
|
||||
)
|
||||
ypos += self.display.font_height + 1
|
||||
|
||||
updated_time_str: str = str(w_resp.weather.current.last_updated)[-5:]
|
||||
local_time_str: str = str(w_resp.weather.location.localtime)[-5:]
|
||||
|
||||
self.display.write_text(
|
||||
f"upd:{str(w_resp.weather.current.last_updated)[-5:]}",
|
||||
f"{local_time_str} {updated_time_str}",
|
||||
0,
|
||||
ypos,
|
||||
color=colors.RAINBOW[3],
|
||||
)
|
||||
ypos += self.display.font_height + 1
|
||||
self.display.write_text(
|
||||
f"cur:{str(w_resp.weather.location.localtime)[-5:]}",
|
||||
0,
|
||||
ypos,
|
||||
color=colors.RAINBOW[4],
|
||||
)
|
||||
else:
|
||||
ypos = 0
|
||||
self.display.write_text(
|
||||
|
||||
Reference in New Issue
Block a user