Capitalize status
This commit is contained in:
parent
ad4be5b6eb
commit
5ee2685364
|
@ -66,7 +66,7 @@ def get_weather():
|
||||||
temp = round(temp * 2 + 0.5) / 2
|
temp = round(temp * 2 + 0.5) / 2
|
||||||
response['temperature'] = str(temp) + "°C"
|
response['temperature'] = str(temp) + "°C"
|
||||||
response['humidity'] = str(data['main']['humidity']) + "%"
|
response['humidity'] = str(data['main']['humidity']) + "%"
|
||||||
response['status'] = data['weather'][0]['description']
|
response['status'] = data['weather'][0]['description'].capitalize()
|
||||||
windspeed = data['wind']['speed']
|
windspeed = data['wind']['speed']
|
||||||
|
|
||||||
if windspeed < 2:
|
if windspeed < 2:
|
||||||
|
|
|
@ -90,7 +90,7 @@ def get_weather():
|
||||||
temp = round(temp * 2 + 0.5) / 2
|
temp = round(temp * 2 + 0.5) / 2
|
||||||
response['temperature'] = str(temp) + "°C"
|
response['temperature'] = str(temp) + "°C"
|
||||||
response['humidity'] = str(data['main']['humidity']) + "%"
|
response['humidity'] = str(data['main']['humidity']) + "%"
|
||||||
response['status'] = data['weather'][0]['description']
|
response['status'] = data['weather'][0]['description'].capitalize()
|
||||||
windspeed = data['wind']['speed']
|
windspeed = data['wind']['speed']
|
||||||
|
|
||||||
if windspeed < 2:
|
if windspeed < 2:
|
||||||
|
|
Loading…
Reference in New Issue