mirror of
https://github.com/yshtcn/heartbeat.git
synced 2025-12-14 10:10:26 +08:00
Update README.md
This commit is contained in:
parent
48d9e5a3ad
commit
4fc72a2195
20
README.md
20
README.md
@ -2,24 +2,24 @@
|
|||||||
用python写的简易心跳工具,配合Uptime-kuma的被动监控功能监测PC客户端的运行情况。
|
用python写的简易心跳工具,配合Uptime-kuma的被动监控功能监测PC客户端的运行情况。
|
||||||
|
|
||||||
## 直接运行:
|
## 直接运行:
|
||||||
'''
|
```
|
||||||
py heartbeat.py
|
py heartbeat.py
|
||||||
'''
|
```
|
||||||
观察是否出错,一般错误主要是因为缺少所需的库造成的。
|
观察是否出错,一般错误主要是因为缺少所需的库造成的。
|
||||||
|
|
||||||
## 安装所有涉及到的库:
|
## 安装所有涉及到的库:
|
||||||
'''
|
```
|
||||||
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pystray pillow requests configparser
|
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pystray pillow requests configparser
|
||||||
'''
|
```
|
||||||
|
|
||||||
|
|
||||||
## 后台运行:
|
## 后台运行:
|
||||||
'''
|
```
|
||||||
pythonw heartbeat.py
|
pythonw heartbeat.py
|
||||||
'''
|
```
|
||||||
|
|
||||||
如果需要写入批处理可以使用start命令
|
可以创建一个批处理启动,这里可以使用start命令,也可以用windows计划任务自动启动。
|
||||||
'''
|
```
|
||||||
start pythonw heartbeat.py
|
start pythonw heartbeat.py
|
||||||
'''
|
```
|
||||||
也可以用windows计划任务自动启动。
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user