IT IS A PYTHON PROGRAM TO CONTINUOUSLY MONITOR THE INTERNET SPEED OF YOUR PC INTERNET
The "Continuous Internet Speed Monitor" program is a Python script that allows you to continuously monitor and display your internet speed in real-time. It utilizes the speedtest
library to perform speed tests and the time
module for controlling the timing intervals.
Upon running the program, it enters an infinite loop where it repeatedly measures your download and upload speeds. The program creates a Speedtest
object to facilitate the speed tests. The download and upload speeds are then calculated by dividing the measured speeds by 1024 to convert them from bytes to megabits per second.
The results are displayed in the console, showing the current download and upload speeds with two decimal places. The program waits for a specified duration, in this case, 5 seconds, before conducting the next speed test. You can adjust the waiting interval according to your preference.
This program provides a convenient way to keep track of your internet speed over time. It is especially useful for monitoring fluctuations or changes in your connection speed. You can leave the program running in the background while performing various online activities to assess the consistency and quality of your internet service.
By leveraging the speedtest
library and implementing continuous testing, the "Continuous Internet Speed Monitor" program empowers you to stay informed about your internet speed without relying on external speed testing services or websites.
TO RUN THIS PROGRAM ONE MUST DOWNLOAD SPEEDTEST-CLI PACKAGE TO DO THIS YOU HAVE TO TYPE THE FOLLOWING COMMAND IN TERMINAL:-
pip install speedtest-cli
TECHNOLOGY/ PROGRAM USED:- PYTHON
PACKAGES USED:-SPEED TEST AND TIME
PLATFORM:- VISUAL STUDIO CODE
Submitted by SAGAR GHUGUSKAR (SAGAR)
Download packets of source code on Coders Packet
Comments