← 返回 Skills 市场
durtydhiana

Apple Media Officialpm 0.1.1

作者 DurtyDhiana · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
172
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install apple-media-officialpm-0-1-1
功能描述
Discover and control Apple media/AirPlay devices (HomePod, Apple TV, AirPlay speakers) from macOS. Use when you want to scan for AirPlay devices, map names→I...
使用说明 (SKILL.md)

Apple Media (AirPlay + Apple TV control)

Author: Parth Maniar — @officialpm

This skill is a thin workflow wrapper around two tools:

  • pyatv (atvremote) for discovering Apple TVs/HomePods and (when supported/paired) remote-control style commands.
  • Airfoil (via the existing airfoil skill) for reliable speaker connect/disconnect + volume control across AirPlay speakers (including HomePods).

Setup

This skill uses pyatv installed via pipx.

Install/repair (pinned to Python 3.12 to avoid Python 3.14 asyncio issues):

pipx install pyatv || pipx upgrade pyatv
pipx reinstall pyatv --python python3.12

Verify:

atvremote --help | head

Quick start

1) Scan the network for devices

# Fast scan (5s)
./scripts/scan.sh 5

# Faster scan when you know IP(s)
./scripts/scan-hosts.sh "10.0.0.28,10.0.0.111" 3

# Or JSON output
node ./scripts/scan-json.js 5

You’ll see devices like:

  • HomePods (e.g., "Living Room", "Bedroom")
  • Apple TV
  • AirPlay-capable TVs

2) Control HomePod / speaker volume (recommended path)

Use Airfoil for speaker control (reliable for HomePods):

# List speakers Airfoil can see
../airfoil/airfoil.sh list

# Connect and set volume
./scripts/connect.sh "Living Room"
./scripts/volume.sh "Living Room" 35

# Disconnect (direct)
../airfoil/airfoil.sh disconnect "Living Room"

3) Apple TV remote commands (pyatv)

First, scan to find the Apple TV name or id, then run commands:

# Examples (device name can be Apple TV or other targets)
atvremote -n "TV" playing
atvremote -n "TV" play_pause
atvremote -n "TV" turn_on
atvremote -n "TV" turn_off

If you get auth/protocol errors, pairing/credentials are needed (device-dependent).

Notes / gotchas

  • pyatv HomePod control often requires authentication and may not support all remote-control commands out of the box.
    • When pyatv fails for HomePod playback/volume, prefer Airfoil for volume + speaker routing.
  • atvremote scan is the source of truth for IP/ID discovery.

Bundled scripts

scripts/scan.sh

Runs atvremote scan with a configurable timeout.

./scripts/scan.sh 5

scripts/scan-json.js

Parses atvremote scan output into a compact JSON summary (name, address, model, services).

node ./scripts/scan-json.js
安全使用建议
This skill is coherent with its description but requires several external tools that are not enforced in the registry metadata—install pipx + pyatv (atvremote), Node.js (for scan-json.js), and Airfoil (and ensure the referenced ../airfoil/airfoil.sh exists). Before running: (1) review the sibling airfoil script to ensure it behaves as you expect, (2) run scans on a trusted/local network because they enumerate local IPs and device identifiers, and (3) be prepared to perform device pairing (pyatv may prompt for credentials) — no secrets are sent by the skill itself. If you want stronger guarantees, ask the author to declare required binaries in the skill metadata and to include or link the expected airfoil helper script location.
功能分析
Type: OpenClaw Skill Name: apple-media-officialpm-0-1-1 Version: 1.0.0 The apple-media skill bundle is a legitimate set of wrapper scripts for the pyatv (atvremote) utility and the Airfoil application to manage Apple media devices on macOS. The scripts (scan.sh, scan-hosts.sh, scan-json.js) perform network discovery and parsing of device information without any evidence of data exfiltration, unauthorized execution, or malicious prompt injection.
能力评估
Purpose & Capability
The skill's code and SKILL.md align with the stated purpose: scanning AirPlay/Apple TV devices and delegating speaker control to Airfoil. Minor mismatch: the registry metadata declares no required binaries/env but the instructions and scripts require external tools (pipx + pyatv/atvremote, node for JSON parsing, Airfoil and a separate airfoil skill script). Those dependencies are reasonable for the described functionality but are not declared in the top-level requirements.
Instruction Scope
Instructions and bundled scripts limit themselves to local network scanning (atvremote scan), parsing scan output, and delegating to an airfoil control script. The Node parser reads stdin or a local file and does not execute shell commands. The scripts do not read unrelated system files or attempt to exfiltrate data to external endpoints.
Install Mechanism
There is no install spec; this is an instruction-and-script bundle. The README suggests installing pyatv via pipx and Airfoil via Homebrew/Cask. No remote download/install URLs are embedded in the skill files themselves.
Credentials
The skill requests no environment variables or credentials and the code does not attempt to access secrets. It will surface local IPs from network scans (expected behavior) and may require pairing/auth for some devices, which is normal for pyatv usage.
Persistence & Privilege
The skill does not request always:true, does not modify other skills, and contains only helper scripts; it does not persist credentials or modify system-wide agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install apple-media-officialpm-0-1-1
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /apple-media-officialpm-0-1-1 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Apple Media 1.0.0 initial release - Discover and list Apple TVs, HomePods, and AirPlay speakers on your network. - Map device names to IPs/IDs for streamlined control. - Control playback and volume using pyatv (`atvremote`) and Airfoil integration. - Includes scripts for fast device scans and JSON output. - Supports device connection, disconnection, and volume adjustment via Airfoil. - Provides workflow instructions for setup, discovery, and control.
元数据
Slug apple-media-officialpm-0-1-1
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Apple Media Officialpm 0.1.1 是什么?

Discover and control Apple media/AirPlay devices (HomePod, Apple TV, AirPlay speakers) from macOS. Use when you want to scan for AirPlay devices, map names→I... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 172 次。

如何安装 Apple Media Officialpm 0.1.1?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install apple-media-officialpm-0-1-1」即可一键安装,无需额外配置。

Apple Media Officialpm 0.1.1 是免费的吗?

是的,Apple Media Officialpm 0.1.1 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Apple Media Officialpm 0.1.1 支持哪些平台?

Apple Media Officialpm 0.1.1 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Apple Media Officialpm 0.1.1?

由 DurtyDhiana(@durtydhiana)开发并维护,当前版本 v1.0.0。

💬 留言讨论