chromecast-with-google-tv
БесплатноБез исполняемых скриптовНе проверенCast YouTube videos, Tubi TV show episodes, and TV show episodes from other video streaming apps via ADB to Chromecast with Android TV (Chromecast 4K…
от lxyeternal★ 68 звёзд на GitHubОб этом скилле
Chromecast with Google TV control
Use this skill when I ask to cast YouTube or Tubi video content, play or pause Chromecast media playback, check if the Chromecast is online, launch episodic content in another streaming app via global search fallback, or pair with a Chromecast device for the first time.
Setup
This skill runs with uv, adb, yt-api, and scrcpy in the PATH. No venv required.
- Ensure
uv,adb,yt-api, andscrcpyare available in the PATH. - Use
./runas a convenience wrapper arounduv run google_tv_skill.py.
First-time pairing
Before using this skill, you must pair your Chromecast with ADB wireless debugging:
- Enable Developer Options on the Chromecast (Settings > System > About > tap "Android TV OS build" 7 times)
- Enable USB debugging and Wireless debugging in Developer options
- Use the
paircommand to pair with the pairing code shown on screen:./run pair --show-instructions- Display detailed pairing instructions./run pair --pairing-ip <IP> --pairing-port <PORT> --pairing-code <CODE>- Perform pairing
After pairing once, you can use the connection port shown on the Wireless debugging screen for all other commands.
Capabilities
This skill provides a small CLI wrapper around ADB to control a Google TV device. It exposes the following subcommands:
- pair: pair with Chromecast using wireless debugging (first-time setup)
- status: show adb devices output
- play
: play content via YouTube, Tubi, or global-search fallback. - pause: send media pause
- resume: send media play
Usage examples
./run pair --show-instructions
./run pair --pairing-ip 192.168.1.100 --pairing-port 12345 --pairing-code 123456
./run status --device 192.168.4.64 --port 5555
./run play "7m714Ls29ZA" --device 192.168.4.64 --port 5555
./run play "family guy" --app hulu --season 3 --episode 4 --device 192.168.4.64 --port 5555
./run pause --device 192.168.4.64 --port 5555
Device selection and env overrides
- You can pass --device (IP) and --port on the CLI.
- Alternatively, set CHROMECAST_HOST and CHROMECAST_PORT environment variables to override defaults.
- If you provide only --device or only --port, the script will use the cached counterpart when available; otherwise it will error.
- The script caches the last successful IP:PORT to
.last_device.jsonin the skill folder and will use that cache if no explicit device is provided. - If no explicit device is provided and no cache exists, the script will attempt ADB mDNS service discovery and use the first IP:PORT it finds.
- IMPORTANT: This skill does NOT perform any port probing or scanning. It will only attempt an adb connect to the explicit port provided or the cached port.
YouTube handling
- If you provide a YouTube video ID or URL, the skill will launch the YouTube app directly via an ADB intent restricted to the YouTube package.
- The skill attempts to resolve titles/queries to a YouTube video ID using the
yt-apiCLI (in the PATH). If ID resolution fails, the skill will report failure. - You can override the package name with
YOUTUBE_PACKAGE(defaultcom.google.android.youtube.tv).
Tubi handling
- If you provide a Tubi https URL, the skill will send a VIEW intent with that URL (restricted to the Tubi package).
- If the canonical Tubi https URL is needed, the skill can look it up via web_search and supply it to this skill.
- You can override the package name with
TUBI_PACKAGE(defaultcom.tubitv).
Global-search fallback for non-YouTube/Tubi
- If YouTube/Tubi resolution does not apply and you pass
--appwith another provider (for examplehulu,max,disney+), the skill uses a Google TV global-search fallback. - For this fallback, pass all three:
--app,--season, and--episode. scrcpymust be installed and available in the PATH for this flow.- The fallback starts
android.search.action.GLOBAL_SEARCH, waits for the Series Overview UI, opens Seasons, picks season/episode, then confirmsOpen in <app>when available. - Hulu profile-selection logic is intentionally not handled here.
Pause / Resume
./run pause
./run resume
Dependencies
- The script uses only the Python standard library (no pip packages required).
- The scripts run through
uvto avoid PEP 668/system package constraints. - The script expects
adb,scrcpy,uv, andyt-apito be installed and available in the PATH.
Caching and non-destructive defaults
- The script stores the last successful device (ip and port) in
.last_device.jsonin the skill folder. - It will not attempt port scanning; this keeps behavior predictable and avoids conflicts with Google's ADB port rotation.
Troubleshooting
- If adb connect fails, run
adb connect IP:PORTmanually from your host to verify the current port. - If adb connect is refused and you're running interactively, the script will prompt you for a new port and update
.last_device.jsonon
Установить chromecast-with-google-tv в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл chromecast-with-google-tv?
Cast YouTube videos, Tubi TV show episodes, and TV show episodes from other video streaming apps via ADB to Chromecast with Android TV (Chromecast 4K supported, Google TV Streamer support is unknown)
Как установить скилл chromecast-with-google-tv?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл chromecast-with-google-tv запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
slack-gif-creator
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
от Anthropicautomate-this
Analyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
от GitHubfrom-the-other-side-vega
Patterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
от GitHubplantuml-ascii
Generate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…
от GitHub