1
0
mirror of https://github.com/hanxi/xiaomusic.git synced 2025-12-06 14:52:50 +08:00

Auto-Generate docs 🤖

This commit is contained in:
Issues Docs [BOT]
2025-02-17 05:34:57 +00:00
parent 7055255b8f
commit 3f31e0a8fa
2 changed files with 54 additions and 0 deletions

View File

@@ -400,5 +400,45 @@ services:
好的已经重开了一个issue #259
---
### 评论 19 - wjcroom
@hanxi 你好大神 , 自定义口令基本搞定了,还有些不确定对不对
在项目命令中只有停止,没有继续.
能把stop.做成, 乒乓吗.继续. 暂停的切换.pause play
"active_cmd": "play,set_random_play,playlocal,play_music_list,play_music_list_index,stop_after_minute,stop,测试自定义口令",
这个激活cmd是什么作用呢, 怎么看着默认的是函数,只有最后一个是中文呢?
已经把自定义3thplay音量加入了. 其他的大点声小点声, 大点音,小点音.,还有好多.
好的好像是激活xiaomusic的 但是为啥前面的是单词?
config.json, 已经被setting.json替换了的.
```
async def set_myvolume(self, did="", arg1=0, **kwargs):
if did not in self.devices:
self.log.info(f"设备 did:{did} 不存在, 不能设置音量")
return
if arg1=="up":
await self.devices[did].thdplay('up')
elif arg1=="down":
await self.devices[did].thdplay('dow')
else:
volume = chinese_to_number(arg1)
await self.devices[did].thdplay('volume',str(volume))
```
---
### 评论 20 - hanxi
激活cmd支持配置 key 和 value用于决定是否能在 xiaomusic 不播放的时候能否唤醒 xiaomusic 。
config.json 是基本废弃了,作为一个初始化配置存在。
暂停不方便做,没有好的接口控制音箱暂停,所以就没加这个口令。
---
[链接到 GitHub Issue](https://github.com/hanxi/xiaomusic/issues/105)

14
docs/issues/389.md Normal file
View File

@@ -0,0 +1,14 @@
---
title: 搞了个入门配置教程
---
# 搞了个入门配置教程
官方文档不直观啊,得摸索好久才搞定,第一步怎么设置我找了好久,哈哈哈。
写了个分3步的教程希望有帮助吧 [xiaomusic 安装、配置和使用教程,免费用小爱音箱无限播放音乐](https://garymeng.com/cn/3317.html)。
## 评论
没有评论。
[链接到 GitHub Issue](https://github.com/hanxi/xiaomusic/issues/389)