heartbeat/README.md
yshtcn 32d01867d8
Update README.md
增加socks5支持库的安装说明
2023-07-23 13:22:29 +08:00

35 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# heartbeat
用python写的简易心跳工具配合Uptime-kuma的被动监控功能当然你也可以自己实现服务端实现监测PC客户端的运行情况。
## 运行效果
通过访问连接服务端会实现被动检测。同时本地访问结果会记录在heartbeat.log如果服务端异常可以通过返回的代码进行故障排查。
## 使用方法
### 下载程序:
确保安装了基本的python环境[然后下载heartbeat](https://github.com/yshtcn/heartbeat/releases/)
### 直接运行:
```
py heartbeat.py
```
观察是否出错,一般错误主要是因为缺少所需的库造成的。
### 安装所有涉及到的库:
这里使用了清华大学的源进行安装。
```
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pystray pillow requests configparser PySocks
```
### 后台运行:
```
pythonw heartbeat.py
```
可以创建一个批处理启动这里可以使用start命令也可以用windows计划任务自动启动。
```
start pythonw heartbeat.py
```