File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change 1212 sudo mkdir -p /opt/python-miio-git
1313 sudo tar -zxvf python-miio-git.tar.gz -C /opt/python-miio-git
1414
15-
16152. ** 修改配置文件**
1716 修改 ` miplug.sh` 文件,填写智能插座的 IP 和 TOKEN。获取智能插座的 IP 和 TOKEN 请参考 [Xiaomi-cloud-tokens-extractor](https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor),[Obtaining tokens](https://python-miio.readthedocs.io/en/latest/discovery.html#obtaining-tokens)
1817
2322 sudo cp miplug.sh /etc/kvmd/
2423 sudo chmod +x /etc/kvmd/miplug.sh
2524
26-
27-
28254. ** 配置日志权限**
2926 创建日志文件并修改权限:
3027 ` ` ` bash
3128 sudo touch /var/log/miplug.log
3229 sudo chown kvmd:kvmd /var/log/miplug.log
3330 sudo chmod 664 /var/log/miplug.log
3431
35-
36-
37325. ** 备份配置文件**
3833 备份 ` ovreeide.yaml` 文件:
3934 ` ` ` bash
4035 sudo cp /etc/kvmd/ovreeide.yaml /etc/kvmd/ovreeide.yaml.backup
4136
42-
43-
44376. ** 修改 override.yaml**
4538 根据 ` override.yaml` 的参考,修改 ` /etc/kvmd/override.yaml` 文件,添加对应参数:
4639
6558
6659 - [" #智能插座:" , start_power| 开, stop_power| 关] # UI
6760
68-
69-
70617. ** 重启服务**
7162 重启 ` kvmd` 和 ` kvmd-nginx` 服务:
7263 ` ` ` bash
You can’t perform that action at this time.
0 commit comments