v.0.11.2 added beautyful soup bs4

This commit is contained in:
tiijay
2025-11-21 15:06:04 +00:00
parent 3a8fb95f4f
commit c27b97fc71
9 changed files with 73 additions and 60 deletions

View File

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