74 lines
70 KiB
JavaScript
74 lines
70 KiB
JavaScript
![]() |
import{_ as t,c as e,a0 as s,o as i}from"./chunks/framework.p2VkXzrt.js";const d=JSON.parse('{"title":"💬 FAQ问题集合","description":"","frontmatter":{"title":"💬 FAQ问题集合"},"headers":[],"relativePath":"issues/99.md","filePath":"issues/99.md","lastUpdated":null}'),o={name:"issues/99.md"};function n(l,a,p,c,r,u){return i(),e("div",null,a[0]||(a[0]=[s(`<h1 id="💬-faq问题集合" tabindex="-1">💬 FAQ问题集合 <a class="header-anchor" href="#💬-faq问题集合" aria-label="Permalink to "💬 FAQ问题集合"" target="_self"></a></h1><div class="note custom-block github-alert"><p class="custom-block-title">NOTE</p><p>这个 issue 用来总结报错日志和对应的解决方法。</p></div><h2 id="❓-xiaomusic-hostname-怎么填" tabindex="-1">❓ XIAOMUSIC_HOSTNAME 怎么填 <a class="header-anchor" href="#❓-xiaomusic-hostname-怎么填" aria-label="Permalink to "❓ XIAOMUSIC_HOSTNAME 怎么填"" target="_self"></a></h2><p>填写 docker 主机的 ip ,<strong>不是小爱音箱的ip</strong>,一般就是网页访问的后台地址里的 ip ,只要确保 ip 和小爱音箱在一个局域网内就行。</p><p>同时也支持 xx.xx.com 的域名格式,用于配置反代供外网访问,比如小爱音箱和 docker 主机不在同一个局域网内。</p><h2 id="❓-login-failed-登陆失败" tabindex="-1">❓ Login Failed 登陆失败 <a class="header-anchor" href="#❓-login-failed-登陆失败" aria-label="Permalink to "❓ Login Failed 登陆失败"" target="_self"></a></h2><p>表现就是 <strong>后台看不到设备列表</strong> ,日志中会有对应的报错。</p><p>这个有专门的讨论,见 </issues/16.html> ,一般是因为开了加速代理,关代理再尝试即可。也可以试试在局域网设备里的米家app上退出再重新登录一下。</p><p>在小米官网 www.mi.com 登陆过人脸或滑块验证基本上能解决 99%的 login failed 问题。</p><p>来自 @yilikun 的友情提示:</p><blockquote><ol><li>关闭本地代理。</li><li>如果是nas运行的,网络由bridge改为host。</li><li>米家app重新登陆。</li><li>mi.com官网重新登陆。</li></ol></blockquote><h2 id="❓-网页后台可以播放-语音控制无效" tabindex="-1">❓ 网页后台可以播放,语音控制无效 <a class="header-anchor" href="#❓-网页后台可以播放-语音控制无效" aria-label="Permalink to "❓ 网页后台可以播放,语音控制无效"" target="_self"></a></h2><p>这种情况是拉取不到对话记录导致的。 如果是首次在网页后台保存 did 后需要重启一次容器。 其他情况可能是被限制拉取对话记录次数,也可以尝试重启容器。 还有一种情况是配错了唤醒口令,可以在小爱音箱app里查看对话记录,也可以查看 xiaomusic 的日志。默认口令前缀是【播放歌曲】,没有这个前缀是无法识别的,说播放音乐是没用的,除非自己设置其他口令词。 已知 <code>M01/XMYX01JY 小米小爱音箱HD</code> 获取对话记录的接口比较特殊,需要开启【特殊型号获取对话记录:】开关才能正常语音控制。</p><h2 id="❓-日志显示正在播放-却没有声音" tabindex="-1">❓ 日志显示正在播放,却没有声音 <a class="header-anchor" href="#❓-日志显示正在播放-却没有声音" aria-label="Permalink to "❓ 日志显示正在播放,却没有声音"" target="_self"></a></h2><p>可以点击播放链接按钮,看看默认的那个链接能否播放。</p><p>已知部分触屏版不能播放可以在后台设置 【型号兼容模式】为 true 试试。</p><p>其他情况可能是 XIAOMUSIC_HOSTNAME 配错了地址,不是 docker 主机地址会导致小爱音箱无法访问到,而且需要和小爱音箱在同一个<strong>局域网</strong>下的地址。还有可能是端口配错了,<strong>修改了默认 8090 端口映射</strong>,需要同步修改其他参数,可以翻阅端口修改的文档。</p><p>如果端<E69E9C>
|
|||
|
<span class="line"><span>docker tag m.daocloud.io/docker.io/hanxi/xiaomusic:latest hanxi/xiaomusic:latest</span></span></code></pre></div><h2 id="❓-启动失败-日志中出现-runtimeerror-can-t-start-new-thread" tabindex="-1">❓ 启动失败,日志中出现 RuntimeError: can't start new thread <a class="header-anchor" href="#❓-启动失败-日志中出现-runtimeerror-can-t-start-new-thread" aria-label="Permalink to "❓ 启动失败,日志中出现 RuntimeError: can't start new thread"" target="_self"></a></h2><p>一般是 docker 版本太低,或者系统限制了 docker 使用的 cpu 数量,可以尝试升级 docker 到最新版本。</p><h2 id="❓-dns-解析错误" tabindex="-1">❓ DNS 解析错误 <a class="header-anchor" href="#❓-dns-解析错误" aria-label="Permalink to "❓ DNS 解析错误"" target="_self"></a></h2><p>一般会出现下面这样的日志,表现就是设置页面看不到设备列表。</p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>aiohttp.client_ _exceptions. ClientConnectorError: Cannot connect to host account.xiaomi.com:443 ssl:False [Temporary failure in name resolution]</span></span></code></pre></div><p>可以尝试把主机的 DNS 设为 223.5.5.5 之后重启 docker 主机。</p><p>如果还是不行可以把 docker 的网络模式改成 host 模式。</p><h2 id="❓-点击播放后需要很久才开始播放的问题" tabindex="-1">❓ 点击播放后需要很久才开始播放的问题 <a class="header-anchor" href="#❓-点击播放后需要很久才开始播放的问题" aria-label="Permalink to "❓ 点击播放后需要很久才开始播放的问题"" target="_self"></a></h2><p>这个问题新版本已经解决,如果还存在请反馈。</p><p>~目前0.3.x版本还存在这个问题没有完全解决,可以暂时回退到0.2.0版本继续使用。~</p><h2 id="❓-如何配置多个歌曲目录" tabindex="-1">❓ 如何配置多个歌曲目录 <a class="header-anchor" href="#❓-如何配置多个歌曲目录" aria-label="Permalink to "❓ 如何配置多个歌曲目录"" target="_self"></a></h2><div class="language-yaml vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">yaml</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">services</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">:</span></span>
|
|||
|
<span class="line"><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;"> xiaomusic</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">:</span></span>
|
|||
|
<span class="line"><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;"> image</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">hanxi/xiaomusic</span></span>
|
|||
|
<span class="line"><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;"> container_name</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">xiaomusic</span></span>
|
|||
|
<span class="line"><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;"> restart</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">unless-stopped</span></span>
|
|||
|
<span class="line"><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;"> ports</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">:</span></span>
|
|||
|
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> - </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">8090:8090</span></span>
|
|||
|
<span class="line"><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;"> volumes</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">:</span></span>
|
|||
|
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> - </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">/data/music1:/app/music/music1</span></span>
|
|||
|
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> - </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">/data/music2:/app/music/music2</span></span>
|
|||
|
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> - </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">/data/xiaomusic/conf:/app/conf</span></span></code></pre></div><p>冒号左边的 <code>/data/music1</code> 和 <code>/data/music2</code> 改成你的目录即可。如果你是 windows 的 docker ,可以改成 <code>D:/music1</code> 和 <code>D:/music2</code>,盘符号开头,用 <code>/</code> 分割。</p><p>如果是 docker 部署的,建议不要去修改 web 后台里的音乐路径和配置路径等等所有路径除非你熟悉 docker 的目录映射机制。</p><h2 id="❓-能不能中文名" tabindex="-1">❓ 能不能中文名 <a class="header-anchor" href="#❓-能不能中文名" aria-label="Permalink to "❓ 能不能中文名"" target="_self"></a></h2><div class="language-yaml vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">yaml</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">services</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">:</span></span>
|
|||
|
<span class="line"><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;"> xiaomusic</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">:</span></span>
|
|||
|
<span class="line"><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;"> image</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">hanxi/xiaomusic</span></span>
|
|||
|
<span class="line"><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;"> container_name</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">xiaomusic</span></span>
|
|||
|
<span class="line"><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;"> restart</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">unless-stopped</span></span>
|
|||
|
<span class="line"><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;"> ports</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">:</span></span>
|
|||
|
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> - </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">8090:8090</span></span>
|
|||
|
<span class="line"><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;"> volumes</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">:</span></span>
|
|||
|
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> - </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">/data/music1:/app/music/歌曲目录1</span></span>
|
|||
|
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> - </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">/data/music2:/app/music/歌曲目录2</span></span>
|
|||
|
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> - </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">/data/xiaomusic/conf:/app/conf</span></span></code></pre></div><h2 id="❓-能不能多层目录" tabindex="-1">❓ 能不能多层目录 <a class="header-anchor" href="#❓-能不能多层目录" aria-label="Permalink to "❓ 能不能多层目录"" target="_self"></a></h2><p>可以,每层的每个目录会识别为一个播放列表。</p><h2 id="❓-是否需要手动获取-did" tabindex="-1">❓ 是否需要手动获取 did <a class="header-anchor" href="#❓-是否需要手动获取-did" aria-label="Permalink to "❓ 是否需要手动获取 did"" target="_self"></a></h2><p>新版本不需要手动获取配置 did,不需要配置环境变量,直接在 web 后台填入小米账号密码保存后会自动获取到 did ,然后勾选对应的设备即可。</p><h2 id="❓-报错-601" tabindex="-1">❓ 报错 601 <a class="header-anchor" href="#❓-报错-601" aria-label="Permalink to "❓ 报错 601"" target="_self"></a></h2><p>报错日志大致如下:</p><div class="language-txt vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">txt</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>Exception: Error https://api2.mina.mi.com/remote/ubus: {"code":601,"message":"illegal argument exception","data":"IllegalArgumentException: ubus call format illegal!"}</span></span></code></pre></div><p>原因是没有配置 did ,或者 did 配置错误。可以到设置页面选择正确的设备类型和 did 然后保存。</p><h2 id="❓-新功能没有生效" tabindex="-1">❓ 新功能没有生效 <a class="header-anchor" href="#❓-新功能没有生效" aria-label="Permalink to "❓ 新功能没有生效"" target="_self"></a></h2><p>在设置页面重新保存一下,或者删除 setting.json 文件,重新在后台设置一次。</p><h2 id="❓-为什么会先说小爱音箱自带的回答-再说下载中或者过一会儿才播放本地歌曲" tabindex="-1">❓ 为什么会先说小爱音箱自带的回答,再说下载中或者过一会儿才播放本地歌曲 <a class="header-anchor" href="#❓-为什么会先说小爱音箱自带的回答-再说下载中或者过一会儿才播放本地歌曲" aria-label="Permalink to "❓ 为什么会先说小爱音箱自带的回答,再说下载中或者过一会儿才播放本地歌曲"" target="_self"></a></h2><p>设计原理就是每秒不停的抓取对话记录,然后再打断小爱音箱自带的处理流程。整个过程下来会有延时,所以打断不会很及时,做不到无缝衔接。</p><h2 id="评论" tabindex="-1">评论 <a class="header-anchor" href="#评论" aria-label="Permalink to "评论"" target="_self"></a></h2><h3 id="评论-1-shissx" tabindex="-1">评论 1 - shissx <a class="header-anchor" href="#评论-1-shissx" aria-label="Permalink to "评论 1 - shissx"" target="_self"></a></h3><p>安装的最新版本,即使没有使用,日志一直在不停的刷新,示例: [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</p><p>之前的版本没有这个问题,这个是设置错误?还是本来就如此呢?</p><hr><h3 id="评论-2-hanxi" tabindex="-1">评论 2 - hanxi <a class="header-anchor" href="#评论-2-hanxi" aria-label="Permalink to "评论 2 - hanxi"" target="_self"></a></h3><blockquote><p>安装的最新版本,即使没有使用,日志一直在不停的刷新,示例: [10:20:36] [0.1.101] [DEBUG] Polling_event, timestamp: {&
|
|||
|
<span class="line"><span>2024/11/21 19:27:00 [--enable_config_example]</span></span>
|
|||
|
<span class="line"><span>2024/11/21 19:27:00 [--ffmpeg_location FFMPEG_LOCATION]</span></span>
|
|||
|
<span class="line"><span>2024/11/21 19:27:00 [--config CONFIG]</span></span>
|
|||
|
<span class="line"><span>2024/11/21 19:27:00 [--verbose]</span></span>
|
|||
|
<span class="line"><span>2024/11/21 19:27:00 [--cookie COOKIE]</span></span>
|
|||
|
<span class="line"><span>2024/11/21 19:27:00 [--password PASSWORD]</span></span>
|
|||
|
<span class="line"><span>2024/11/21 19:27:00 [--account ACCOUNT]</span></span>
|
|||
|
<span class="line"><span>2024/11/21 19:27:00 [--hardware HARDWARE]</span></span>
|
|||
|
<span class="line"><span>2024/11/21 19:27:00 [--port PORT]</span></span>
|
|||
|
<span class="line"><span>2024/11/21 19:27:00 [-h]</span></span>
|
|||
|
<span class="line"><span>2024/11/21 19:27:00 usage: xiaomusic.py</span></span></code></pre></div><hr><h3 id="评论-32-hanxi" tabindex="-1">评论 32 - hanxi <a class="header-anchor" href="#评论-32-hanxi" aria-label="Permalink to "评论 32 - hanxi"" target="_self"></a></h3><blockquote><p>运行时遇到下面问题,请问要怎么排查?</p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>2024/11/21 19:27:00 xiaomusic.py: error: unrecognized arguments: .venv/bin/python3 xiaomusic.py</span></span>
|
|||
|
<span class="line"><span>2024/11/21 19:27:00 [--enable_config_example]</span></span>
|
|||
|
<span class="line"><span>2024/11/21 19:27:00 [--ffmpeg_location FFMPEG_LOCATION]</span></span>
|
|||
|
<span class="line"><span>2024/11/21 19:27:00 [--config CONFIG]</span></span>
|
|||
|
<span class="line"><span>2024/11/21 19:27:00 [--verbose]</span></span>
|
|||
|
<span class="line"><span>2024/11/21 19:27:00 [--cookie COOKIE]</span></span>
|
|||
|
<span class="line"><span>2024/11/21 19:27:00 [--password PASSWORD]</span></span>
|
|||
|
<span class="line"><span>2024/11/21 19:27:00 [--account ACCOUNT]</span></span>
|
|||
|
<span class="line"><span>2024/11/21 19:27:00 [--hardware HARDWARE]</span></span>
|
|||
|
<span class="line"><span>2024/11/21 19:27:00 [--port PORT]</span></span>
|
|||
|
<span class="line"><span>2024/11/21 19:27:00 [-h]</span></span>
|
|||
|
<span class="line"><span>2024/11/21 19:27:00 usage: xiaomusic.py</span></span></code></pre></div></blockquote><p>看不出来</p><hr><h3 id="评论-33-sinojelly" tabindex="-1">评论 33 - sinojelly <a class="header-anchor" href="#评论-33-sinojelly" aria-label="Permalink to "评论 33 - sinojelly"" target="_self"></a></h3><p>请问登录验证失败要怎么定位?小米登录邮箱,还是小米id 都报同样的错。</p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>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</span></span>
|
|||
|
<span class="line"><span>2024/11/25 0:50:44 Exception: Error https://api2.mina.mi.com/admin/v2/device_list?master=0&requestId=app_ios_: Login failed</span></span>
|
|||
|
<span class="line"><span>2024/11/25 0:50:44 raise Exception(f"Error {url}: {resp}")</span></span>
|
|||
|
<span class="line"><span>2024/11/25 0:50:44 File "/app/.venv/lib/python3.10/site-packages/miservice/miaccount.py", line 150, in mi_request</span></span>
|
|||
|
<span class="line"><span>2024/11/25 0:50:44 return await self.account.mi_request(</span></span>
|
|||
|
<span class="line"><span>2024/11/25 0:50:44 File "/app/.venv/lib/python3.10/site-packages/miservice/minaservice.py", line 49, in mina_request</span></span>
|
|||
|
<span class="line"><span>2024/11/25 0:50:44 result = await self.mina_request("/admin/v2/device_list?master=" + str(master))</span></span>
|
|||
|
<span class="line"><span>2024/11/25 0:50:44 File "/app/.venv/lib/python3.10/site-packages/miservice/minaservice.py", line 54, in device_list</span></span>
|
|||
|
<span class="line"><span>2024/11/25 0:50:44 hardware_data = await self.mina_service.device_list()</span></span>
|
|||
|
<span class="line"><span>2024/11/25 0:50:44 File "/app/xiaomusic/xiaomusic.py", line 232, in try_update_device_id</span></span>
|
|||
|
<span class="line"><span>2024/11/25 0:50:44 Traceback (most recent call last):</span></span>
|
|||
|
<span class="line"><span>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</span></span>
|
|||
|
<span class="line"><span>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': '登录验证失败'}</span></span>
|
|||
|
<span class="line"><span>2024/11/25 0:50:44 raise Exception(resp)</span></span>
|
|||
|
<span class="line"><span>2024/11/25 0:50:44 File "/app/.venv/lib/python3.10/site-packages/miservice/miaccount.py", line 69, in login</span></span></code></pre></div><hr><h3 id="评论-34-hanxi" tabindex="-1">评论 34 - hanxi <a class="header-anchor" href="#评论-34-hanxi" aria-label="Permalink to "评论 34 - hanxi"" target="_self"></a></h3><blockquote><p>请问登录验证失败要怎么定位?小米登录邮箱,还是小米id 都报同样的错。</p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>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</span></span>
|
|||
|
<span class="line"><span>2024/11/25 0:50:44 Exception: Error https://api2.mina.mi.com/admin/v2/device_list?master=0&requestId=app_ios_: Login failed</span></span>
|
|||
|
<span class="line"><span>2024/11/25 0:50:44 raise Exception(f"Error {url}: {resp}")</span></span>
|
|||
|
<span class="line"><span>2024/11/25 0:50:44 File "/app/.venv/lib/python3.10/site-packages/miservice/miaccount.py", line 150, in mi_request</span></span>
|
|||
|
<span class="line"><span>2024/11/25 0:50:44 return await self.account.mi_request(</span></span>
|
|||
|
<span class="line"><span>2024/11/25 0:50:44 File "/app/.venv/lib/python3.10/site-packages/miservice/minaservice.py", line 49, in mina_request</span></span>
|
|||
|
<span class="line"><span>2024/11/25 0:50:44 result = await self.mina_request("/admin/v2/device_list?master=" + str(master))</span></span>
|
|||
|
<span class="line"><span>2024/11/25 0:50:44 File "/app/.venv/lib/python3.10/site-packages/miservice/minaservice.py", line 54, in device_list</span></span>
|
|||
|
<span class="line"><span>2024/11/25 0:50:44 hardware_data = await self.mina_service.device_list()</span></span>
|
|||
|
<span class="line"><span>2024/11/25 0:50:44 File "/app/xiaomusic/xiaomusic.py", line 232, in try_update_device_id</span></span>
|
|||
|
<span class="line"><span>2024/11/25 0:50:44 Traceback (most recent call last):</span></span>
|
|||
|
<span class="line"><span>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</span></span>
|
|||
|
<span class="line"><span>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': '登录验证失败'}</span></span>
|
|||
|
<span class="line"><span>2024/11/25 0:50:44 raise Exception(resp)</span></span>
|
|||
|
<span class="line"><span>2024/11/25 0:50:44 File "/app/.venv/lib/python3.10/site-packages/miservice/miaccount.py", line 69, in login</span></span></code></pre></div></blockquote><p>上面给出了4个办法都试过了吗?局域网登陆mi.com了?</p><hr><h3 id="评论-35-wusemao" tabindex="-1">评论 35 - wusemao <a class="header-anchor" href="#评论-35-wusemao" aria-label="Permalink to "评论 35 - wusemao"" target="_self"></a></h3><p>设置web访问登录时,账号密码设置完之后登不进去了,账号名称用的中文的可以么</p><hr><h3 id="评论-36-hanxi" tabindex="-1">评论 36 - hanxi <a class="header-anchor" href="#评论-36-hanxi" aria-label="Permalink to "评论 36 - hanxi"" target="_self"></a></h3><blockquote><p>设置web访问登录时,账号密码设置完之后登不进去了,账号名称用的中文的可以么</p></blockquote><p>不确定是否可以,你可以考虑setting.json里的内容,不行就修改再重启。</p><hr><h3 id="评论-37-quanmao" tabindex="-1">评论 37 - quanmao <a class="header-anchor" href="#评论-37-quanmao" aria-label="Permalink to "评论 37 - quanmao"" target="_self"></a></h3><p>运行后会在音乐目录下生成一个tmp文件夹,如何指定路径,因为还有其应用访问音乐路径,不希望其识别tmp目录下的音乐。</p><hr><h3 id="评论-38-hanxi" tabindex="-1">评论 38 - hanxi <a class="header-anchor" href="#评论-38-hanxi" aria-label="Permalink to "评论 38 - hanxi"" target="_self"></a></h3><blockquote><p>运行后会在音乐目录下生成一个tmp文件夹,如何指定路径,因为还有其应用访问音乐路径,不希望其识别tmp目录下的音乐。</p></blockquote><p>忽略目录(逗号分割) 改成 <code>@eaDir,tmp</code> 即可。</p><hr><h3 id="评论-39-quanmao" tabindex="-1">评论 39 - quanmao <a class="header-anchor" href="#评论-39-quanmao" aria-label="Permalink to "评论 39 - quanmao"" target="_self"></a></h3><blockquote><blockquote><p>运行后会在音乐目录下生成一个tmp文件夹,如何指定路径,因为还有其应用访问音乐路径,不希望其识别tmp目录下的音乐。</p></blockquote><p>忽略目录(逗号分割) 改成 <code>@eaDir,tmp</code> 即可。</p></blockquote><p>抱歉,是我没有说清楚,是运行xiaomusic后会在音乐路径下生成tmp文件夹, 但我同时还在用navidrome,也会访问音乐目录,他会把tmp目录下的歌曲也扫描进去,所以想移动tmp目录。 navidrome没找到在哪里可以设置,忽略这个文件夹</p><hr><h3 id="评论-40-hanxi" tabindex="-1">评论 40 - hanxi <a class="header-anchor" href="#评论-40-hanxi" aria-label="Permalink to "评论 40 - hanxi"" target="_self"></a></h3><blockquote><blockquote><blockquote><p>运行后会在音乐目录下生成一个tmp文件夹,如何指定路径,因为还有其应用访问音乐路径,不希望其识别tmp目录下的音乐。</p></blockquote><p>忽略目录(逗号分割) 改成 <code>@eaDir,tmp</code> 即可。</p></blockquote><p>抱歉,是我没有说清楚,是运行xiaomusic后会在音乐路径下生成tmp文件夹, 但我同时还在用navidrome,也会访问音乐目录,他会把tmp目录下的歌曲也扫描进去,所以想移动tmp目录。 navidrome没找到在哪里可以设置,忽略这个文件夹</p></blockquote><p>提个新 issue 吧,有空加下配置项。</p><hr><h3 id="评论-41-calledison" tabindex="-1">评论 41 - CallEdison <a class="header-anchor" href="#评论-41-calledison" aria-label="Permalink to "评论 41 - CallEdison"" target="_self"></a></h3><p><img src="https://github.com/user-attachments/assets/6724300b-ce48-44e6-9729-7b844bc0751e" alt="image"><img src="https://github.com/user-attachments/assets/e7e87adb-a54d-42dd-bfc9-f84a01116a48" alt="image"> 问题一:能进控制面板,进不了设置页面,容器没有log生成,我昨天已经设置好了,现在功能能正常使用,但是进不了设置<EFBFBD><EFBFBD>
|
|||
|
<span class="line"><span>docker compose up -d</span></span></code></pre></div><hr><h3 id="评论-60-zhiquanchi" tabindex="-1">评论 60 - zhiquanchi <a class="header-anchor" href="#评论-60-zhiquanchi" aria-label="Permalink to "评论 60 - zhiquanchi"" target="_self"></a></h3><p>我在阿里云的服务器上运行的docker,我登录了小米账号,但是 操控面板 里面 不显示我的设备。音箱是pro LX06</p><hr><p><a href="https://github.com/hanxi/xiaomusic/issues/99" target="_self">链接到 GitHub Issue</a></p>`,292)]))}const m=t(o,[["render",n]]);export{d as __pageData,m as default};
|