NOT GETTING ADVERTISED DOWNLOAD SPEEDS? Internet Network Monitor Raspberry Pi
Автор: Dial Pixel
Загружено: 2019-08-25
Просмотров: 9672
Is your ISP providing you with a stable enough connection? Are you getting the speeds that you are paying for? In this video, we build an internet monitoring tool to track your internet speeds.
Note that if you have an internet speed of above 100Mbps, the data obtained may be misleading since the pi will get capped at around 80-90Mbps (as pointed out by a fellow redditor -thelizardking0725!)
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Link to the project:
https://pimylifeup.com/raspberry-pi-i...
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Requirements:
1. Raspberry Pi
2. MicroSD Card with Raspbian Preloaded
3. Functional PC components
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Support our channel by buying from one of these amazon affiliate links:
► Canakit Raspberry Pi Model 3B+: https://amzn.to/2w2NR7G[Recommended]
► Canakit Raspberry Pi Model 4: https://amzn.to/33TIDHL
► JBL Charge 3: https://amzn.to/3bBPCb2
► Toshiba Basics Canvio 2TB: https://amzn.to/2yjBchl
Gears I used in the making of this video:
► Logitech MX Master 2S: https://amzn.to/2QUNYJM
► LG 29" Ultrawide Monitor: https://amzn.to/2UqUSIx
► Sony RX100 MIII Camera: https://amzn.to/3aueRvN
► Blue Yeti Microphone: https://amzn.to/3bBhbBm
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Paste this in the speedtest.py script file:
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
import os
import re
import subprocess
import time
response = subprocess.Popen('/usr/local/bin/speedtest-cli --simple', shell=True, stdout=subprocess.PIPE).stdout.read()
ping = re.findall('Ping:\s(.*?)\s', response, re.MULTILINE)
download = re.findall('Download:\s(.*?)\s', response, re.MULTILINE)
upload = re.findall('Upload:\s(.*?)\s', response, re.MULTILINE)
ping = ping[0].replace(',', '.')
download = download[0].replace(',', '.')
upload = upload[0].replace(',', '.')
try:
f = open('/home/pi/speedtest/speedtest.csv', 'a+')
if os.stat('/home/pi/speedtest/speedtest.csv').st_size == 0:
f.write('Date,Time,Ping (ms),Download (Mbit/s),Upload (Mbit/s)\r\n')
except:
pass
f.write('{},{},{},{},{}\r\n'.format(time.strftime('%m/%d/%y'), time.strftime('%H:%M'), ping, download, upload))
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Music Credits:
Flames By Dan Henig
• Dan Henig - Flames
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Like us on facebook: www.facebook.com/dialpixel
Follow us on instagram: www.instagram.com/dialpixel/
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: