mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 10:20:12 +01:00
minor tweaks
This commit is contained in:
parent
d0ce916b6a
commit
86aa6c9357
@ -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
|
# From https://raw.githubusercontent.com/rxyhn/dotfiles/main/home/rxyhn/modules/desktop/waybar/scripts/waybar-wttr.py
|
||||||
|
|
||||||
|
city = ""
|
||||||
import json
|
import json
|
||||||
import requests
|
import requests
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
@ -59,7 +60,7 @@ WEATHER_CODES = {
|
|||||||
data = {}
|
data = {}
|
||||||
|
|
||||||
|
|
||||||
weather = requests.get("https://wttr.in/?format=j1").json()
|
weather = requests.get("https://wttr.in/{city}?format=j1").json()
|
||||||
|
|
||||||
|
|
||||||
def format_time(time):
|
def format_time(time):
|
||||||
|
|||||||
@ -75,6 +75,7 @@ dependencies=(
|
|||||||
libxxhash-dev
|
libxxhash-dev
|
||||||
meson
|
meson
|
||||||
ninja-build
|
ninja-build
|
||||||
|
openssl
|
||||||
psmisc
|
psmisc
|
||||||
python3-mako
|
python3-mako
|
||||||
python3-markdown
|
python3-markdown
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user