跳到正文
TakoAPI
返回技能列表

apple-media

由 aaronn 提供

Media & Streaming
2.4k下载量由 clawskills.sh 提供
5星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Control Apple TV, HomePod, and AirPlay devices via pyatv.

描述

该技能的功能

Controls Apple TV, HomePod, and AirPlay devices from the command line using pyatv's atvremote tool. Supports playback, volume, navigation, multi-room audio grouping, streaming local files or remote URLs, and live push updates. Apple TV requires pairing first; HomePods marked 'NotNeeded' can be used immediately.

Gives shell-level access to Apple media devices, enabling scripting and automation that the Home app and Siri don't support.

何时使用

  • Adjusting HomePod volume from a terminal without touching a phone
  • Streaming a local audio file to an Apple TV or HomePod
  • Pausing playback on a specific room's speaker from a script
  • Grouping multiple HomePods into a synchronized audio session
  • Automating Apple TV navigation to launch apps or enter search text

示例工作流

输入

User asks: Stream a local podcast file to the Kitchen HomePod

智能体
  1. 1

    Run atvremote --scan-hosts 10.0.0.50 scan to discover devices on the network

  2. 2

    Confirm the device named 'Kitchen' is listed with pairing status 'NotNeeded'

  3. 3

    Run atvremote -n "Kitchen" stream_file=/home/user/podcast.mp3 to start playback

  4. 4

    Run atvremote -n "Kitchen" set_volume=60 to adjust volume

输出

Podcast audio plays on the Kitchen HomePod at the specified volume

前置要求

  • atvremote CLI (installed via pyatv)
  • Python 3.13 or earlier (incompatible with Python 3.14+)

安装

clawhub install aaronn/apple-media

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接