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:
+4
-1
@@ -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
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user