💬 FAQ问题集合
NOTE
这个 issue 用来总结报错日志和对应的解决方法。
❓ XIAOMUSIC_HOSTNAME 怎么填
填写 docker 主机的 ip ,不是小爱音箱的ip,一般就是网页访问的后台地址里的 ip ,只要确保 ip 和小爱音箱在一个局域网内就行。
同时也支持 xx.xx.com 的域名格式,用于配置反代供外网访问,比如小爱音箱和 docker 主机不在同一个局域网内。
❓ Login Failed 登陆失败
表现就是 后台看不到设备列表 ,日志中会有对应的报错。
这个有专门的讨论,见 </issues/16.html> ,一般是因为开了加速代理,关代理再尝试即可。也可以试试在局域网设备里的米家app上退出再重新登录一下。
在小米官网 www.mi.com 登陆过人脸或滑块验证基本上能解决 99%的 login failed 问题。
来自 @yilikun 的友情提示:
- 关闭本地代理。
- 如果是nas运行的,网络由bridge改为host。
- 米家app重新登陆。
- mi.com官网重新登陆。
- 检查 setting.json 文件里的账号密码是否正确。
❓ 网页后台可以播放,语音控制无效
这种情况是拉取不到对话记录导致的。 如果是首次在网页后台保存 did 后需要重启一次容器。 其他情况可能是被限制拉取对话记录次数,也可以尝试重启容器。 还有一种情况是配错了唤醒口令,可以在小爱音箱app里查看对话记录,也可以查看 xiaomusic 的日志。默认口令前缀是【播放歌曲】,没有这个前缀是无法识别的,说播放音乐是没用的,除非自己设置其他口令词。 已知 M01/XMYX01JY 小米小爱音箱HD
获取对话记录的接口比较特殊,需要开启【特殊型号获取对话记录:】开关才能正常语音控制。
❓ 日志显示正在播放,却没有声音
可以点击播放链接按钮,看看默认的那个链接能否播放。
已知部分触屏版不能播放可以在后台设置 【型号兼容模式】为 true 试试。
其他情况可能是 XIAOMUSIC_HOSTNAME 配错了地址,不是 docker 主机地址会导致小爱音箱无法访问到,而且需要和小爱音箱在同一个局域网下的地址。还有可能是端口配错了,修改了默认 8090 端口映射,需要同步修改其他参数,可以翻阅端口修改的文档。
如果端口不是8090,首次启动没配好端口的话,需要手动修改setting.json文件里的端口,或者把setting.json文件删除重新配置,或者在后台修改监听端口后重启。
可以点击播放歌曲后,查看日志里的歌曲链接,放到浏览器里打开试试,不能访问说明是端口或者hostname问题,如果是异地访问,需要把 hostname 修改为外网ip或者域名,需要注意音箱只支持访问ipv4,不能是ipv6的公网。
如果是配了公网反代端口,注意区分是 http 还是 https ,如果是 https 的,配置 XIAOMUSIC_HOSTNAME 时需要加上 https://
前缀。
❓ 无法播放 flac 格式歌曲
因设备差异和文件格式差异,已知部分设备不支持 flac 格式,比如 L05B L05C 。
❓ docker 镜像拉取失败
请更换镜像源或者使用代理。不同环境更换镜像源的方式不一样,可以网上搜索自己的 NAS 如何更换镜像源。
已经可以通过 DaoCloud 拉取镜像。
docker pull m.daocloud.io/docker.io/hanxi/xiaomusic:latest
docker tag m.daocloud.io/docker.io/hanxi/xiaomusic:latest hanxi/xiaomusic:latest
❓ 启动失败,日志中出现 RuntimeError: can't start new thread
一般是 docker 版本太低,或者系统限制了 docker 使用的 cpu 数量,可以尝试升级 docker 到最新版本。
❓ DNS 解析错误
一般会出现下面这样的日志,表现就是设置页面看不到设备列表。
aiohttp.client_ _exceptions. ClientConnectorError: Cannot connect to host account.xiaomi.com:443 ssl:False [Temporary failure in name resolution]
可以尝试把主机的 DNS 设为 223.5.5.5 之后重启 docker 主机。
如果还是不行可以把 docker 的网络模式改成 host 模式。
❓ 点击播放后需要很久才开始播放的问题
这个问题新版本已经解决,如果还存在请反馈。
~目前0.3.x版本还存在这个问题没有完全解决,可以暂时回退到0.2.0版本继续使用。~
❓ 如何配置多个歌曲目录
services:
xiaomusic:
image: hanxi/xiaomusic
container_name: xiaomusic
restart: unless-stopped
ports:
- 8090:8090
volumes:
- /data/music1:/app/music/music1
- /data/music2:/app/music/music2
- /data/xiaomusic/conf:/app/conf
冒号左边的 /data/music1
和 /data/music2
改成你的目录即可。如果你是 windows 的 docker ,可以改成 D:/music1
和 D:/music2
,盘符号开头,用 /
分割。
如果是 docker 部署的,建议不要去修改 web 后台里的音乐路径和配置路径等等所有路径除非你熟悉 docker 的目录映射机制。
❓ 能不能中文名
services:
xiaomusic:
image: hanxi/xiaomusic
container_name: xiaomusic
restart: unless-stopped
ports:
- 8090:8090
volumes:
- /data/music1:/app/music/歌曲目录1
- /data/music2:/app/music/歌曲目录2
- /data/xiaomusic/conf:/app/conf
❓ 能不能多层目录
可以,每层的每个目录会识别为一个播放列表。
❓ 是否需要手动获取 did
新版本不需要手动获取配置 did,不需要配置环境变量,直接在 web 后台填入小米账号密码保存后会自动获取到 did ,然后勾选对应的设备即可。
❓ 报错 601
报错日志大致如下:
Exception: Error https://api2.mina.mi.com/remote/ubus: {"code":601,"message":"illegal argument exception","data":"IllegalArgumentException: ubus call format illegal!"}
原因是没有配置 did ,或者 did 配置错误。可以到设置页面选择正确的设备类型和 did 然后保存。
❓ 新功能没有生效
在设置页面重新保存一下,或者删除 setting.json 文件,重新在后台设置一次。
❓ 为什么会先说小爱音箱自带的回答,再说下载中或者过一会儿才播放本地歌曲
设计原理就是每秒不停的抓取对话记录,然后再打断小爱音箱自带的处理流程。整个过程下来会有延时,所以打断不会很及时,做不到无缝衔接。
评论
评论 1 - shissx
安装的最新版本,即使没有使用,日志一直在不停的刷新,示例: [10:20:36] [0.1.101] [DEBUG] Polling_event, timestamp: {'eeb70da5-baa9-4b56-b2f3-7ee01276a18a': 1720430457236} [10:20:36] [0.1.101] [DEBUG] Sleep 0.0003166699898429215, timestamp: {'eeb70da5-baa9-4b56-b2f3-7ee01276a18a': 1720430457236} [10:20:37] [0.1.101] [DEBUG] Listening new message, timestamp: {'eeb70da5-baa9-4b56-b2f3-7ee01276a18a
之前的版本没有这个问题,这个是设置错误?还是本来就如此呢?
评论 2 - hanxi
安装的最新版本,即使没有使用,日志一直在不停的刷新,示例: [10:20:36] [0.1.101] [DEBUG] Polling_event, timestamp: {'eeb70da5-baa9-4b56-b2f3-7ee01276a18a': 1720430457236} [10:20:36] [0.1.101] [DEBUG] Sleep 0.0003166699898429215, timestamp: {'eeb70da5-baa9-4b56-b2f3-7ee01276a18a': 1720430457236} [10:20:37] [0.1.101] [DEBUG] Listening new message, timestamp: {'eeb70da5-baa9-4b56-b2f3-7ee01276a18a
之前的版本没有这个问题,这个是设置错误?还是本来就如此呢?
正常现象,现在默认把调试日志打开了,可以在后台设置关闭调试日志的。
评论 3 - Dx0123
大佬,docker安装提示缺少很多module,我一个个在dockerfilie里加上,最后卡在miservice装不上了~
评论 4 - hanxi
@Dx0123 其实不用手动安装依赖的,直接一行应该就行。
RUN pip install -U xiaomusic
评论 5 - Dx0123
@Dx0123 其实不用手动安装依赖的,直接一行应该就行。
RUN pip install -U xiaomusic
我直接用pip安装好之后,执行仍然有缺少的依赖,和docker里缺的一样。截图的module安装了之后还会有其他依赖缺失
评论 6 - hanxi
@Dx0123 你的python版本是不是有问题?你参考下项目里的Dockerfile,用同一个From镜像试试。
评论 7 - hanxi
有时候指令已停止,可是一会儿,又自动播放下一首,根本就停不下来。需要重启容器才能正常
点关机按钮也不行吗?
评论 8 - hanxi
有时候指令已停止,可是一会儿,又自动播放下一首,根本就停不下来。需要重启容器才能正常
点关机按钮也不行吗?
是的,说关机,点关机,暂停都不行。只能重启容器。
有没有日志看看?
评论 9 - sqmcool
为什么我的没有显示设备?
评论 10 - hanxi
为什么我的没有显示设备?
应该是登陆失败,可以查看一下日志。
评论 11 - schppd
楼主您好,请问这个我需要怎么处理?
评论 12 - hanxi
楼主您好,请问这个我需要怎么处理?
删掉重新配置一下试试。
评论 13 - schppd
会不会跟网络不稳定有关系?我都弄了几次还是这样子
------------------ 原始邮件 ------------------ 发件人: "hanxi/xiaomusic" @.>; 发送时间: 2024年9月15日(星期天) 晚上10:57 @.>; @.@.>; 主题: Re: [hanxi/xiaomusic] FAQ问题集合 (Issue #99)
楼主您好,请问这个我需要怎么处理?
删掉重新配置一下试试。
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
评论 14 - hanxi
会不会跟网络不稳定有关系?我都弄了几次还是这样子 … ------------------ 原始邮件 ------------------ 发件人: "hanxi/xiaomusic" @.>; 发送时间: 2024年9月15日(星期天) 晚上10:57 @.>; @.@.>; 主题: Re: [hanxi/xiaomusic] FAQ问题集合 (Issue #99) 楼主您好,请问这个我需要怎么处理? 删掉重新配置一下试试。 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
有可能的,用代理试试。
评论 15 - guoxiangke
定制的时候,"全部"和”所有歌曲"的区别,帮助有需要的朋友: 歌单中 "全部" 指的是 所有歌单中歌曲,但不包括“歌单内容”配置(http://127.0.0.1:8090/static/setting.html)中的电台 "type": "radio",的 ”所有歌曲" 指的是下载的歌曲,在download文件夹里
评论 16 - agigogo
在docker里可以运行,但是没法播放设置页面中的播放链接,选中设备那里是空的,是不是没成功?怎么调整?
评论 17 - hanxi
在docker里可以运行,但是没法播放设置页面中的播放链接,选中设备那里是空的,是不是没成功?怎么调整?
设置页面输入小米的账号密码后,再勾选一个设备。
评论 18 - agigogo
在docker里可以运行,但是没法播放设置页面中的播放链接,选中设备那里是空的,是不是没成功?怎么调整?
设置页面输入小米的账号密码后,再勾选一个设备。
设置页面里没有勾选的选项
在docker里可以运行,但是没法播放设置页面中的播放链接,选中设备那里是空的,是不是没成功?怎么调整?
设置页面输入小米的账号密码后,再勾选一个设备。
设置页面没有可勾选项?
评论 19 - agigogo
在docker里可以运行,但是没法播放设置页面中的播放链接,选中设备那里是空的,是不是没成功?怎么调整?
设置页面输入小米的账号密码后,再勾选一个设备。
设置页面里没有勾选的选项
在docker里可以运行,但是没法播放设置页面中的播放链接,选中设备那里是空的,是不是没成功?怎么调整?
设置页面输入小米的账号密码后,再勾选一个设备。
设置页面没有可勾选项?
显示未检测到设备,设备型号是MDZ-25-DA
评论 20 - hanxi
@agigogo 应该是登陆失败了,局域网的手机重新登陆一下小爱音箱app吧。
评论 21 - agigogo
@agigogo 应该是登陆失败了,局域网的手机重新登陆一下小爱音箱app吧。
一直都是用米家APP来控制小爱音箱,那要下个小爱音响APP试一试
评论 22 - agigogo
@agigogo 应该是登陆失败了,局域网的手机重新登陆一下小爱音箱app吧。
搞定了,小爱音箱app重新绑定就可以了。真6~
评论 23 - Tueafternoon
一首歌结束不能自动切到下一首,随机播放模式,日志中显示下一曲定时器不见了....这个是咋回事啊
评论 24 - hanxi
一首歌结束不能自动切到下一首,随机播放模式,日志中显示下一曲定时器不见了....这个是咋回事啊
可能是音乐文件有问题,获取歌曲长度失败,你可以把歌曲文件上传一下给我测试。
评论 25 - hanxi
或者搜下日志里有没有 不会设置下一首歌的定时器 这个
评论 26 - Tueafternoon
或者搜下日志里有没有 不会设置下一首歌的定时器 这个
有这个,应该是我的文件格式问题,晚上我处理一下再试试
评论 27 - zealler9560
istore系统可以拉取创建镜像,但是无法启动,错误提示见图一,求助大佬!路由器信息见图二
评论 28 - adidas004
在群晖使用docker安装的,只能通过重装来升级到最新版本吗?有快捷的一键升级吗
评论 29 - hanxi
在群晖使用docker安装的,只能通过重装来升级到最新版本吗?有快捷的一键升级吗
不会命令行,就用这个工具吧。 https://github.com/onlyLTY/dockerCopilot
评论 30 - adidas004
谢谢您的工具,我刚去群晖的docker上有提示直接升级,还是非常的感觉你的回答
------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2024年11月11日(星期一) 下午4:20 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [hanxi/xiaomusic] 💬 FAQ问题集合 (Issue #99)
在群晖使用docker安装的,只能通过重装来升级到最新版本吗?有快捷的一键升级吗
不会命令行,就用这个工具吧。 https://github.com/onlyLTY/dockerCopilot
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
评论 31 - sinojelly
运行时遇到下面问题,请问要怎么排查?
2024/11/21 19:27:00 xiaomusic.py: error: unrecognized arguments: .venv/bin/python3 xiaomusic.py
2024/11/21 19:27:00 [--enable_config_example]
2024/11/21 19:27:00 [--ffmpeg_location FFMPEG_LOCATION]
2024/11/21 19:27:00 [--config CONFIG]
2024/11/21 19:27:00 [--verbose]
2024/11/21 19:27:00 [--cookie COOKIE]
2024/11/21 19:27:00 [--password PASSWORD]
2024/11/21 19:27:00 [--account ACCOUNT]
2024/11/21 19:27:00 [--hardware HARDWARE]
2024/11/21 19:27:00 [--port PORT]
2024/11/21 19:27:00 [-h]
2024/11/21 19:27:00 usage: xiaomusic.py
评论 32 - hanxi
运行时遇到下面问题,请问要怎么排查?
2024/11/21 19:27:00 xiaomusic.py: error: unrecognized arguments: .venv/bin/python3 xiaomusic.py 2024/11/21 19:27:00 [--enable_config_example] 2024/11/21 19:27:00 [--ffmpeg_location FFMPEG_LOCATION] 2024/11/21 19:27:00 [--config CONFIG] 2024/11/21 19:27:00 [--verbose] 2024/11/21 19:27:00 [--cookie COOKIE] 2024/11/21 19:27:00 [--password PASSWORD] 2024/11/21 19:27:00 [--account ACCOUNT] 2024/11/21 19:27:00 [--hardware HARDWARE] 2024/11/21 19:27:00 [--port PORT] 2024/11/21 19:27:00 [-h] 2024/11/21 19:27:00 usage: xiaomusic.py
看不出来
评论 33 - sinojelly
请问登录验证失败要怎么定位?小米登录邮箱,还是小米id 都报同样的错。
2024/11/25 0:50:44 [2024-11-25 00:50:44] [0.3.48] [ERROR] xiaomusic.py:259: /root/.mi.token file not exist
2024/11/25 0:50:44 Exception: Error https://api2.mina.mi.com/admin/v2/device_list?master=0&requestId=app_ios_: Login failed
2024/11/25 0:50:44 raise Exception(f"Error {url}: {resp}")
2024/11/25 0:50:44 File "/app/.venv/lib/python3.10/site-packages/miservice/miaccount.py", line 150, in mi_request
2024/11/25 0:50:44 return await self.account.mi_request(
2024/11/25 0:50:44 File "/app/.venv/lib/python3.10/site-packages/miservice/minaservice.py", line 49, in mina_request
2024/11/25 0:50:44 result = await self.mina_request("/admin/v2/device_list?master=" + str(master))
2024/11/25 0:50:44 File "/app/.venv/lib/python3.10/site-packages/miservice/minaservice.py", line 54, in device_list
2024/11/25 0:50:44 hardware_data = await self.mina_service.device_list()
2024/11/25 0:50:44 File "/app/xiaomusic/xiaomusic.py", line 232, in try_update_device_id
2024/11/25 0:50:44 Traceback (most recent call last):
2024/11/25 0:50:44 [2024-11-25 00:50:44] [0.3.48] [ERROR] xiaomusic.py:251: Execption Error https://api2.mina.mi.com/admin/v2/device_list?master=0&requestId=app_ios_xx: Login failed
2024/11/25 0:50:44 Exception: {'qs': '%3Fsid%3Dmicoapi%26_json%3Dtrue', 'code': 70016, 'description': '登录验证失败', 'securityStatus': 0, '_sign': 'xxx', 'sid': 'micoapi', 'result': 'error', 'captchaUrl': None, 'callback': 'https://api2.mina.mi.com/sts', 'location': '', 'pwd': 0, 'child': 0, 'desc': '登录验证失败'}
2024/11/25 0:50:44 raise Exception(resp)
2024/11/25 0:50:44 File "/app/.venv/lib/python3.10/site-packages/miservice/miaccount.py", line 69, in login
评论 34 - hanxi
请问登录验证失败要怎么定位?小米登录邮箱,还是小米id 都报同样的错。
2024/11/25 0:50:44 [2024-11-25 00:50:44] [0.3.48] [ERROR] xiaomusic.py:259: /root/.mi.token file not exist 2024/11/25 0:50:44 Exception: Error https://api2.mina.mi.com/admin/v2/device_list?master=0&requestId=app_ios_: Login failed 2024/11/25 0:50:44 raise Exception(f"Error {url}: {resp}") 2024/11/25 0:50:44 File "/app/.venv/lib/python3.10/site-packages/miservice/miaccount.py", line 150, in mi_request 2024/11/25 0:50:44 return await self.account.mi_request( 2024/11/25 0:50:44 File "/app/.venv/lib/python3.10/site-packages/miservice/minaservice.py", line 49, in mina_request 2024/11/25 0:50:44 result = await self.mina_request("/admin/v2/device_list?master=" + str(master)) 2024/11/25 0:50:44 File "/app/.venv/lib/python3.10/site-packages/miservice/minaservice.py", line 54, in device_list 2024/11/25 0:50:44 hardware_data = await self.mina_service.device_list() 2024/11/25 0:50:44 File "/app/xiaomusic/xiaomusic.py", line 232, in try_update_device_id 2024/11/25 0:50:44 Traceback (most recent call last): 2024/11/25 0:50:44 [2024-11-25 00:50:44] [0.3.48] [ERROR] xiaomusic.py:251: Execption Error https://api2.mina.mi.com/admin/v2/device_list?master=0&requestId=app_ios_xx: Login failed 2024/11/25 0:50:44 Exception: {'qs': '%3Fsid%3Dmicoapi%26_json%3Dtrue', 'code': 70016, 'description': '登录验证失败', 'securityStatus': 0, '_sign': 'xxx', 'sid': 'micoapi', 'result': 'error', 'captchaUrl': None, 'callback': 'https://api2.mina.mi.com/sts', 'location': '', 'pwd': 0, 'child': 0, 'desc': '登录验证失败'} 2024/11/25 0:50:44 raise Exception(resp) 2024/11/25 0:50:44 File "/app/.venv/lib/python3.10/site-packages/miservice/miaccount.py", line 69, in login
上面给出了4个办法都试过了吗?局域网登陆mi.com了?
评论 35 - wusemao
设置web访问登录时,账号密码设置完之后登不进去了,账号名称用的中文的可以么
评论 36 - hanxi
设置web访问登录时,账号密码设置完之后登不进去了,账号名称用的中文的可以么
不确定是否可以,你可以考虑setting.json里的内容,不行就修改再重启。
评论 37 - quanmao
运行后会在音乐目录下生成一个tmp文件夹,如何指定路径,因为还有其应用访问音乐路径,不希望其识别tmp目录下的音乐。
评论 38 - hanxi
运行后会在音乐目录下生成一个tmp文件夹,如何指定路径,因为还有其应用访问音乐路径,不希望其识别tmp目录下的音乐。
忽略目录(逗号分割) 改成 @eaDir,tmp
即可。
评论 39 - quanmao
运行后会在音乐目录下生成一个tmp文件夹,如何指定路径,因为还有其应用访问音乐路径,不希望其识别tmp目录下的音乐。
忽略目录(逗号分割) 改成
@eaDir,tmp
即可。
抱歉,是我没有说清楚,是运行xiaomusic后会在音乐路径下生成tmp文件夹, 但我同时还在用navidrome,也会访问音乐目录,他会把tmp目录下的歌曲也扫描进去,所以想移动tmp目录。 navidrome没找到在哪里可以设置,忽略这个文件夹
评论 40 - hanxi
运行后会在音乐目录下生成一个tmp文件夹,如何指定路径,因为还有其应用访问音乐路径,不希望其识别tmp目录下的音乐。
忽略目录(逗号分割) 改成
@eaDir,tmp
即可。抱歉,是我没有说清楚,是运行xiaomusic后会在音乐路径下生成tmp文件夹, 但我同时还在用navidrome,也会访问音乐目录,他会把tmp目录下的歌曲也扫描进去,所以想移动tmp目录。 navidrome没找到在哪里可以设置,忽略这个文件夹
提个新 issue 吧,有空加下配置项。
评论 41 - CallEdison
问题一:能进控制面板,进不了设置页面,容器没有log生成,我昨天已经设置好了,现在功能能正常使用,但是进不了设置页面了问题二:昨天能进的时候发现本地下载目录有歌曲,但是设置里面的全部歌曲里面没有,搜索框搜索又能搜的到。
评论 42 - hanxi
问题一:能进控制面板,进不了设置页面,容器没有log生成,我昨天已经设置好了,现在功能能正常使用,但是进不了设置页面了问题二:昨天能进的时候发现本地下载目录有歌曲,但是设置里面的全部歌曲里面没有,搜索框搜索又能搜的到。
问题一:打不开的地址是哪个? 问题二:可以点击刷新列表按钮试试。
评论 43 - huahua-er
是关闭了网络搜索了吗?现在的搜索只有本地数据没有网络歌曲了?
评论 44 - CallEdison
默认主题有歌曲
pure主题没有歌曲
xmusicPlayer也没有歌曲
Edison @.***
------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2024年11月30日(星期六) 上午6:26 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [hanxi/xiaomusic] 💬 FAQ问题集合 (Issue #99)
是关闭了网络搜索了吗?现在的搜索只有本地数据没有网络歌曲了?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
评论 45 - hanxi
是关闭了网络搜索了吗?现在的搜索只有本地数据没有网络歌曲了?
等 yt-dlp 修复。
评论 46 - hanxi
默认主题有歌曲 pure主题没有歌曲 xmusicPlayer也没有歌曲 Edison @.*** … ------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2024年11月30日(星期六) 上午6:26 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [hanxi/xiaomusic] 💬 FAQ问题集合 (Issue #99) 是关闭了网络搜索了吗?现在的搜索只有本地数据没有网络歌曲了? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
需要刷新缓存
评论 47 - like1020
请教一下,本地列表歌单里的歌曲即便设置为全部循环或随机播放,依然是不断地单曲循环,只能自己手动点下一首,请问是什么情况?
评论 48 - tchgtr
请问网络搜索功能修复了吗?感谢!
评论 49 - hanxi
请问网络搜索功能修复了吗?感谢!
修复了。
评论 50 - tchgtr
请问网络搜索功能修复了吗?感谢!
修复了。
我已经更新到最新版0.3.55,音箱是LX04触屏音箱,但是使用指令对小爱说“播放歌曲。。。“还是通过音箱绑定的QQ音乐播放,解绑了QQ音乐账号,就会提示先让我绑定账号(包括播放本地歌曲指令),感觉音箱还没跟docker连接上(已经重启过容器)。但是通过8090端口进入后台,搜索歌曲,播放,调节声音大小,单曲、随机所有的功能都可以通过按键实现,唯独不能通过语音跟小爱对话播放我指定的内容,请问这个是什么问题,感谢!
评论 51 - hanxi
请问网络搜索功能修复了吗?感谢!
修复了。
我已经更新到最新版0.3.55,音箱是LX04触屏音箱,但是使用指令对小爱说“播放歌曲。。。“还是通过音箱绑定的QQ音乐播放,解绑了QQ音乐账号,就会提示先让我绑定账号(包括播放本地歌曲指令),感觉音箱还没跟docker连接上(已经重启过容器)。但是通过8090端口进入后台,搜索歌曲,播放,调节声音大小,单曲、随机所有的功能都可以通过按键实现,唯独不能通过语音跟小爱对话播放我指定的内容,请问这个是什么问题,感谢!
贴下你的 setting.json 文件看看吧,把里面的账号密码删除。
评论 52 - tchgtr
请问网络搜索功能修复了吗?感谢!
修复了。
我已经更新到最新版0.3.55,音箱是LX04触屏音箱,但是使用指令对小爱说“播放歌曲。。。“还是通过音箱绑定的QQ音乐播放,解绑了QQ音乐账号,就会提示先让我绑定账号(包括播放本地歌曲指令),感觉音箱还没跟docker连接上(已经重启过容器)。但是通过8090端口进入后台,搜索歌曲,播放,调节声音大小,单曲、随机所有的功能都可以通过按键实现,唯独不能通过语音跟小爱对话播放我指定的内容,请问这个是什么问题,感谢!
贴下你的 setting.json 文件看看吧,把里面的账号密码删除。
{ "account": "", "password": "", "mi_did": "603807070", "miio_tts_command": "", "cookie": "", "verbose": false, "music_path": "music", "temp_path": "music/tmp", "download_path": "music/download", "conf_path": "conf", "cache_dir": "cache", "hostname": "192.168.31.159", "port": 8090, "public_port": 0, "proxy": "", "search_prefix": "bilisearch:", "ffmpeg_location": "./ffmpeg/bin", "active_cmd": "play,set_play_type_rnd,playlocal,play_music_list,play_music_list_index,stop_after_minute,stop", "exclude_dirs": "@eaDir,tmp", "music_path_depth": 10, "disable_httpauth": true, "httpauth_username": "", "httpauth_password": "", "music_list_url": "", "music_list_json": "", "custom_play_list_json": "", "disable_download": false, "key_word_dict": { "下一首": "play_next", "上一首": "play_prev", "单曲循环": "set_play_type_one", "全部循环": "set_play_type_all", "随机播放": "set_play_type_rnd", "单曲播放": "set_play_type_sin", "顺序播放": "set_play_type_seq", "分钟后关机": "stop_after_minute", "刷新列表": "gen_music_list", "加入收藏": "add_to_favorites", "收藏歌曲": "add_to_favorites", "取消收藏": "del_from_favorites", "播放列表第": "play_music_list_index", "播放本地歌曲": "playlocal", "本地播放歌曲": "playlocal", "播放歌曲": "play", "放歌曲": "play", "关机": "stop", "暂停": "stop", "停止": "stop", "停止播放": "stop", "播放列表": "play_music_list", "播放歌单": "play_music_list", "测试自定义口令": "exec#code1("hello")", "测试链接": "exec#httpget("https://github.com/hanxi/xiaomusic\")" }, "key_match_order": [ "分钟后关机", "下一首", "上一首", "单曲循环", "全部循环", "随机播放", "单曲播放", "顺序播放", "关机", "刷新列表", "播放列表第", "播放列表", "加入收藏", "收藏歌曲", "取消收藏", "播放本地歌曲", "本地播放歌曲", "播放歌曲", "放歌曲", "暂停", "停止", "停止播放", "播放歌单", "测试自定义口令", "测试链接" ], "use_music_api": false, "use_music_audio_id": "1582971365183456177", "use_music_id": "355454500", "log_file": "xiaomusic.log.txt", "fuzzy_match_cutoff": 0.6, "enable_fuzzy_match": true, "stop_tts_msg": "收到,再见", "enable_config_example": false, "keywords_playlocal": "播放本地歌曲,本地播放歌曲", "keywords_play": "播放歌曲,放歌曲", "keywords_stop": "关机,暂停,停止,停止播放", "keywords_playlist": "播放列表,播放歌单", "user_key_word_dict": { "测试自定义口令": "exec#code1("hello")", "测试链接": "exec#httpget("https://github.com/hanxi/xiaomusic\")" }, "enable_force_stop": false, "devices": { "603807070": { "did": "603807070", "device_id": "60b8f875-4101-416a-9278-4d4170929b4d", "hardware": "LX04", "name": "小爱触屏音箱", "play_type": 1, "cur_music": "七里香", "cur_playlist": "临时搜索列表" } }, "group_list": "", "remove_id3tag": false, "convert_to_mp3": false, "delay_sec": 3, "continue_play": false, "pull_ask_sec": 1, "crontab_json": "", "enable_yt_dlp_cookies": false, "get_ask_by_mina": true, "play_type_one_tts_msg": "已经设置为单曲循环", "play_type_all_tts_msg": "已经设置为全部循环", "play_type_rnd_tts_msg": "已经设置为随机播放", "play_type_sin_tts_msg": "已经设置为单曲播放", "play_type_seq_tts_msg": "已经设置为顺序播放", "recently_added_playlist_len": 50 }
评论 53 - hanxi
get_ask_by_mina 【特殊型号获取对话记录】这个需要设置为 false
评论 54 - tchgtr
get_ask_by_mina 【特殊型号获取对话记录】这个需要设置为 false
已经重新设置并重启容器,尝试还是不行,会不会是这个触屏音箱不支持?
评论 55 - tchgtr
get_ask_by_mina 【特殊型号获取对话记录】这个需要设置为 false
已经重新设置并重启容器,尝试还是不行,会不会是这个触屏音箱不支持?
或者是在创建容器的时候,我的小米账号填写了我的手机号码,应该需要填写实际的小米账号?因为手机号码对应的小米账号,和输入对应的密码,都是可以登陆的,但是我不知道有什么区别,就把手机号码输入进去了
评论 56 - tchgtr
get_ask_by_mina 【特殊型号获取对话记录】这个需要设置为 false
已经重新设置并重启容器,尝试还是不行,会不会是这个触屏音箱不支持?
或者是在创建容器的时候,我的小米账号填写了我的手机号码,应该需要填写实际的小米账号?因为手机号码对应的小米账号,和输入对应的密码,都是可以登陆的,但是我不知道有什么区别,就把手机号码输入进去了
我重新创建容器,问题解决了,主要是两个地方改变了,一个是上面的小米账号的问题,另外一个是关于conf和music这两个文件夹,这次我都把他们放在/container/xiaomusic下,即/container/xiaomusic/conf(music),分别对应两个容器和主机app/conf(music),问题就解决了。之前我是分开在两个文件夹的。
评论 57 - tianting123
0 B的APE文件, 建议直接跳过播放
评论 58 - oklrc
新人请教:使用DOCKER镜像 或者 composer安装 如何升级到最新版本呢?是删除镜像再重新拉取吗
评论 59 - hanxi
新人请教:使用DOCKER镜像 或者 composer安装 如何升级到最新版本呢?是删除镜像再重新拉取吗
docker compose pull
docker compose up -d
评论 60 - oklrc
更新到最新版后,找不到小爱同学了
日志: [2024-12-14 11:34:54] [0.3.57] [ERROR] xiaomusic.py:1283: Execption 'NoneType' object has no attribute 'device_list' Traceback (most recent call last): File "/app/xiaomusic/xiaomusic.py", line 1281, in getalldevices device_list = await self.mina_service.device_list() AttributeError: 'NoneType' object has no attribute 'device_list' [2024-12-14 11:34:54] [0.3.57] [INFO] httpserver.py:246: getsetting device_list: [] [2024-12-14 11:34:54] [0.3.57] [INFO] httpserver.py:246: getsetting device_list: [] [2024-12-14 11:34:54] [0.3.57] [INFO] httpserver.py:246: getsetting device_list: []
评论 61 - hanxi
更新到最新版后,找不到小爱同学了
日志: [2024-12-14 11:34:54] [0.3.57] [ERROR] xiaomusic.py:1283: Execption 'NoneType' object has no attribute 'device_list' Traceback (most recent call last): File "/app/xiaomusic/xiaomusic.py", line 1281, in getalldevices device_list = await self.mina_service.device_list() AttributeError: 'NoneType' object has no attribute 'device_list' [2024-12-14 11:34:54] [0.3.57] [INFO] httpserver.py:246: getsetting device_list: [] [2024-12-14 11:34:54] [0.3.57] [INFO] httpserver.py:246: getsetting device_list: [] [2024-12-14 11:34:54] [0.3.57] [INFO] httpserver.py:246: getsetting device_list: []
登陆掉了吧,重新登陆一下。
评论 62 - sprout-cooler
登录后,显示无设备;上面提到的方法都试过了。没有用,日志显示 File "/app/xiaomusic/xiaomusic.py", line 1270, in reinit
await self.init_all_data(self.session)
AttributeError: 'XiaoMusic' object has no attribute 'session'
评论 63 - fu-yuming
今天更新后,找不到设备了。重新输账号密码保存了,怎么都不行。重新部署也找不到。
评论 64 - zhiquanchi
今天更新后,找不到设备了。重新输账号密码保存了,怎么都不行。重新部署也找不到。
用默认主题试下
评论 65 - hanxi
可以更新试试。
评论 66 - lijichao2018
我点保存,网页显示[object Object],不知道啥情况
评论 67 - hanxi
我点保存,网页显示[object Object],不知道啥情况
0.3.58版本吗?
评论 68 - lijichao2018
0.3.57
该邮件从移动设备发送
------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2024年12月15日(星期天) 中午12:17 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [hanxi/xiaomusic] 💬 FAQ问题集合 (Issue #99)
我点保存,网页显示[object Object],不知道啥情况
0.3.58版本吗?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
评论 69 - hanxi
那你更新吧。58应该是修复了。
评论 70 - oklrc
那你更新吧。58应该是修复了。
新版本确实好了,我昨天遇到的问题和楼上是一样的
评论 71 - lijichao2018
绿联的NAS怎么更新到58版本啊,没找到,要用口令吗?
评论 72 - duming215
网页后台可以播放,语音控制一直抽风,可以识别下载歌曲,但是不能执行其他命令。而且歌曲经常放到一半多就切歌了。。。 语音命令都是严格按关键词来说的。大佬帮忙看看 Traceback (most recent call last): File "/app/xiaomusic/analytics.py", line 104, in post_to_umami async with session.post(url, json=data, headers=headers) as response: File "/app/.venv/lib/python3.10/site-packages/aiohttp/client.py", line 1425, in aenter self._resp: _RetType = await self._coro File "/app/.venv/lib/python3.10/site-packages/aiohttp/client.py", line 703, in _request conn = await self._connector.connect( File "/app/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 548, in connect proto = await self._create_connection(req, traces, timeout) File "/app/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 1056, in _create_connection _, proto = await self._create_direct_connection(req, traces, timeout) File "/app/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 1400, in _create_direct_connection raise last_exc File "/app/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 1369, in _create_direct_connection transp, proto = await self._wrap_create_connection( File "/app/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 1130, in _wrap_create_connection raise client_error(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host umami.hanxi.cc:443 ssl:default [Connection reset by peer] [2024-12-20 15:39:58] [0.3.61] [INFO] analytics.py:73: analytics run_with_cancel success [2024-12-20 15:39:58] [0.3.61] [INFO] xiaomusic.py:2012: cancel_next_timer [2024-12-20 15:39:58] [0.3.61] [INFO] xiaomusic.py:2018: 下一曲定时器不见了 [2024-12-20 15:39:58] [0.3.61] [INFO] xiaomusic.py:1936: 321 秒后将会播放下一首歌曲 [2024-12-20 15:39:58] [0.3.61] [INFO] xiaomusic.py:1307: save_cur_config ok [15:40:29] [0.3.61] [INFO] 192.168.0.67:8041 - "GET /playingmusic?did=108581258 HTTP/1.1" 200 [15:41:29] [0.3.61] [INFO] 192.168.0.67:8092 - "GET /playingmusic?did=108581258 HTTP/1.1" 200 [15:42:29] [0.3.61] [INFO] 192.168.0.67:8164 - "GET /playingmusic?did=108581258 HTTP/1.1" 200 [2024-12-20 15:43:07] [0.3.61] [INFO] xiaomusic.py:797: 收到消息:播放歌曲ARE YOU OK 控制面板:False did:108581258 [2024-12-20 15:43:07] [0.3.61] [INFO] xiaomusic.py:893: 匹配到指令. opkey:播放歌曲 opvalue:play oparg:ARE YOU OK [2024-12-20 15:43:07] [0.3.61] [INFO] xiaomusic.py:1465: play. search_key:ARE YOU OK name:ARE YOU OK [2024-12-20 15:43:07] [0.3.61] [INFO] xiaomusic.py:932: 没找到歌曲【ARE YOU OK】 [2024-12-20 15:43:07] [0.3.61] [INFO] xiaomusic.py:1718: download cmd: yt-dlp bilisearch:ARE YOU OK -x --audio-format mp3 --audio-quality 0 --paths music/download -o ARE YOU OK.mp3 --ffmpeg-location ./ffmpeg/bin --no-playlist [2024-12-20 15:43:07] [0.3.61] [INFO] xiaomusic.py:1627: try do_tts value:正在下载歌曲ARE YOU OK [2024-12-20 15:43:12] [0.3.61] [INFO] xiaomusic.py:1638: do_tts ok. cur_music:周杰伦的晴天 [2024-12-20 15:43:12] [0.3.61] [INFO] xiaomusic.py:1683: Download Process is still running. [2024-12-20 15:43:12] [0.3.61] [INFO] xiaomusic.py:1683: Download Process is still running. [2024-12-20 15:43:12] [0.3.61] [INFO] xiaomusic.py:1739: 不会继续播放歌曲. isplaying:True isdownloading:True [2024-12-20 15:43:12] [0.3.61] [INFO] xiaomusic.py:1721: 正在下载中 ARE YOU OK ARE YOU OK [2024-12-20 15:43:18] [0.3.61] [INFO] xiaomusic.py:558: 已从【cache/tag_cache.json】加载 tag cache [2024-12-20 15:43:18] [0.3.61] [INFO] xiaomusic.py:599: ignore_tag_absolute_dirs: [] [2024-12-20 15:43:18] [0.3.61] [INFO] xiaomusic.py:572: 保存:tag cache 已保存到【cache/tag_cache.json】 [2024-12-20 15:43:18] [0.3.61] [INFO] xiaomusic.py:627: tag 更新完成 [2024-12-20 15:43:18] [0.3.61] [INFO] xiaomusic.py:1755: add_download_music add_music ARE YOU OK [2024-12-20 15:43:18] [0.3.61] [INFO] xiaomusic.py:2022: cancel_group_next_timer {'108581258': <xiaomusic.xiaomusic.XiaoMusicDevice object at 0x7f31cc6c3610>} [2024-12-20 15:43:18] [0.3.61] [INFO] xiaomusic.py:2012: cancel_next_timer [2024-12-20 15:43:18] [0.3.61] [INFO] xiaomusic.py:2015: 下一曲定时器已取消 9fcc3636-3b8e-4309-a430-7eb8978d94f4 [2024-12-20 15:43:18] [0.3.61] [INFO] xiaomusic.py:1589: cur_music ARE YOU OK [2024-12-20 15:43:18] [0.3.61] [INFO] xiaomusic.py:414: try get_filename. filename:music/download/ARE YOU OK.mp3 [2024-12-20 15:43:18] [0.3.61] [INFO] xiaomusic.py:524: get_music_url local music. name:ARE YOU OK, filename:download/ARE YOU OK.mp3 [2024-12-20 15:43:18] [0.3.61] [INFO] xiaomusic.py:445: get_music_sec_url. name:ARE YOU OK url:http://192.168.0.3:8090/music/download/ARE YOU OK.mp3 [2024-12-20 15:43:18] [0.3.61] [INFO] xiaomusic.py:414: try get_filename. filename:music/download/ARE YOU OK.mp3 [2024-12-20 15:43:18] [0.3.61] [INFO] xiaomusic.py:459: get_music_sec_url. name:ARE YOU OK filename:music/download/ARE YOU OK.mp3 [2024-12-20 15:43:18] [0.3.61] [INFO] xiaomusic.py:464: 本地歌曲 ARE YOU OK : music/download/ARE YOU OK.mp3 http://192.168.0.3:8090/music/download/ARE YOU OK.mp3 的时长 133 秒 [2024-12-20 15:43:18] [0.3.61] [INFO] xiaomusic.py:1989: group_force_stop_xiaoai ['9fcc3636-3b8e-4309-a430-7eb8978d94f4'] [2024-12-20 15:43:18] [0.3.61] [INFO] xiaomusic.py:1644: force_stop_xiaoai player_pause device_id:9fcc3636-3b8e-4309-a430-7eb8978d94f4 ret:{'code': 0, 'message': "Msg has been successfully proxy to the device, this service is a simple proxy, if you encounter any problems pls contact ROM's developers directly!!!", 'data': {'code': 0}} [2024-12-20 15:43:18] [0.3.61] [INFO] xiaomusic.py:1655: {'code': 0, 'message': "Msg has been successfully proxy to the device, this service is a simple proxy, if you encounter any problems pls contact ROM's developers directly!!!", 'data': {'code': 0, 'info': '{ "status": 2, "volume": 50, "loop_type": 1, "media_type": 3, "play_song_detail": { "audio_id": "507951590732817", "position": 8680, "duration": 60029 }, "track_list": [ "545606553022895", "176123395447980141", "525480908570653", "507951590732817", "681644918463361", "383285527150302", "1972115018265658007", "658913158921230", "519182249840274", "595248376347937" ] }'}} [2024-12-20 15:43:18] [0.3.61] [INFO] xiaomusic.py:1992: group_force_stop_xiaoai ['9fcc3636-3b8e-4309-a430-7eb8978d94f4'] [None] [2024-12-20 15:43:18] [0.3.61] [INFO] xiaomusic.py:1592: 播放 http://192.168.0.3:8090/music/download/ARE YOU OK.mp3 [15:43:18] [0.3.61] [INFO] 192.168.0.11:33301 - "GET /music/download/ARE%20YOU%20OK.mp3 HTTP/1.1" 206 [2024-12-20 15:43:18] [0.3.61] [INFO] xiaomusic.py:1871: play_one_url play_by_url device_id:9fcc3636-3b8e-4309-a430-7eb8978d94f4 ret:{'code': 0, 'message': "Msg has been successfully proxy to the device, this service is a simple proxy, if you encounter any problems pls contact ROM's developers directly!!!", 'data': {'code': 0}} url:http://192.168.0.3:8090/music/download/ARE YOU OK.mp3 [2024-12-20 15:43:18] [0.3.61] [INFO] xiaomusic.py:1846: group_player_play http://192.168.0.3:8090/music/download/ARE YOU OK.mp3 ['9fcc3636-3b8e-4309-a430-7eb8978d94f4'] [{'code': 0, 'message': "Msg has been successfully proxy to the device, this service is a simple proxy, if you encounter any problems pls contact ROM's developers directly!!!", 'data': {'code': 0}}] [2024-12-20 15:43:18] [0.3.61] [INFO] xiaomusic.py:1608: 【ARE YOU OK】已经开始播放了 [15:43:18] [0.3.61] [INFO] 192.168.0.11:33302 - "GET /music/download/ARE%20YOU%20OK.mp3 HTTP/1.1" 206 [15:43:18] [0.3.61] [INFO] 192.168.0.11:33303 - "GET /music/download/ARE%20YOU%20OK.mp3 HTTP/1.1" 206 [2024-12-20 15:43:20] [0.3.61] [ERROR] analytics.py:108: Execption Cannot connect to host umami.hanxi.cc:443 ssl:default [Connection reset by peer] Traceback (most recent call last): File "/app/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 1122, in _wrap_create_connection return await self._loop.create_connection(*args, **kwargs, sock=sock) File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1103, in create_connection transport, protocol = await self._create_connection_transport( File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1133, in _create_connection_transport await waiter File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 862, in _read_ready__data_received data = self._sock.recv(self.max_size) ConnectionResetError: [Errno 104] Connection reset by peer
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/app/xiaomusic/analytics.py", line 104, in post_to_umami async with session.post(url, json=data, headers=headers) as response: File "/app/.venv/lib/python3.10/site-packages/aiohttp/client.py", line 1425, in aenter self._resp: _RetType = await self._coro File "/app/.venv/lib/python3.10/site-packages/aiohttp/client.py", line 703, in _request conn = await self._connector.connect( File "/app/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 548, in connect proto = await self._create_connection(req, traces, timeout) File "/app/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 1056, in _create_connection _, proto = await self._create_direct_connection(req, traces, timeout) File "/app/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 1400, in _create_direct_connection raise last_exc File "/app/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 1369, in _create_direct_connection transp, proto = await self._wrap_create_connection( File "/app/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 1130, in _wrap_create_connection raise client_error(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host umami.hanxi.cc:443 ssl:default [Connection reset by peer] [2024-12-20 15:43:20] [0.3.61] [INFO] analytics.py:73: analytics run_with_cancel success [2024-12-20 15:43:20] [0.3.61] [INFO] xiaomusic.py:2012: cancel_next_timer [2024-12-20 15:43:20] [0.3.61] [INFO] xiaomusic.py:2018: 下一曲定时器不见了 [2024-12-20 15:43:20] [0.3.61] [INFO] xiaomusic.py:1936: 136 秒后将会播放下一首歌曲 [2024-12-20 15:43:20] [0.3.61] [INFO] xiaomusic.py:1307: save_cur_config ok [15:43:29] [0.3.61] [INFO] 192.168.0.67:8205 - "GET /playingmusic?did=108581258 HTTP/1.1" 200 [2024-12-20 15:43:57] [0.3.61] [INFO] xiaomusic.py:797: 收到消息:播放歌曲 控制面板:False did:108581258 [2024-12-20 15:43:57] [0.3.61] [INFO] xiaomusic.py:855: 完全匹配指令. query:播放歌曲 opvalue:play [2024-12-20 15:43:57] [0.3.61] [INFO] xiaomusic.py:414: try get_filename. filename:music/download/ARE YOU OK.mp3 [2024-12-20 15:43:57] [0.3.61] [INFO] xiaomusic.py:1465: play. search_key: name:ARE YOU OK [2024-12-20 15:43:57] [0.3.61] [INFO] xiaomusic.py:930: 根据【ARE YOU OK】找到歌曲【['ARE YOU OK']】 [2024-12-20 15:43:57] [0.3.61] [INFO] xiaomusic.py:1440: 没打乱 全部 ['周杰伦的晴天', '周杰伦稻香', '小猪佩奇的故事'] [2024-12-20 15:43:57] [0.3.61] [INFO] xiaomusic.py:2022: cancel_group_next_timer {'108581258': <xiaomusic.xiaomusic.XiaoMusicDevice object at 0x7f31cc6c3610>} [2024-12-20 15:43:57] [0.3.61] [INFO] xiaomusic.py:2012: cancel_next_timer [2024-12-20 15:43:57] [0.3.61] [INFO] xiaomusic.py:2015: 下一曲定时器已取消 9fcc3636-3b8e-4309-a430-7eb8978d94f4 [2024-12-20 15:43:57] [0.3.61] [INFO] xiaomusic.py:1589: cur_music ARE YOU OK [2024-12-20 15:43:57] [0.3.61] [INFO] xiaomusic.py:414: try get_filename. filename:music/download/ARE YOU OK.mp3 [2024-12-20 15:43:57] [0.3.61] [INFO] xiaomusic.py:524: get_music_url local music. name:ARE YOU OK, filename:download/ARE YOU OK.mp3 [2024-12-20 15:43:57] [0.3.61] [INFO] xiaomusic.py:445: get_music_sec_url. name:ARE YOU OK url:http://192.168.0.3:8090/music/download/ARE YOU OK.mp3 [2024-12-20 15:43:57] [0.3.61] [INFO] xiaomusic.py:414: try get_filename. filename:music/download/ARE YOU OK.mp3 [2024-12-20 15:43:57] [0.3.61] [INFO] xiaomusic.py:459: get_music_sec_url. name:ARE YOU OK filename:music/download/ARE YOU OK.mp3 [2024-12-20 15:43:57] [0.3.61] [INFO] xiaomusic.py:464: 本地歌曲 ARE YOU OK : music/download/ARE YOU OK.mp3 http://192.168.0.3:8090/music/download/ARE YOU OK.mp3 的时长 133 秒 [2024-12-20 15:43:57] [0.3.61] [INFO] xiaomusic.py:1989: group_force_stop_xiaoai ['9fcc3636-3b8e-4309-a430-7eb8978d94f4'] [2024-12-20 15:43:58] [0.3.61] [INFO] xiaomusic.py:1644: force_stop_xiaoai player_pause device_id:9fcc3636-3b8e-4309-a430-7eb8978d94f4 ret:{'code': 0, 'message': "Msg has been successfully proxy to the device, this service is a simple proxy, if you encounter any problems pls contact ROM's developers directly!!!", 'data': {'code': 0}} [2024-12-20 15:43:58] [0.3.61] [INFO] xiaomusic.py:1655: {'code': 0, 'message': "Msg has been successfully proxy to the device, this service is a simple proxy, if you encounter any problems pls contact ROM's developers directly!!!", 'data': {'code': 0, 'info': '{ "status": 1, "volume": 50, "loop_type": 1 }'}} [2024-12-20 15:43:58] [0.3.61] [INFO] xiaomusic.py:1668: stop_if_xiaoai_is_playing player_stop device_id:9fcc3636-3b8e-4309-a430-7eb8978d94f4 enable_force_stop:False ret:{'code': 0, 'message': "Msg has been successfully proxy to the device, this service is a simple proxy, if you encounter any problems pls contact ROM's developers directly!!!", 'data': {'code': 0}} [2024-12-20 15:43:58] [0.3.61] [INFO] xiaomusic.py:1992: group_force_stop_xiaoai ['9fcc3636-3b8e-4309-a430-7eb8978d94f4'] [None] [2024-12-20 15:43:58] [0.3.61] [INFO] xiaomusic.py:1592: 播放 http://192.168.0.3:8090/music/download/ARE YOU OK.mp3 [15:43:58] [0.3.61] [INFO] 192.168.0.11:33306 - "GET /music/download/ARE%20YOU%20OK.mp3 HTTP/1.1" 206 [2024-12-20 15:43:58] [0.3.61] [INFO] xiaomusic.py:1871: play_one_url play_by_url device_id:9fcc3636-3b8e-4309-a430-7eb8978d94f4 ret:{'code': 0, 'message': "Msg has been successfully proxy to the device, this service is a simple proxy, if you encounter any problems pls contact ROM's developers directly!!!", 'data': {'code': 0}} url:http://192.168.0.3:8090/music/download/ARE YOU OK.mp3 [2024-12-20 15:43:58] [0.3.61] [INFO] xiaomusic.py:1846: group_player_play http://192.168.0.3:8090/music/download/ARE YOU OK.mp3 ['9fcc3636-3b8e-4309-a430-7eb8978d94f4'] [{'code': 0, 'message': "Msg has been successfully proxy to the device, this service is a simple proxy, if you encounter any problems pls contact ROM's developers directly!!!", 'data': {'code': 0}}] [2024-12-20 15:43:58] [0.3.61] [INFO] xiaomusic.py:1608: 【ARE YOU OK】已经开始播放了 [15:43:58] [0.3.61] [INFO] 192.168.0.11:33307 - "GET /music/download/ARE%20YOU%20OK.mp3 HTTP/1.1" 206 [15:43:58] [0.3.61] [INFO] 192.168.0.11:33308 - "GET /music/download/ARE%20YOU%20OK.mp3 HTTP/1.1" 206 [2024-12-20 15:44:00] [0.3.61] [ERROR] analytics.py:108: Execption Cannot connect to host umami.hanxi.cc:443 ssl:default [Connection reset by peer] Traceback (most recent call last): File "/app/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 1122, in _wrap_create_connection return await self._loop.create_connection(*args, **kwargs, sock=sock) File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1103, in create_connection transport, protocol = await self._create_connection_transport( File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1133, in _create_connection_transport await waiter File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 862, in _read_ready__data_received data = self._sock.recv(self.max_size) ConnectionResetError: [Errno 104] Connection reset by peer
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/app/xiaomusic/analytics.py", line 104, in post_to_umami async with session.post(url, json=data, headers=headers) as response: File "/app/.venv/lib/python3.10/site-packages/aiohttp/client.py", line 1425, in aenter self._resp: _RetType = await self._coro File "/app/.venv/lib/python3.10/site-packages/aiohttp/client.py", line 703, in _request conn = await self._connector.connect( File "/app/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 548, in connect proto = await self._create_connection(req, traces, timeout) File "/app/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 1056, in _create_connection _, proto = await self._create_direct_connection(req, traces, timeout) File "/app/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 1400, in _create_direct_connection raise last_exc File "/app/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 1369, in _create_direct_connection transp, proto = await self._wrap_create_connection( File "/app/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 1130, in _wrap_create_connection raise client_error(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host umami.hanxi.cc:443 ssl:default [Connection reset by peer] [2024-12-20 15:44:00] [0.3.61] [INFO] analytics.py:73: analytics run_with_cancel success [2024-12-20 15:44:00] [0.3.61] [INFO] xiaomusic.py:2012: cancel_next_timer [2024-12-20 15:44:00] [0.3.61] [INFO] xiaomusic.py:2018: 下一曲定时器不见了 [2024-12-20 15:44:00] [0.3.61] [INFO] xiaomusic.py:1936: 136 秒后将会播放下一首歌曲 [2024-12-20 15:44:00] [0.3.61] [INFO] xiaomusic.py:1307: save_cur_config ok [15:44:29] [0.3.61] [INFO] 192.168.0.67:8252 - "GET /playingmusic?did=108581258 HTTP/1.1" 200 [2024-12-20 15:44:36] [0.3.61] [INFO] xiaomusic.py:797: 收到消息:播放歌曲周杰伦的搁浅 控制面板:False did:108581258 [2024-12-20 15:44:36] [0.3.61] [INFO] xiaomusic.py:893: 匹配到指令. opkey:播放歌曲 opvalue:play oparg:周杰伦的搁浅 [2024-12-20 15:44:36] [0.3.61] [INFO] xiaomusic.py:1465: play. search_key:周杰伦的搁浅 name:周杰伦的搁浅 [2024-12-20 15:44:36] [0.3.61] [INFO] xiaomusic.py:930: 根据【周杰伦的搁浅】找到歌曲【['周杰伦的晴天']】 [2024-12-20 15:44:36] [0.3.61] [INFO] xiaomusic.py:1440: 没打乱 最近新增 ['周杰伦的晴天', '周杰伦稻香', '小猪佩奇的故事'] [2024-12-20 15:44:36] [0.3.61] [INFO] xiaomusic.py:2022: cancel_group_next_timer {'108581258': <xiaomusic.xiaomusic.XiaoMusicDevice object at 0x7f31cc6c3610>} [2024-12-20 15:44:36] [0.3.61] [INFO] xiaomusic.py:2012: cancel_next_timer [2024-12-20 15:44:36] [0.3.61] [INFO] xiaomusic.py:2015: 下一曲定时器已取消 9fcc3636-3b8e-4309-a430-7eb8978d94f4 [2024-12-20 15:44:36] [0.3.61] [INFO] xiaomusic.py:1589: cur_music 周杰伦的晴天 [2024-12-20 15:44:36] [0.3.61] [INFO] xiaomusic.py:414: try get_filename. filename:music/download/周杰伦的晴天.mp3 [2024-12-20 15:44:36] [0.3.61] [INFO] xiaomusic.py:524: get_music_url local music. name:周杰伦的晴天, filename:download/周杰伦的晴天.mp3 [2024-12-20 15:44:36] [0.3.61] [INFO] xiaomusic.py:445: get_music_sec_url. name:周杰伦的晴天 url:http://192.168.0.3:8090/music/download/周杰伦的晴天.mp3 [2024-12-20 15:44:36] [0.3.61] [INFO] xiaomusic.py:414: try get_filename. filename:music/download/周杰伦的晴天.mp3 [2024-12-20 15:44:36] [0.3.61] [INFO] xiaomusic.py:459: get_music_sec_url. name:周杰伦的晴天 filename:music/download/周杰伦的晴天.mp3 [2024-12-20 15:44:36] [0.3.61] [INFO] xiaomusic.py:464: 本地歌曲 周杰伦的晴天 : music/download/周杰伦的晴天.mp3 http://192.168.0.3:8090/music/download/周杰伦的晴天.mp3 的时长 318 秒 [2024-12-20 15:44:36] [0.3.61] [INFO] xiaomusic.py:1989: group_force_stop_xiaoai ['9fcc3636-3b8e-4309-a430-7eb8978d94f4'] [2024-12-20 15:44:36] [0.3.61] [INFO] xiaomusic.py:1644: force_stop_xiaoai player_pause device_id:9fcc3636-3b8e-4309-a430-7eb8978d94f4 ret:{'code': 0, 'message': "Msg has been successfully proxy to the device, this service is a simple proxy, if you encounter any problems pls contact ROM's developers directly!!!", 'data': {'code': 0}} [2024-12-20 15:44:36] [0.3.61] [INFO] xiaomusic.py:1655: {'code': 0, 'message': "Msg has been successfully proxy to the device, this service is a simple proxy, if you encounter any problems pls contact ROM's developers directly!!!", 'data': {'code': 0, 'info': '{ "status": 1, "volume": 50, "loop_type": 1 }'}} [2024-12-20 15:44:37] [0.3.61] [INFO] xiaomusic.py:1668: stop_if_xiaoai_is_playing player_stop device_id:9fcc3636-3b8e-4309-a430-7eb8978d94f4 enable_force_stop:False ret:{'code': 0, 'message': "Msg has been successfully proxy to the device, this service is a simple proxy, if you encounter any problems pls contact ROM's developers directly!!!", 'data': {'code': 0}} [2024-12-20 15:44:37] [0.3.61] [INFO] xiaomusic.py:1992: group_force_stop_xiaoai ['9fcc3636-3b8e-4309-a430-7eb8978d94f4'] [None] [2024-12-20 15:44:37] [0.3.61] [INFO] xiaomusic.py:1592: 播放 http://192.168.0.3:8090/music/download/周杰伦的晴天.mp3 [2024-12-20 15:44:37] [0.3.61] [INFO] xiaomusic.py:1871: play_one_url play_by_url device_id:9fcc3636-3b8e-4309-a430-7eb8978d94f4 ret:{'code': 0, 'message': "Msg has been successfully proxy to the device, this service is a simple proxy, if you encounter any problems pls contact ROM's developers directly!!!", 'data': {'code': 0}} url:http://192.168.0.3:8090/music/download/周杰伦的晴天.mp3 [2024-12-20 15:44:37] [0.3.61] [INFO] xiaomusic.py:1846: group_player_play http://192.168.0.3:8090/music/download/周杰伦的晴天.mp3 ['9fcc3636-3b8e-4309-a430-7eb8978d94f4'] [{'code': 0, 'message': "Msg has been successfully proxy to the device, this service is a simple proxy, if you encounter any problems pls contact ROM's developers directly!!!", 'data': {'code': 0}}] [2024-12-20 15:44:37] [0.3.61] [INFO] xiaomusic.py:1608: 【周杰伦的晴天】已经开始播放了 [15:44:37] [0.3.61] [INFO] 192.168.0.11:33311 - "GET /music/download/%E5%91%A8%E6%9D%B0%E4%BC%A6%E7%9A%84%E6%99%B4%E5%A4%A9.mp3 HTTP/1.1" 206 [15:44:37] [0.3.61] [INFO] 192.168.0.11:33312 - "GET /music/download/%E5%91%A8%E6%9D%B0%E4%BC%A6%E7%9A%84%E6%99%B4%E5%A4%A9.mp3 HTTP/1.1" 206 [15:44:37] [0.3.61] [INFO] 192.168.0.11:33313 - "GET /music/download/%E5%91%A8%E6%9D%B0%E4%BC%A6%E7%9A%84%E6%99%B4%E5%A4%A9.mp3 HTTP/1.1" 206 [2024-12-20 15:44:38] [0.3.61] [ERROR] analytics.py:108: Execption Cannot connect to host umami.hanxi.cc:443 ssl:default [Connection reset by peer] Traceback (most recent call last): File "/app/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 1122, in _wrap_create_connection return await self._loop.create_connection(*args, **kwargs, sock=sock) File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1103, in create_connection transport, protocol = await self._create_connection_transport( File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1133, in _create_connection_transport await waiter File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 862, in _read_ready__data_received data = self._sock.recv(self.max_size) ConnectionResetError: [Errno 104] Connection reset by peer
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/app/xiaomusic/analytics.py", line 104, in post_to_umami async with session.post(url, json=data, headers=headers) as response: File "/app/.venv/lib/python3.10/site-packages/aiohttp/client.py", line 1425, in aenter self._resp: _RetType = await self._coro File "/app/.venv/lib/python3.10/site-packages/aiohttp/client.py", line 703, in _request conn = await self._connector.connect( File "/app/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 548, in connect proto = await self._create_connection(req, traces, timeout) File "/app/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 1056, in _create_connection _, proto = await self._create_direct_connection(req, traces, timeout) File "/app/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 1400, in _create_direct_connection raise last_exc File "/app/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 1369, in _create_direct_connection transp, proto = await self._wrap_create_connection( File "/app/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 1130, in _wrap_create_connection raise client_error(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host umami.hanxi.cc:443 ssl:default [Connection reset by peer] [2024-12-20 15:44:38] [0.3.61] [INFO] analytics.py:73: analytics run_with_cancel success [2024-12-20 15:44:38] [0.3.61] [INFO] xiaomusic.py:2012: cancel_next_timer [2024-12-20 15:44:38] [0.3.61] [INFO] xiaomusic.py:2018: 下一曲定时器不见了 [2024-12-20 15:44:38] [0.3.61] [INFO] xiaomusic.py:1936: 321 秒后将会播放下一首歌曲 [2024-12-20 15:44:38] [0.3.61] [INFO] xiaomusic.py:1307: save_cur_config ok [15:45:29] [0.3.61] [INFO] 192.168.0.67:8295 - "GET /playingmusic?did=108581258 HTTP/1.1" 200 [15:46:29] [0.3.61] [INFO] 192.168.0.67:8386 - "GET /playingmusic?did=108581258 HTTP/1.1" 200 [15:46:58] [0.3.61] [INFO] 192.168.0.67:8473 - "GET /getsetting HTTP/1.1" 200 [15:46:58] [0.3.61] [INFO] 192.168.0.67:8472 - "GET /getversion HTTP/1.1" 200 [15:46:58] [0.3.61] [INFO] 192.168.0.67:8473 - "GET /musiclist HTTP/1.1" 200 [15:46:58] [0.3.61] [INFO] 192.168.0.67:8473 - "GET /curplaylist?did=108581258 HTTP/1.1" 200 [15:46:58] [0.3.61] [INFO] 192.168.0.67:8479 - "GET /playingmusic?did=108581258 HTTP/1.1" 200 [2024-12-20 15:46:59] [0.3.61] [INFO] xiaomusic.py:1951: get_volume. playing_info:{'code': 0, 'message': "Msg has been successfully proxy to the device, this service is a simple proxy, if you encounter any problems pls contact ROM's developers directly!!!", 'data': {'code': 0, 'info': '{ "status": 1, "volume": 50, "loop_type": 1 }'}} [2024-12-20 15:46:59] [0.3.61] [INFO] xiaomusic.py:1958: get_volume. volume:50 [15:46:59] [0.3.61] [INFO] 192.168.0.67:8472 - "GET /getvolume?did=108581258 HTTP/1.1" 200 [15:46:59] [0.3.61] [INFO] 192.168.0.67:8478 - "GET /latestversion HTTP/1.1" 200 [15:47:01] [0.3.61] [INFO] 192.168.0.67:8478 - "GET /playingmusic?did=108581258 HTTP/1.1" 200 [15:47:04] [0.3.61] [INFO] 192.168.0.67:8478 - "GET /playingmusic?did=108581258 HTTP/1.1" 200 [15:47:05] [0.3.61] [INFO] 192.168.0.67:8478 - "GET /playingmusic?did=108581258 HTTP/1.1" 200 [15:47:07] [0.3.61] [INFO] 192.168.0.67:8478 - "GET /playingmusic?did=108581258 HTTP/1.1" 200 [15:47:10] [0.3.61] [INFO] 192.168.0.67:8478 - "GET /playingmusic?did=108581258 HTTP/1.1" 200 [15:47:12] [0.3.61] [INFO] 192.168.0.67:8478 - "GET /getversion HTTP/1.1" 200 #