A basic script that uses Speedtest-cli and logs the result to a csv file and to a Discord Webhook
Go to file
2023-06-18 20:56:00 +01:00
Linux Created Windows script 2023-06-18 20:31:42 +01:00
Windows Updated Windows README.md 2023-06-18 20:33:44 +01:00
LICENSE Initial commit 2023-05-07 20:20:26 +00:00
README.md Updated README with more instructions 2023-06-18 20:56:00 +01:00

Speedtest_logger

A basic script that uses Speedtest-cli and logs the result to a csv file and to a Discord Webhook

How to Create a Discord Web Hook

  1. On your Discord server, right click on the text channel that you want the results to appear in and then select "Edit Channel".
  2. Select the "Intergrations" menu and then select "Webhooks".
  3. Click the blue "New Webhook" button, this will create a new Webhook with a random name.
  4. Clock on the newly created Webhook. This will let you change the name and set a a picute that will appear when a post is created, this can be changed to something like "Speedtest Bot".
  5. Click the "Copy Webhook URL" and make a note of it.
  6. You can not select "ESC" at the top to exit the settings.

Edit the script

  1. Open the Speedtest.sh or .bat file (depending if you are using the Linux verison or the Windows version) and replace the "DISCORD_WEBHOOK_URL" with the coppied Webhook URL.
  2. Change the WAN "NUMBER" option, this is handy if you have multiple connections to test.

Running the Script

Once and dependancys have been installed (this will be noted in each versions README file) the script can be ran. This will run the speedtest-cli software and save the output speeds to a variable which will then be "posted" via curl to the Discord Webhook. The script can be ran manually or on a scheduled (this should be the prefered option).