diff --git a/install.sh b/install.sh index eee0afa..3ba2b5e 100644 --- a/install.sh +++ b/install.sh @@ -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"