diff --git a/Docker/snc.py b/Docker/snc.py index 753e379..2261da9 100644 --- a/Docker/snc.py +++ b/Docker/snc.py @@ -89,6 +89,8 @@ def get_weather(): if data['visibility'] < 6000: response['fog'] = "true" + response['icon'] = f"https://openweathermap.org/img/wn/{data['weather'][0]['icon']}@2x.png" + print("Weather data retrieved!") return response diff --git a/script.py b/script.py index 8da66a7..792fab7 100644 --- a/script.py +++ b/script.py @@ -113,6 +113,8 @@ def get_weather(): if data['visibility'] < 6000: response['fog'] = "true" + response['icon'] = f"https://openweathermap.org/img/wn/{data['weather'][0]['icon']}@2x.png" + print("Weather data retrieved!") return response