Update install.sh
This commit is contained in:
parent
c9bd5b975b
commit
1e90ae5252
|
|
@ -70,6 +70,7 @@ while True:
|
|||
data = response.json()
|
||||
|
||||
if "main" in data and "weather" in data and "wind" in data and "rain" in data:
|
||||
name = data["name"]
|
||||
temperature = int(data["main"]["temp"])
|
||||
temperature = str(temperature).zfill(3)
|
||||
presure = data["main"]["pressure"]
|
||||
|
|
@ -81,7 +82,6 @@ while True:
|
|||
deg = str(deg).zfill(3)
|
||||
rain = int(data["rain"]["1h"])
|
||||
rain = str(rain).zfill(3)
|
||||
name = data["name"]
|
||||
humidity = data["main"]["humidity"]
|
||||
weather_description = data["weather"][0]["description"]
|
||||
weather_data = f"{deg}/{wind}g{gust}t{temperature}r{rain}p000h{humidity}b{presure}0"
|
||||
|
|
|
|||
Loading…
Reference in New Issue