We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82229c8 commit 3e34f8dCopy full SHA for 3e34f8d
1 file changed
Xteink_X4_Examples/Xteink_X4_Weather/code.py
@@ -148,8 +148,8 @@ def update_today(data):
148
w = data["daily"]["weather_code"][0]
149
today_icon[0] = next(i for i, t in enumerate(WMO_CODE_TO_ICON) if w in t)
150
# temperatures
151
- today_temp.text = f"H: {temperature_text(data["daily"]["temperature_2m_max"][0])} "
152
- today_temp.text += f"L: {temperature_text(data["daily"]["temperature_2m_min"][0])}"
+ today_temp.text = f"H: {temperature_text(data['daily']['temperature_2m_max'][0])} "
+ today_temp.text += f"L: {temperature_text(data['daily']['temperature_2m_min'][0])}"
153
# sunrise/set
154
sr = time.localtime(data["daily"]["sunrise"][0] + data["utc_offset_seconds"])
155
ss = time.localtime(data["daily"]["sunset"][0] + data["utc_offset_seconds"])
0 commit comments