Skip to content

mbifulco/speedtest-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

speedtest-logger uses speedtest.net's CLI to run speedtests from a host machine regularly, logging them to a CSV. This was created initially to keep a log of bad internet speeds at my home, to provide as evidence to my ISP.

To run:

  1. clone this repo
  2. install pm2 on your OS with npm install pm2 -g or yarn global add pm2. This will daemonize this program, and keep it running in the background of your OS
  3. install with npm install or yarn install
  4. run with pm2 start index.js. This will keep the tracker running in the background

To configure

In index.js, there are a few constants defined:

  • outputFileName is where your test results will be outputted (as a .csv file)
  • testFrequencyInSeconds is how often this test is ran, in seconds.

Ouput

The csv file contains 3 fields in each row:

  • the date and time this test was completed
  • download speed
  • upload speed

Tips

  • Speedtest results are heavily dependent on your network setup. To get consistent results, you should run this from a machine plugged directly into your network, rather than over wifi.