当前位置:首页 > 未分类 > 正文内容

命令安装ESPHome

jxcq4年前 (2022-05-31)未分类128

命令安装ESPHome

docker run -d --name="ESPHome" -e TZ=Asia/Shanghai -v /mnt/data-64G/docker/esphome:/config --privileged --restart unless-stopped --net=host esphome/esphome:latest

挂载目录:/mnt/data-64G/docker/esphome

容器目录:/config


支持编译的esphome版本有esphome:1.14.4、esphome:1.15.3、esphome:1.16.0b1(编译测试通过)。(esphome:1.16.0以上版本编译会出错)。


1、安装官方esphome容器,方法参考其上

2、如果是在容器宿主机终端,执行如下命令:

docker exec -it 容器名字 /bin/bash -c "mkdir /usr/src/app/esphome/components/cat9554 && cd /usr/src/app/esphome/components/cat9554 && curl -O https://raw.githubusercontent.com/Samuel-0-0/phicomm_dc1-esphome/master/esphome/components/cat9554/__init__.py && curl -O https://raw.githubusercontent.com/Samuel-0-0/phicomm_dc1-esphome/master/esphome/components/cat9554/cat9554.cpp && curl -O https://raw.githubusercontent.com/Samuel-0-0/phicomm_dc1-esphome/master/esphome/components/cat9554/cat9554.h"

如果是在容器终端,执行:

mkdir /usr/src/app/esphome/components/cat9554 && cd /usr/src/app/esphome/components/cat9554 && curl -O https://raw.githubusercontent.com/Samuel-0-0/phicomm_dc1-esphome/master/esphome/components/cat9554/__init__.py && curl -O https://raw.githubusercontent.com/Samuel-0-0/phicomm_dc1-esphome/master/esphome/components/cat9554/cat9554.cpp && curl -O https://raw.githubusercontent.com/Samuel-0-0/phicomm_dc1-esphome/master/esphome/components/cat9554/cat9554.h

3、打开浏览器,输入容器IP地址:6052,如:192.168.1.10:6052

扫描二维码推送至手机访问。

版权声明:本文由小强的小站发布,如需转载请注明出处。

本文链接:https://zblog.dragon2024.cloudns.ch/?id=10

分享给朋友:

“命令安装ESPHome” 的相关文章

网站成功搬迁

网站成功搬迁...

Fast Os Docker 使用指南

启动命令docker run --name fastos --restart always -p 8081:8081 -p 8082:8082 -d \ -v /var/run/...

debian12安装网心云(安装docker-arm架构通用)

安装dockerapt-get install     ca-certificates     curl     gnupginstall -m 0755 -d /etc/apt/keyringscurl -f...

RouteOs安装容器+端口转发与回流

RouteOs安装容器查看当前Device-Mode/system/device-mode/ print当在enterprise模式下,启用container模式/system/device-mode/update container=yes重启设备(这步要非常注意)创建网络为容器添加veth接口:...

S805-arm安装ovm6尝试

S805-arm安装ovm6尝试

感谢:https://www.kdocs.cn/l/cb8QeOTEmJ2B来源:https://www.kdocs.cn/l/cb8QeOTEmJ2B https://www.jianshu.com/p/a92183113c2b omv6对应的版本名字叫shaitan  omv7对应的版...

甲骨文云dd重装系统一键脚本

一键脚本bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 12 -v 64 -a -firmware&n...

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。