aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/Weather.py
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/hypr/scripts/Weather.py
parentd88e4c18f6d120d3deb2fade8948dd5ff81a9613 (diff)
update on weather scripts
Diffstat (limited to 'config/hypr/scripts/Weather.py')
-rwxr-xr-xconfig/hypr/scripts/Weather.py4
1 files changed, 2 insertions, 2 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):
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage