diff options
| author | Arslaan Pathan <[email protected]> | 2026-10-06 14:06:51 +1300 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-10-06 14:06:51 +1300 |
| commit | b41e5288d7b8839b1ce0448489c365b243a8d00d (patch) | |
| tree | df6a584bc08b40a8367f21fe645cd7c3877f2e11 /main.py | |
| parent | 43b8adde8f98c2763fd046031920046fef88e0c3 (diff) | |
| download | remote-automation-b41e5288d7b8839b1ce0448489c365b243a8d00d.tar.xz remote-automation-b41e5288d7b8839b1ce0448489c365b243a8d00d.zip | |
agentic
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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", 0x119: "web", 0x15f: "setting"} +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", 0x15f: "setting", 0x15a: "dtv"} device = None last = 0x00 @@ -43,6 +43,8 @@ def do_action(action: str): homelab_request("zola") elif action == "setting": homelab_request("cgit") + elif action == "dtv": + homelab_request("agentic") for path in list_devices(): candidate = InputDevice(path) |
