diff options
| author | Arslaan Pathan <[email protected]> | 2026-10-06 23:54:37 +1300 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-10-06 23:54:37 +1300 |
| commit | f3543ab2e3a164a7b267e7c3c857d36a42f50488 (patch) | |
| tree | 204a50ccf3e9a85be696ac156acd5a965191682f /main.py | |
| parent | 6d27aae18ed7e53928592575ee29ce182d7d1034 (diff) | |
| download | remote-automation-f3543ab2e3a164a7b267e7c3c857d36a42f50488.tar.xz remote-automation-f3543ab2e3a164a7b267e7c3c857d36a42f50488.zip | |
import os
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2,6 +2,7 @@ from evdev import InputDevice, list_devices, ecodes from urllib.request import Request, urlopen from urllib.error import HTTPError, URLError from dotenv import load_dotenv +import os 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"} |
