Updated script so it now offers the choice to do specific tests. It also now logs the ISP and the IP address that was tested.

This commit is contained in:
2023-07-06 20:12:00 +01:00
4 changed files with 20 additions and 7 deletions
+4 -1
View File
@@ -1,3 +1,6 @@
# Speedtest_logger
A basic script that uses Speedtest-cli and logs the result to a csv file
A basic script that uses Speedtest-cli and logs the result to a csv file
### Dependencies
Speedtest CLI: https://www.speedtest.net/apps/cli
+6
View File
@@ -24,6 +24,12 @@ IP=$(echo "$INFO" | grep -oE '"ip":\s*"[^"]+"' | grep -oE '[0-9.]+')
# Reported ISP
ORG=$(echo "$INFO" | grep -oE '"organization":\s*"[^"]+"' | grep -oE '"[^"]+"' | tr -d '"')
<<<<<<< HEAD
=======
# Set WAN Number
WAN="NUMBER"
>>>>>>> e74072aff15ddfef5a49aa6a3c1a5d270925c90c
# Run the speedtest and parse the output
SPEEDTEST=$(speedtest-cli --csv)