From 3f31e0a8fa4d3668acf0e234c7377ad9cc49e419 Mon Sep 17 00:00:00 2001 From: "Issues Docs [BOT]" Date: Mon, 17 Feb 2025 05:34:57 +0000 Subject: [PATCH] =?UTF-8?q?Auto-Generate=20docs=20=F0=9F=A4=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/issues/105.md | 40 ++++++++++++++++++++++++++++++++++++++++ docs/issues/389.md | 14 ++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 docs/issues/389.md diff --git a/docs/issues/105.md b/docs/issues/105.md index 3956e54..8ab5c46 100644 --- a/docs/issues/105.md +++ b/docs/issues/105.md @@ -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) diff --git a/docs/issues/389.md b/docs/issues/389.md new file mode 100644 index 0000000..2fc1ac2 --- /dev/null +++ b/docs/issues/389.md @@ -0,0 +1,14 @@ +--- +title: 搞了个入门配置教程 +--- + +# 搞了个入门配置教程 + +官方文档不直观啊,得摸索好久才搞定,第一步怎么设置我找了好久,哈哈哈。 + +写了个分3步的教程,希望有帮助吧: [xiaomusic 安装、配置和使用教程,免费用小爱音箱无限播放音乐](https://garymeng.com/cn/3317.html)。 + +## 评论 + +没有评论。 +[链接到 GitHub Issue](https://github.com/hanxi/xiaomusic/issues/389)