You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Akatsuki-Misaki 3903ee103b update:运行环境包 1 month ago
..
Readme.md update<没啥好推的> 9 months ago
main.py update:运行环境包 1 month ago

Readme.md

用于监听本机网络波动

  • 监测网络波动
  • URL传输到服务器数据库中存储日志
  • 可本地文件存储
  • 仅检测

该项目有什么用

方便投诉你的运营商,让其网络保持稳定

如何使用

所需环境ping3

pip install ping3

你需要准备一个config.json

{
    "target_ips": {
      "需要ping的IP": {"location": "位置", "threshold_ms": 设置阈值, "log_method": "触发"},
      "需要ping的IP": {"location": "位置", "threshold_ms": 设置阈值, "log_method": "触发"},
      "需要ping的IP": {"location": "位置", "threshold_ms": 设置阈值, "log_method": "触发"}
    }
}

示例

{
    "target_ips": {
      "10.10.50.1": {"location": "Home", "threshold_ms": 10, "log_method": "url"},
      "10.10.51.1": {"location": "Home2", "threshold_ms": 30, "log_method": "url"},
      "10.10.92.1": {"location": "Home3", "threshold_ms": 100, "log_method": "url"}
    }
}

阈值单位为MS请根据你的网络环境进行调整

超出该阈值时则触发条件

log_methodfile,url,console