Gustavo Madeira Santana

roku

开发编程v2.0.1
作者:Gustavo Madeira Santana更新于 2026-05-15共 5 个版本 · 最新版本发布于 2026-05-15@clawhub_gumadeiras/roku
脚本工具

据 AlphaMoat 统计,截至 2026-09,roku 累计下载 3,189 次、获 0 个星标,在全部 5,078 个 AI 技能中排名第 3,575 位,在「开发编程」分类(577 个)中排名第 456 位。

累计安装
102
累计下载
3,189
星标
-
全站排名
#3,575
全站前 71% · 「开发编程」前 80%
平台累计安装累计下载星标评论
ClawHub ↗1023,080--
SkillHub ↗1023,189-—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

它可查询设备信息和已安装应用、发送遥控按键、输入文本、搜索内容或启动应用;也可配置持续运行的 HTTP 桥接服务。命令会真实控制设备,桥接端口若暴露到不可信网络可能被滥用。操作前确认目标设备,并限制服务监听地址、令牌和访问范围。

资料发布于 2026-10-29

可以用来做什么

  • 发现本地网络中的 Roku 设备并查询设备信息。
  • 发送遥控按键、文本输入、内容搜索或应用启动命令。
  • 查看 HTTP 桥接服务状态并规划安全配置。

什么时候用

  • 需要通过命令行检查或控制 Roku 设备时。
  • 需要在脚本或受控服务中发送远程控制命令时。
  • 发送会改变设备状态的命令或开启 HTTP 桥接前,需要确认目标、授权、认证和网络暴露范围时。

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

只发现本地 Roku 设备并查询信息,不发送遥控命令。
检查桥接服务的绑定地址和认证方式;不要启动服务或发送设备控制请求。

月度数据趋势

累计下载3,189
2,0102,6433,2762026-03 · 累计下载 2,0972026-05 · 累计下载 2,6052026-06 · 累计下载 2,7402026-07 · 累计下载 2,9462026-08 · 累计下载 3,0182026-09 · 累计下载 3,18926-0326-09
星标-
0112026-03 · 星标 -2026-05 · 星标 -2026-06 · 星标 -2026-07 · 星标 -2026-08 · 星标 -2026-09 · 星标 -26-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-093,189—-
2026-083,018+2.4%-
2026-072,946+7.5%-
2026-062,740+5.2%-
2026-052,605—-
2026-032,097—-

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.3 KB · ClawHub v2.0.1
---
name: roku
description: Control Roku devices via CLI. Discovery, remote control, app launching, search, and HTTP bridge mode for real-time control.
homepage: https://github.com/gumadeiras/roku-cli
repository: https://github.com/gumadeiras/roku-cli
metadata: {"clawdbot":{"emoji":"📺","requires":{"bins":["roku"]},"install":[{"id":"node","kind":"node","package":"@gumadeiras/roku","bins":["roku"],"label":"Install Roku (npm)"}]}}
---

# Roku CLI
展开全部(共 134 行)
Fast TypeScript CLI for controlling Roku devices via the ECP API.

## Installation

```bash
npm install -g @gumadeiras/roku@latest
```

## Quick Start

```bash
# Discover devices and save an alias
roku discover --save livingroom --index 1

# Use the alias
roku --host livingroom device-info
roku --host livingroom apps
```

## Commands

| Command | Description |
|---------|-------------|
| `roku discover` | Find Roku devices on network |
| `roku --host <ip> device-info` | Get device info |
| `roku --host <ip> apps` | List installed apps |
| `roku --host <ip> command <key>` | Send remote key |
| `roku --host <ip> literal <text>` | Type text |
| `roku --host <ip> search --title <query>` | Search content |
| `roku --host <ip> launch <app>` | Launch app |
| `roku --host <ip> interactive` | Interactive remote mode |

## Interactive Mode

```bash
roku livingroom                    # interactive control
roku --host livingroom interactive # same thing
```

Use arrow keys, enter, escape for remote-like control.

## Bridge Service

Run a persistent HTTP bridge as a native OS service:

```bash
# Install and start the service
roku bridge install-service --port 19839 --token secret --host livingroom --user
roku bridge start --user

# Service management
roku bridge status --user
roku bridge stop --user
roku bridge uninstall --user
```

Send commands via HTTP:

```bash
# Send key
curl -X POST http://127.0.0.1:19839/key \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer secret" \
  -d '{"key":"home"}'

# Type text
curl -X POST http://127.0.0.1:19839/text \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer secret" \
  -d '{"text":"hello"}'

# Launch app
curl -X POST http://127.0.0.1:19839/launch \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer secret" \
  -d '{"app":"plex"}'

# Health check
curl http://127.0.0.1:19839/health -H "Authorization: Bearer secret"
```

### Bridge Endpoints

| Endpoint | Body |
|----------|------|
| `POST /key` | `{"key": "home"}` |
| `POST /text` | `{"text": "hello"}` |
| `POST /search` | `{"title": "Stargate"}` |
| `POST /launch` | `{"app": "plex"}` |
| `GET /health` | — |
| `GET /health?deep=1` | Deep health check (probes Roku) |

## Aliases

```bash
# Save device alias
roku discover --save livingroom --index 1
roku alias set office 192.168.1.20

# Save app alias  
roku alias set plex 13535

# List aliases
roku alias list

# Use aliases
roku --host livingroom launch plex
```

## Remote Keys

home, back, select, up, down, left, right, play, pause, rev, fwd, replay, info, power, volume_up, volume_down, mute

## Notes

- Roku must be on the same network as the CLI
- Bridge service runs as a native launchd (macOS) or systemd (Linux) service
- Use `--user` flag for user-space service (no sudo required)
- Use `--token` for authentication in bridge mode

## Source

https://github.com/gumadeiras/roku-cli

「开发编程」分类下的热门技能

Gustavo Madeira Santana 的其他技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。