Skip to content

Commit e5f2042

Browse files
committed
lint
1 parent cc5cbcc commit e5f2042

File tree

1 file changed

+2
-3
lines changed
  • MagTag/MagTag_Weather/openmeteo

1 file changed

+2
-3
lines changed

MagTag/MagTag_Weather/openmeteo/code.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@
9090

9191
def get_forecast():
9292
URL = f"https://api.open-meteo.com/v1/forecast?latitude={LAT}&longitude={LON}&"
93-
URL += "daily=weather_code,temperature_2m_max,temperature_2m_min,sunrise,sunset,wind_speed_10m_max,wind_direction_10m_dominant"
93+
URL += "daily=weather_code,temperature_2m_max,temperature_2m_min"
94+
URL += ",sunrise,sunset,wind_speed_10m_max,wind_direction_10m_dominant"
9495
URL += "&timeformat=unixtime"
9596
URL += f"&timezone={TMZ}"
9697
resp = magtag.network.fetch(URL)
@@ -158,7 +159,6 @@ def wind_text(speedkmh, direction):
158159
wtext += "{:2.0f}kmh".format(speedkmh)
159160
else:
160161
wtext += "{:2.0f}mph".format(0.621371 * speedkmh)
161-
162162
return wtext
163163

164164

@@ -316,4 +316,3 @@ def go_to_sleep(current_time):
316316
go_to_sleep(get_ntp_time(forecast_data["utc_offset_seconds"]/3600))
317317
# entire code will run again after deep sleep cycle
318318
# similar to hitting the reset button
319-

0 commit comments

Comments
 (0)