阻止 Fire TV 上的 YouTube Shorts。当被要求检查、管理或配置 Buck 的 Fire TV 设备上的 YouTube Shorts 限制时使用。触发于类似 ... 的请求。
YouTube Shorts limiter for Fire TV. Monitors watch time per device and auto-blocks when daily limit is reached.
Primary entry point:
bash
~/.openclaw/workspace/skills/clawshorts/scripts/clawshorts.sh <command>
CommandWhen to usestatusCheck today's usage, remaining quota, daemon healthreset [IP]Reset today's counter (all devices or specific IP)startStart the daemon if not runningstopStop the daemonhistory [days]Show watch history (default 30 days)logs [N]Show last N daemon log lines (default 50)listList all configured devices with per-device configsetup <IP> [NAME]First-time setup for a new deviceadd <IP> [NAME]Add another Fire TVconnect <IP>Connect ADB to device + auto-detect screenenable <IP> / disable <IP>Enable/disable a deviceconfig [show|get|set|reset]View/set global or per-device configdetect <IP>Re-detect screen resolution via ADB, update DB
Detection requires both conditions to be true simultaneously:
All detection parameters are stored in SQLite with global defaults and per-device overrides.
Global defaults ( shorts config):
keydefaultdescriptionshorts_width_threshold0.30player width must be < this ratio of screen widthshorts_max_aspect_ratio1.3portrait if ar < this valueshorts_fallback_height_ratio0.4fallback: player height must exceed this ratio of screen heightshorts_delta_cap300max seconds accumulated per polldefault_screen_width1920fallback assumed screen widthdefault_screen_height1080fallback assumed screen height
Per-device overrides — any of the above can be set per-device in the devices table. NULL = use global default.
Config commands:
bash
shorts config # show all global defaults
shorts config get <key> # get a specific value
shorts config set <key> <value> # set global default
shorts config set <IP> <col> <value> # set per-device override
shorts config reset <IP> # clear per-device overrides
shorts detect <IP> # re-detect screen via ADB
Database: ~/.clawshorts/clawshorts.db (SQLite)
config — global detection defaultsdevices — per-device settings (IP, name, limit, screen size, thresholds)daily_usage — daily watch time per deviceDaemon log: ~/.clawshorts/daemon.log
LaunchAgent: ~/Library/LaunchAgents/com.fink.clawshorts.plist
adb (Android platform tools)shorts symlink at /opt/homebrew/bin/shorts (optional)ADB has no built-in authentication. Only enable ADB Debugging on a trusted, password-protected home network. Never on public WiFi. Anyone on the same network with ADB enabled can connect to your Fire TV.
This tool only accepts private IP addresses (10.x.x.x, 172.16–31.x.x, 192.168.x.x). Public IPs are rejected to prevent accidental targeting of unrelated hosts.