From 361b91fad2dca7a9e1e313e548cef383ca80827c Mon Sep 17 00:00:00 2001 From: Shihaam Abdul Rahman Date: Mon, 27 Nov 2023 22:30:05 +0500 Subject: [PATCH] spit in a distance --- bot.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bot.sh b/bot.sh index 479f966..c8bbc31 100755 --- a/bot.sh +++ b/bot.sh @@ -49,7 +49,7 @@ echo Satellite Image grabbed ################################################################################# echo Doing speedtest by Ookla # Run speedtest and output to a file -speedtest --json | tee$speedtest_ookla +speedtest --json | tee $speedtest_ookla # Extract information from the speedtest output # Parsing JSON data @@ -71,7 +71,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) echo Starting LibreSpeed -librespeed-cli --json | tee$speedtest_libre +librespeed-cli --json | tee $speedtest_libre # Parsing JSON data libre_bytes_sent=$(jq '.[0].bytes_sent' "$speedtest_libre") @@ -88,7 +88,7 @@ libre_bytes_received_mb=$(echo "scale=2; $libre_bytes_received / 1048576" | bc) libre_total=$(echo $libre_bytes_sent_mb+$libre_bytes_received_mb | bc) echo Starting Fast -fast --upload --json | tee$speedtest_fast +fast --upload --json | tee $speedtest_fast fast_download_speed=$(jq '.downloadSpeed' "$speedtest_fast") fast_upload_speed=$(jq '.uploadSpeed' "$speedtest_fast") fast_latency=$(jq '.latency' "$speedtest_fast") @@ -113,7 +113,7 @@ googledns_ping=$(latency 8.8.8.8) ################################################################################# echo Checking weather # Make the API request -curl -s "https://api.open-meteo.com/v1/forecast?latitude=${LATITUDE}&longitude=${LONGITUDE}¤t_weather=true" | tee$weather_file +curl -s "https://api.open-meteo.com/v1/forecast?latitude=${LATITUDE}&longitude=${LONGITUDE}¤t_weather=true" | tee $weather_file # Extract Weather Condition and day or not weather_condition=$(jq '.current_weather.weathercode' "$weather_file") is_day=$(jq '.current_weather.is_day' "$weather_file")