hanxi / xiaomusic

使用小爱音箱播放音乐,音乐使用 yt-dlp 下载。
https://github.com/hanxi/xiaomusic
MIT License
903 stars 89 forks source link

ubus接口格式错误 #73

Closed A-Cepheus closed 2 weeks ago

A-Cepheus commented 2 weeks ago

docker部署,提示Exception: Error https://api2.mina.mi.com/remote/ubus: {"code":601,"message":"illegal argument exception","data":"IllegalArgumentException: ubus call format illegal!"}

hanxi commented 2 weeks ago

有没有完整的日志?

hanxi commented 2 weeks ago

也说下是什么型号

hanxi commented 2 weeks ago

74 这里优化了这个问题,可以配置独立的配置目录,需要重新保存一下设置。

losingrose commented 2 weeks ago

MI_HARDWARE='X08E' 设置MI_DID以后不出错了,不过好像页面功能不能使用,估计是api不一样,我记得我这个设备播放是 7

X08E好像不能使用player_play_url播放,执行了没反应,返回结果{'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}} 估计要改用miio_service模式

losingrose commented 2 weeks ago

还有ipv6的绑定是host = "::",建议吧host = "0.0.0.0"参数也写成环境变量。

hanxi commented 2 weeks ago

还有ipv6的绑定是host = "::",建议吧host = "0.0.0.0"参数也写成环境变量。

不想ipv6被访问到端口可以在docker配端口时修改的,见 https://stackoverflow.com/questions/30750271/disable-ip-v6-in-docker-container

也可以配防火墙禁用就行了的。