From 86aa6c93571336f8bf505ae342f9699c7577a669 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sun, 15 Oct 2023 18:49:42 +0900 Subject: [PATCH] minor tweaks --- config/hypr/scripts/Weather.py | 5 +++-- install-scripts/00-dependencies.sh | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/hypr/scripts/Weather.py b/config/hypr/scripts/Weather.py index cd269d9..93546b1 100644 --- a/config/hypr/scripts/Weather.py +++ b/config/hypr/scripts/Weather.py @@ -1,6 +1,7 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # From https://raw.githubusercontent.com/rxyhn/dotfiles/main/home/rxyhn/modules/desktop/waybar/scripts/waybar-wttr.py +city = "" import json import requests from datetime import datetime @@ -59,7 +60,7 @@ WEATHER_CODES = { data = {} -weather = requests.get("https://wttr.in/?format=j1").json() +weather = requests.get("https://wttr.in/{city}?format=j1").json() def format_time(time): diff --git a/install-scripts/00-dependencies.sh b/install-scripts/00-dependencies.sh index 5a72525..565229e 100755 --- a/install-scripts/00-dependencies.sh +++ b/install-scripts/00-dependencies.sh @@ -75,6 +75,7 @@ dependencies=( libxxhash-dev meson ninja-build + openssl psmisc python3-mako python3-markdown