Update install.sh

This commit is contained in:
RaspbianProyect by HP3ICC 2023-05-30 15:34:39 +00:00
parent c9bd5b975b
commit 1e90ae5252
1 changed files with 1 additions and 1 deletions

View File

@ -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"