python-miio
库实现对米家设备的控制
Termux
ssh
,方便电脑连接操作Alpine Linux
(Android 7.0 以上的Termux应该满足安装最新版cryptography库)python-miio
库参考安装配置:https://blog.csdn.net/xiaokai1999/article/details/128862942
参考安装配置:https://blog.csdn.net/xiaokai1999/article/details/128863003
参考安装:https://blog.csdn.net/xiaokai1999/article/details/129143661
$ apk add python3 rust git clang py3-pip cargo
$ apk add libffi-dev libressl-dev python3-dev gcc
安装cryptography==35.0.0时会出现 error: failed to get
asn1 as a dependency of package...
错误
github issue:https://github.com/spack/spack/issues/29669
解决方案:https://community.home-assistant.io/t/error-failed-building-wheel-for-cryptography/352020/14
export CRYPTOGRAPHY_DONT_BUILD_RUST=1
export CARGO_NET_GIT_FETCH_WITH_CLI=true
由于当前的Alpine版本支持Rust1.44.0,所以安装cryptography==35.0.0
$ pip3 install cryptography==35.0.0
$ pip3 install python-miio
$ miiocli --help
返回帮助信息的话,说明已经安装完成了。