aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJaKooLit <jimmielovejay@gmail.com>2023-11-06 01:15:12 +0900
committerJaKooLit <jimmielovejay@gmail.com>2023-11-06 01:15:12 +0900
commit5bf27a9e5186008c3f7ae6e6ee475fa89e4b31cd (patch)
tree632840d372ed17d123dad3c67e32fb87d7eba8bb /config
parentd88e4c18f6d120d3deb2fade8948dd5ff81a9613 (diff)
update on weather scripts
Diffstat (limited to 'config')
-rwxr-xr-xconfig/hypr/scripts/Weather.py4
-rwxr-xr-xconfig/hypr/scripts/Weather.sh2
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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage