From 9935b1c6a0e0845f724a9c495caf01977ee81fbb Mon Sep 17 00:00:00 2001 From: Arslaan Pathan Date: Tue, 6 Oct 2026 13:51:24 +1300 Subject: website deploy button --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'main.py') diff --git a/main.py b/main.py index 50a83e2..846e9fc 100644 --- a/main.py +++ b/main.py @@ -2,7 +2,7 @@ from evdev import InputDevice, list_devices, ecodes from urllib.request import urlopen from urllib.error import HTTPError, URLError -SCANCODES = {0x11A: "up", 0x148: "down", 0x147: "left", 0x107: "right", 0x106: "ok", 0x141: "play/pause", 0x11c: "power", 0x103: "vol+", 0x142: "vol-", 0x101: "app", 0x154: "1", 0x110: "stop", 0x14b: "skip", 0x155: "epg"} +SCANCODES = {0x11A: "up", 0x148: "down", 0x147: "left", 0x107: "right", 0x106: "ok", 0x141: "play/pause", 0x11c: "power", 0x103: "vol+", 0x142: "vol-", 0x101: "app", 0x154: "1", 0x110: "stop", 0x14b: "skip", 0x155: "epg", 0x119: "web"} device = None last = 0x00 @@ -39,6 +39,8 @@ def do_action(action: str): homelab_request("volup") elif action == "vol-": homelab_request("voldown") + elif action == "web": + homelab_request("zola") for path in list_devices(): candidate = InputDevice(path) -- cgit v1.2.3