From 5ee2685364af3c112e7cc9f148a2758e81ebb0a5 Mon Sep 17 00:00:00 2001 From: Notoric Date: Sun, 2 Jun 2024 02:25:10 +0100 Subject: [PATCH] Capitalize status --- Docker/snc.py | 2 +- script.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Docker/snc.py b/Docker/snc.py index 2261da9..f8db191 100644 --- a/Docker/snc.py +++ b/Docker/snc.py @@ -66,7 +66,7 @@ def get_weather(): temp = round(temp * 2 + 0.5) / 2 response['temperature'] = str(temp) + "°C" response['humidity'] = str(data['main']['humidity']) + "%" - response['status'] = data['weather'][0]['description'] + response['status'] = data['weather'][0]['description'].capitalize() windspeed = data['wind']['speed'] if windspeed < 2: diff --git a/script.py b/script.py index 792fab7..59de6ec 100644 --- a/script.py +++ b/script.py @@ -90,7 +90,7 @@ def get_weather(): temp = round(temp * 2 + 0.5) / 2 response['temperature'] = str(temp) + "°C" response['humidity'] = str(data['main']['humidity']) + "%" - response['status'] = data['weather'][0]['description'] + response['status'] = data['weather'][0]['description'].capitalize() windspeed = data['wind']['speed'] if windspeed < 2: