diff options
| -rwxr-xr-x | config/hypr/scripts/Weather.py | 4 | ||||
| -rwxr-xr-x | config/hypr/scripts/Weather.sh | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/config/hypr/scripts/Weather.py b/config/hypr/scripts/Weather.py index b6223380..004135fb 100755 --- a/config/hypr/scripts/Weather.py +++ b/config/hypr/scripts/Weather.py @@ -2,7 +2,7 @@ # From https://raw.githubusercontent.com/rxyhn/dotfiles/main/home/rxyhn/modules/desktop/waybar/scripts/waybar-wttr.py ## ensure to insert city inside "" -city = "Busan" +city = " " import json import requests from datetime import datetime @@ -61,7 +61,7 @@ WEATHER_CODES = { data = {} -weather = requests.get("https://wttr.in/{city}?format=j1").json() +weather = requests.get(f"https://wttr.in/{city}?format=j1").json() def format_time(time): diff --git a/config/hypr/scripts/Weather.sh b/config/hypr/scripts/Weather.sh index f778425f..40048710 100755 --- a/config/hypr/scripts/Weather.sh +++ b/config/hypr/scripts/Weather.sh @@ -1,6 +1,6 @@ #!/bin/bash -city=Busan +city= cachedir=~/.cache/rbn cachefile=${0##*/}-$1 |
