From 5bf27a9e5186008c3f7ae6e6ee475fa89e4b31cd Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 6 Nov 2023 01:15:12 +0900 Subject: update on weather scripts --- config/hypr/scripts/Weather.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/hypr/scripts/Weather.py') 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): -- cgit v1.2.3