home / skills / openclaw / skills / stremio-cast

This skill automates Stremio web searches and streams to Chromecast using CATT and Playwright for hands-free access to movies and series.

npx playbooks add skill openclaw/skills --skill stremio-cast

Review the files below or copy the command above to add this skill to your agents.

Files (3)
SKILL.md
1.9 KB
---
name: stremio-cast
description: Busca conteúdo no Stremio Web e transmite para dispositivos Chromecast usando CATT e Playwright. Use para reproduzir filmes e séries diretamente do Stremio em TVs.
---

# Stremio Cast

Esta skill permite que o Manus automatize a interface web do Stremio para encontrar links de streaming locais e transmiti-los para um dispositivo Chromecast.

## Pré-requisitos

Para que esta skill funcione corretamente, o ambiente deve ter:
1. **Stremio Service** rodando localmente na porta `11470`.
2. **Playwright** instalado para automação do navegador.
3. **CATT (Cast All The Things)** instalado via pip para o casting.

## Fluxo de Trabalho

A skill executa os seguintes passos:
1. Abre a interface web do Stremio (`app.strem.io`).
2. Realiza a busca pelo título solicitado.
3. Seleciona o primeiro resultado e o melhor link de stream disponível.
4. Intercepta a URL do stream gerada pelo servidor local do Stremio (`127.0.0.1:11470`).
5. Envia essa URL para o dispositivo Chromecast especificado usando a ferramenta `catt`.

## Uso

A skill deve ser invocada quando o usuário pedir para "tocar [filme/série] no Chromecast" ou "assistir [título] na TV".

### Parâmetros
- `query`: O nome do filme ou série a ser buscado.
- `device`: (Opcional) O nome do dispositivo Chromecast. Padrão: "Living Room".

### Exemplo de Comando
```bash
python3 scripts/stremio_cast.py "The Matrix" "Quarto"
```

## Notas Importantes
- **Manutenção de Sessão**: O servidor de streaming do Stremio pode exigir que a aba do navegador permaneça aberta para continuar o download do torrent. O script fecha o navegador após iniciar o cast, mas isso pode ser ajustado se o stream cair prematuramente.
- **Seletores CSS**: Os seletores da interface web do Stremio podem mudar. Caso a skill falhe ao clicar em elementos, verifique se os seletores em `scripts/stremio_cast.py` ainda são válidos.

Overview

This skill automates the Stremio web app to locate playable streams and cast them to Chromecast devices using Playwright and CATT. It lets you play movies and series from your local Stremio service directly on a TV. The skill is designed for environments where Stremio runs a local streaming server on port 11470.

How this skill works

The script launches a headless or visible browser via Playwright, opens the Stremio web interface, and searches for the requested title. It selects the best available stream, captures the local stream URL served at 127.0.0.1:11470, and hands that URL to CATT to start casting to the specified Chromecast. Session handling and selectors are adjustable to keep the torrent download active if needed.

When to use it

  • You want to play a movie or episode from Stremio on a Chromecast-equipped TV.
  • You have a local Stremio service running on port 11470 and need remote playback on a TV.
  • You prefer automating web UI interactions instead of manually selecting streams in the Stremio client.
  • You need to cast streams that originate from your local Stremio server rather than cloud services.

Best practices

  • Ensure the Stremio service is running locally on port 11470 before invoking the skill.
  • Install and verify Playwright and CATT (pip) in the environment where the skill runs.
  • Use a non-headless browser if the stream drops; keeping the tab open can be necessary for torrent downloads.
  • Confirm CSS selectors in the script periodically — Stremio web UI updates can break clicks and selections.
  • Specify the correct Chromecast device name or use the default device defined in the script.

Example use cases

  • Cast a movie by voice or command: "play The Matrix on Chromecast" and let the script handle search and casting.
  • Start a TV session from a remote machine that has access to your local Stremio server.
  • Automate nightly viewing by running a scheduler that selects and casts selected content.
  • Troubleshoot playback by running the script in non-headless mode to observe element interactions.

FAQ

What must be running for this to work?

Stremio must be running locally on port 11470, and Playwright plus CATT must be installed in the runtime environment.

What if casting fails after browser closes?

Keep the browser tab open or run Playwright in non-headless mode so the local torrent session remains active; adjust the script to avoid closing the browser if needed.

How do I change the Chromecast target?

Pass the device name parameter when invoking the script or edit the default device name in the script configuration.