aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/UserScripts/Weather.py
diff options
context:
space:
mode:
authorDaniel Walker <haxxordan@proton.me>2025-05-01 06:19:15 -0700
committerGitHub <noreply@github.com>2025-05-01 06:19:15 -0700
commit4a32690728aaa342374f82a81f1c9c410b90f158 (patch)
tree974413e740d8a348b82c403a4c41a4f7866b1b38 /config/hypr/UserScripts/Weather.py
parent65e06b22bf27d95a7cd4db6569528567046f006a (diff)
Update Weather.py
fix wind speed display
Diffstat (limited to 'config/hypr/UserScripts/Weather.py')
-rwxr-xr-xconfig/hypr/UserScripts/Weather.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/hypr/UserScripts/Weather.py b/config/hypr/UserScripts/Weather.py
index c962ecd3..efa96813 100755
--- a/config/hypr/UserScripts/Weather.py
+++ b/config/hypr/UserScripts/Weather.py
@@ -88,7 +88,7 @@ temp_max = (
temp_min_max = f" {temp_min}\t\t {temp_max}"
# wind speed
-wind_speed = html_data("span[data-testid='Wind']").text().split("\n")[0]
+wind_speed = str(html_data("span[data-testid='Wind'] > span").text())
wind_text = f" {wind_speed}"
# humidity
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage