项目作者: TrueWinter

项目描述 :
A internet monitor/tester that will ping and do speed tests at intervals
高级语言: HTML
项目地址: git://github.com/TrueWinter/InternetMon.git
创建时间: 2019-12-21T12:12:51Z
项目社区:https://github.com/TrueWinter/InternetMon

开源协议:MIT License

下载


InternetMon

After having many issues with ISPs not giving us the internet speed we were paying for and having too many outages, I decided to write some code to monitor our internet connection. The first version of InternetMon just logged all the data in a file for me to go through later, but eventually I added a graphs to make it easier to see when our internet was slower than it should be.

InternetMon pings a specified IP address and does a speed test at certain intervals which can be changed in config.json. The default is ping 1.1.1.1 4 times every 300000ms (5 minutes), and do a speedtest every 3600000ms (1 hour). All of this is logged in log.txt and also to a database.

InternetMon runs on port 5514. To access the graphs, use the following URLs (replacing ip with the IP address of the device you’re running InternetMon on):

By default, you will be shown the data from the past 24 hours. You can also add a query string to the end of the URL to get data from a different duration:

  • Hours: ?h=2 will get 2 hours of data. You can change this to get up to 23 hours of data
  • Days: ?d=5 will get 5 days of data. You can change this to get up to 29 days of data