Skip to content

Commit 13ac15a

Browse files
committed
add api weather notifications sms
1 parent 04c886c commit 13ac15a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

WeatherNotification/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@
1414
r.raise_for_status()
1515
weather_data = r.json()
1616

17+
id_weather_list = weather_ids = [x["weather"][0]["id"] for x in weather_data["list"] if x["weather"][0]["id"] < 700]
18+
19+
if len(id_weather_list) >= 1:
20+
print("Bring an umbrella")

0 commit comments

Comments
 (0)