Community程式設計與開發github.com

sonoscli

控制 Sonos 揚聲器(發現/狀態/播放/音量/群組)。

sonoscli 是什麼?

此技能提供一個命令列界面,用於在本地網路上發現、控制和群組 Sonos 揚聲器。它支援播放/暫停/停止控制、音量調整、揚聲器群組管理、喜愛項目播放、佇列管理,以及透過 SMAPI 進行 Spotify 搜尋。此工具在廣泛的開發環境中運作,包括直接終端機、VS Code 終端機以及 Docker 沙盒模式。如果 SSDP 發現失敗,使用者可以指定揚聲器的 IP 位址;可選的 Spotify Web API 整合需要設定 `SPOTIFY_CLIENT_ID` 和 `SPOTIFY_CLIENT_SECRET` 環境變數。

相容平台~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/skills/sonoscli

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Sonos CLI

使用 sonos 指令控制本地網路上的 Sonos 揚聲器。

快速開始

  • sonos discover
  • sonos status --name "Kitchen"
  • sonos play|pause|stop --name "Kitchen"
  • sonos volume set 15 --name "Kitchen"

常見任務

  • 群組:sonos group status|join|unjoin|party|solo
  • 喜愛項目:sonos favorites list|open
  • 佇列:sonos queue list|play|clear
  • Spotify 搜尋 (透過 SMAPI):sonos smapi search --service "Spotify" --category tracks "query"

備註

  • 如果 SSDP 失敗,請指定 --ip <speaker-ip>。
  • Spotify Web API 搜尋為選用功能,需設定 SPOTIFY_CLIENT_ID/SECRET。
  • 若出現錯誤,請檢查疑難排解章節,並在找到良好對應時提供建議。

疑難排解

sonos discover - no route to host

  • 若出現錯誤 Error: write udp4 0.0.0.0:64326->239.255.255.250:1900: sendto: no route to host (Command exited with code 1)
    • 請注意,0.0.0.0: 後的連接埠號是臨時的,可能會改變,子網路遮罩也可能不會完全匹配
    • sendto: no route to host 訊息應保持一致
  • 建議使用者在 Mac OS 的 direct(無 Docker 沙盒)模式下,前往「設定」>「隱私權與安全性」>「本地網路」,為閘道器的頂層主機父程序啟用權限
    • 若透過 launchd 執行,啟用 node 的權限
    • 若直接在終端機中執行閘道器,啟用 Terminal 的權限
    • 若透過 VS Code 終端機執行,啟用 Visual Studio Code 的權限
  • 另一種選擇是使用 sandbox(Docker 容器)模式,並允許該沙盒的網路存取權

sonos discover - bind: operation not permitted

  • 若出現錯誤 Error: listen udp4 0.0.0.0:0: bind: operation not permitted
  • 建議使用者可能正在 Codex 或其他不允許網路存取的沙盒中執行(這可以透過在啟用沙盒的 Codex CLI 工作階段中執行 sonos discover 且不批准提權請求來重現)

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills and agent Templates when requested; add Templates; install, verify, update, uninstall, publish, or sync skills.

相關技能