Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flandredaisuki/speedtest-monitor
Monitor the network speed
https://github.com/flandredaisuki/speedtest-monitor
Last synced: 25 days ago
JSON representation
Monitor the network speed
- Host: GitHub
- URL: https://github.com/flandredaisuki/speedtest-monitor
- Owner: FlandreDaisuki
- Created: 2022-06-18T09:27:32.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-15T17:04:21.000Z (6 months ago)
- Last Synced: 2024-05-16T05:38:54.328Z (6 months ago)
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# speedtest-monitor
## Requirement
- docker
- docker-compose## Setup
Execute `init.sh` at the first time and type `YES` manually.
```shell
$ ./init.sh
==============================================================================You may only use this Speedtest software and information generated
from it for personal, non-commercial use, through a command line
interface on a personal computer. Your use of this software is subject
to the End User License Agreement, Terms of Use and Privacy Policy at
these URLs:https://www.speedtest.net/about/eula
https://www.speedtest.net/about/terms
https://www.speedtest.net/about/privacy==============================================================================
Do you accept the license? [type YES to accept]:
```## Speedtest Hourly
You can modified [tasks.cron](tasks.cron) for control the schedule and choose the speedtest server.
```txt
# do daily/weekly/monthly maintenance
# min hour day month weekday command
03 * * * * speedtest -s 14604 -f jsonl | grep result | tee -a /root/result.jsonl
# ^^^^^^^^
# change this if need, use `speedtest -L` to show server list
```You may get some help by [crontab.guru](https://crontab.guru).
Change the `TZ` environment variable to your timezone in [docker-compose.yml](docker-compose.yml) will make [Pretty Print Result](#pretty-print-result) works better
Finally, up the service!
```shell
$ docker-compose up -d
```## Pretty Print Result
```shell
$ ./pretty-print.sh
[2022-06-18 15:03:31] download: 603.952Mbps upload: 53.873Mbps
[2022-06-18 16:03:32] download: 598.62Mbps upload: 34.031Mbps
[2022-06-18 17:03:24] download: 610.626Mbps upload: 53.728Mbps
```