Skip to content

Commit 55e3e4e

Browse files
authored
Update README.md
1 parent 8c82e6e commit 55e3e4e

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
# 使用说明
55
# 将本压缩包解压到 /opt 目录下
6-
7-
tar -zcvf python-miio-git.tar.gz
6+
sudo mkdir -p /opt/python-miio-git
7+
sudo tar -zcvf python-miio-git.tar.gz -C /opt/python-miio-git
88

99
# 修改 miplug.sh 填写智能插座的IP和TOKEN
1010
# 获取智能插座的IP和TOKEN请参考
@@ -13,13 +13,18 @@
1313
# 设备类型详看 python-miio 官方文档
1414
# https://python-miio.readthedocs.io/en/latest/index.html#controlling-modern-miot-devices
1515

16-
# 复制 miplug.sh 到 /etc/kvmd/ 目录下
16+
# 复制 miplug.sh 到 /etc/kvmd/
17+
sudo cp miplug.sh /etc/kvmd/
18+
sudo chmod -x /etc/kvmd/miplug.sh
1719

18-
cp miplug.sh /etc/kvmd/
19-
chmod -x /etc/kvmd/miplug.sh
20+
# 配置日志权限
21+
sudo touch /var/log/miplug.log
22+
sudo chown kvmd:kvmd /var/log/miplug.log
23+
sudo chmod 664 /var/log/miplug.log
2024

2125
# 备份 ovreeide.yaml
22-
cp /etc/kvmd/ovreeide.yaml /etc/kvmd/ovreeide.yaml.backup
26+
sudo cp /etc/kvmd/ovreeide.yaml /etc/kvmd/ovreeide.yaml.backup
27+
2328
# 参考 override.yaml 修改 /etc/kvmd/override.yaml 添加对应参数
2429

2530
miplug_on: # 米家智能插座控制开

0 commit comments

Comments
 (0)