diff options
| author | JaKooLit <jimmielovejay@gmail.com> | 2023-11-06 01:15:12 +0900 |
|---|---|---|
| committer | JaKooLit <jimmielovejay@gmail.com> | 2023-11-06 01:15:12 +0900 |
| commit | 5bf27a9e5186008c3f7ae6e6ee475fa89e4b31cd (patch) | |
| tree | 632840d372ed17d123dad3c67e32fb87d7eba8bb /config | |
| parent | d88e4c18f6d120d3deb2fade8948dd5ff81a9613 (diff) | |
update on weather scripts
Diffstat (limited to 'config')
| -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 |
