https://github.com/matteospanio/speed-analysis
A project to analyze the internet speed
https://github.com/matteospanio/speed-analysis
bash-script data-analysis
Last synced: about 2 months ago
JSON representation
A project to analyze the internet speed
- Host: GitHub
- URL: https://github.com/matteospanio/speed-analysis
- Owner: matteospanio
- License: gpl-3.0
- Created: 2022-11-08T20:47:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-09T23:54:48.000Z (over 3 years ago)
- Last Synced: 2025-08-23T06:32:08.634Z (10 months ago)
- Topics: bash-script, data-analysis
- Language: Shell
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# speed-analysis
To automatically generate data set a cronjob like this:
```{bash}
4-59/15 * * * * /path/to/dotfiles/scripts/speedtest_data.sh -f csv -o "$HOME/data/$(date -I -u)-speeddata" 2>>$HOME/logs/speed_err.log
```
This command will run every 15 minutes (it starts from minute 4 because of a bug on linux, see [this link](https://askubuntu.com/questions/1322451/speedtest-cli-does-not-execute-when-scheduled-cron)), the output will be saved in csv format to a file named $(current-date)-speeddata.csv, and errors will be saved in a log folder.
Remember that you need to have speedtest-cli installed and linked to your path, so you may need to add the following line to your `.zshrc` or `.bashrc`:
```{bash}
export PATH="$PATH:/home/pi/.local/bin/"
```