Skip to content

HTML/JS to make graphic bandwith reports made with my modified version of Speedtest-cli

License

Notifications You must be signed in to change notification settings

gonzalo/html-bandwidth-report

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

html-bandwidth-report

HTML/JS to make graphic bandwith reports made with my modified version of Speedtest-cli. You can show upload, dowload speed and latency combined or separatedly. Also displays averages.

Usage

  1. Install my modified version of https://github.com/gonzalo/speedtest-cli/tree/devel
  2. Install a webserver (apache, nginx...) no need of php or any special module
  3. Add bandwidth.html and bandwidth_report_sample.csv somewhere in the webserver folder. Point with your navigator to the bandwidth.html file and test that works correctly. You shoud see something like this alt tag
  4. Add a cronjob to execute speedtest-cli and store results in the same folder of bandwidth.html. Be sure that user that executes the script has write access to that folder, also check script location and the name that you want for the csv file. Next example executes the test every hour.
$crontab -e
0 */1 * * * /root/git/speedtest-cli/speedtest_cli.py --csv /var/www/bandwidth_report.csv
  1. Finally modify bandwidth.html to point to your new csv file. Find this line:
req.open('GET', 'bandwidth_report_sample.csv', true);

...and adjust it to your needs.

About

HTML/JS to make graphic bandwith reports made with my modified version of Speedtest-cli

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages