360 Secure SkillHub
360 安全技能中心

Sonoscli.Bak

该 Skill 以 sonos 命令行工具在本地网络发现 Sonos 音箱,查询状态、播放/暂停/停止、设置音量,并支持分组、收藏与队列操作;还可通过 SMAPI 在 Spotify 中搜索曲目。需预先安装 sonos 二进制,Spotify Web API 搜索为可选项且需凭据。

ahmadshouly
ahmadshouly
热度 44.97
最近更新 2026-05-11 17:38:25
分类:自动化依赖:代码执行 / 第三方 API应用场景:自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add sonoscli-bak
Metadata
name
sonoscli
description
Control Sonos speakers (discover/status/play/volume/group).
homepage
https://sonoscli.sh
metadata
{"clawdbot":{"emoji":"🔊","requires":{"bins":["sonos"]},"install":[{"id":"go","kind":"go","module":"github.com/steipete/sonoscli/cmd/sonos@latest","bins":["sonos"],"label":"Install sonoscli (go)"}]}}

Sonos CLI

Use sonos to control Sonos speakers on the local network.

Quick start

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

Common tasks

  • Grouping: sonos group status|join|unjoin|party|solo
  • Favorites: sonos favorites list|open
  • Queue: sonos queue list|play|clear
  • Spotify search (via SMAPI): sonos smapi search --service "Spotify" --category tracks "query"

Notes

  • If SSDP fails, specify --ip <speaker-ip>.
  • Spotify Web API search is optional and requires SPOTIFY_CLIENT_ID/SECRET.