disable ookla and libre

This commit is contained in:
Shihaam Abdul Rahman 2023-11-28 02:06:46 +05:00
parent 120fec0843
commit 99951c1fb3
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636

19
bot.sh
View File

@ -49,7 +49,7 @@ echo Satellite Image grabbed
################################################################################# #################################################################################
echo Doing speedtest by Ookla echo Doing speedtest by Ookla
# Run speedtest and output to a file # Run speedtest and output to a file
speedtest --json | tee $speedtest_ookla #speedtest --json | tee $speedtest_ookla
# Extract information from the speedtest output # Extract information from the speedtest output
# Parsing JSON data # Parsing JSON data
@ -78,7 +78,7 @@ ookla_bytes_sent_mb=$(echo "scale=2; $ookla_bytes_sent / 1048576" | bc)
ookla_total=$(echo $ookla_bytes_sent_mb+$ookla_bytes_received_mb | bc) ookla_total=$(echo $ookla_bytes_sent_mb+$ookla_bytes_received_mb | bc)
echo Starting LibreSpeed echo Starting LibreSpeed
librespeed-cli --json | tee $speedtest_libre #librespeed-cli --json | tee $speedtest_libre
# Parsing JSON data # Parsing JSON data
libre_bytes_sent=$(jq '.[0].bytes_sent' "$speedtest_libre") libre_bytes_sent=$(jq '.[0].bytes_sent' "$speedtest_libre")
@ -227,26 +227,11 @@ $current_weather
🌐 1.1.1.1 ping: $cfdns_ping ms 🌐 1.1.1.1 ping: $cfdns_ping ms
🌐 8.8.8.8 ping: $googledns_ping ms 🌐 8.8.8.8 ping: $googledns_ping ms
*Speedtest by Ookla*:
🌐 *Server*: $ookla_server, $ookla_city, $ookla_country
🏓 *Latency*: $ookla_ping ms
⬇️ *Download*: $ookla_download_mbps Mbit/s, Used: $ookla_bytes_received_mb MB
⬆️ *Upload*: $ookla_upload_mbps Mbit/s, Used: $ookla_bytes_sent_mb MB
*LibreSpeed*:
🌐 *Server*: $libre_server_name
🏓 *Latency*: $libre_ping ms
⬇️ *Download*: $libre_download Mbit/s, Used: $libre_bytes_received_mb MB
⬆️ *Upload*: $libre_upload Mbit/s, Used $libre_bytes_sent_mb MB
*Fast Powered by Netflix*: *Fast Powered by Netflix*:
🏓 *Latency*: $fast_latency ms 🏓 *Latency*: $fast_latency ms
⬇️ *Download*: $fast_download_speed Mbit/s, Used: $fast_downloaded MB ⬇️ *Download*: $fast_download_speed Mbit/s, Used: $fast_downloaded MB
⬆️ *Upload*: $fast_upload_speed Mbit/s, Used: $fast_uploaded MB ⬆️ *Upload*: $fast_upload_speed Mbit/s, Used: $fast_uploaded MB
Average Download Speed: $average_download Mbit/s
Average Upload Speed: $average_upload Mbit/s
Total data wasted: $total_wasted MB Total data wasted: $total_wasted MB
" "
################################################################################# #################################################################################