From 1e90ae5252097c31bd574165171d44b4d007629a Mon Sep 17 00:00:00 2001 From: RaspbianProyect by HP3ICC Date: Tue, 30 May 2023 15:34:39 +0000 Subject: [PATCH] Update install.sh --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"