No description
- Python 71.6%
- HTML 26.8%
- Shell 1.6%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| SpeedChecker | ||
| templates | ||
| .gitignore | ||
| appsettings.example.json | ||
| CHANGELOG | ||
| checkSpeed.py | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| README.md | ||
| requirements.txt | ||
| speedCheck.sh | ||
InternetSpeedChecker
This is a simple script that checks the speed multiple times a day and will upload the records into a database for easy reference.
Requirements
- Linux shell (tested on Debian 13)
speedtest-cliinstalled
Steps
- Calls and saves the resulting output to a checkresult.txt file that can be changed in the appsettings.json file.
- Pulls the Download/Upload speed.
- Inserts the records to a database table with a timestamp.
- Checks if they are below the MB threshold set in the appsettings file, if they are it sends an email to the SUPPORT_EMAILS list.
Purpose
Since my ISP has a tendency to drop Upload speed, users were suffering, this gave me a way to monitor the speeds to ensure it was within a reasonable threshold for what I am paying for.
Deployment
- Clone the repo
- Rename the appsettings.example.json to appsettings.json
- Update the values within the appsettings.json
- Update the directory that the shell script is located in as an absolute path to your working directory.
- Setup cronjobs to trigger whenever needed.