Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,6 +18,7 @@ def get_current_weather_data(lat, lon):
|
|
18 |
if response.status_code == 200:
|
19 |
return response.json()
|
20 |
else:
|
|
|
21 |
return None
|
22 |
|
23 |
# Funktion, um Wassertemperatur zu holen
|
@@ -74,6 +75,7 @@ def get_weather():
|
|
74 |
humidity = current_weather_data["main"]["humidity"]
|
75 |
wind_speed = current_weather_data["wind"]["speed"]
|
76 |
weather_description = current_weather_data["weather"][0]["description"]
|
|
|
77 |
water_temp = get_water_temperature()
|
78 |
recommendation = get_bathing_recommendation_with_gpt(temp, feels_like_temp, humidity, wind_speed, weather_description, water_temp)
|
79 |
|
|
|
18 |
if response.status_code == 200:
|
19 |
return response.json()
|
20 |
else:
|
21 |
+
print(f"Fehler beim Abrufen der Wetterdaten: {response.status_code}")
|
22 |
return None
|
23 |
|
24 |
# Funktion, um Wassertemperatur zu holen
|
|
|
75 |
humidity = current_weather_data["main"]["humidity"]
|
76 |
wind_speed = current_weather_data["wind"]["speed"]
|
77 |
weather_description = current_weather_data["weather"][0]["description"]
|
78 |
+
print(f"API Wetterbeschreibung: {weather_description}")
|
79 |
water_temp = get_water_temperature()
|
80 |
recommendation = get_bathing_recommendation_with_gpt(temp, feels_like_temp, humidity, wind_speed, weather_description, water_temp)
|
81 |
|