File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed
Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change 33
44# 使用说明
55# 将本压缩包解压到 /opt 目录下
6- tar -zxvf python-miio-git.tar.gz
6+
7+ tar -zcvf python-miio-git.tar.gz
78
89# 修改 miplug.sh 填写智能插座的IP和TOKEN
910# 获取智能插座的IP和TOKEN请参考
1011# https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor
1112# 默认设备类型 : genericmiot
12- # 设备类型详看 python-miio 官方文档 : https://python-miio.readthedocs.io/en/latest/index.html#controlling-modern-miot-devices
13+ # 设备类型详看 python-miio 官方文档
14+ # https://python-miio.readthedocs.io/en/latest/index.html#controlling-modern-miot-devices
1315
1416# 复制 miplug.sh 到 /etc/kvmd/ 目录下
15- cp miplug /etc/kvmd/
17+
18+ cp miplug.sh /etc/kvmd/
19+ chmod -x /etc/kvmd/miplug.sh
1620
1721# 备份 ovreeide.yaml
1822cp /etc/kvmd/ovreeide.yaml /etc/kvmd/ovreeide.yaml.backup
1923# 参考 override.yaml 修改 /etc/kvmd/override.yaml 添加对应参数
2024
21- miplug_on: #米家智能插座控制开
25+ miplug_on: # 米家智能插座控制开
2226 type: cmd
23- cmd: [/etc/kvmd/miplug.sh, on]
24- miplug_off: #米家智能插座控制关
27+ cmd: [/bin/bash, / etc/kvmd/miplug.sh, on]
28+ miplug_off: # 米家智能插座控制关
2529 type: cmd
26- cmd: [/etc/kvmd/miplug.sh, off]
30+ cmd: [/bin/bash, / etc/kvmd/miplug.sh, off]
2731
28- start_power: #上电
32+ start_power: # 上电
2933 driver: miplug_on
3034 pin: 0
3135 mode: output
3236 switch: false
33- stop_power: #断电
37+ stop_power: # 断电
3438 driver: miplug_off
3539 pin: 0
3640 mode: output
@@ -39,4 +43,4 @@ cp /etc/kvmd/ovreeide.yaml /etc/kvmd/ovreeide.yaml.backup
3943 - ["#智能插座:",start_power|开,stop_power|关] #UI
4044
4145# 重启kvmd kvmd-nginx
42- systemctl restart kvmd kvmd-nginx
46+ systemctl restart kvmd kvmd-nginx
You can’t perform that action at this time.
0 commit comments