The Network Usage Tracker is a Python application with a Tkinter GUI that allows users to monitor real-time network usage, store usage data in a MySQL database, and receive alerts when usage exceeds a predefined maximum limit.
- Real-time Tracking: Monitor network usage in real-time, displaying data in bytes per second.
- Database Storage: Store network usage data in a MySQL database for historical tracking and analysis.
- Connection Status: Display the current connection status and IP address.
- Max Limit Alert: Receive a notification if network usage exceeds a predefined maximum limit.
Ensure you have the following dependencies installed before running the application:
- Python 3.x
- Tkinter
- Pillow (PIL)
- psutil
- mysql-connector-python
-
Clone the repository:
git clone https://github.com/your-username/network-usage-tracker.git
-
Navigate to the project directory:
cd network-usage-tracker
-
Install the required Python packages:
pip install Pillow psutil mysql-connector-python
-
MySQL Database:
- Create a MySQL database named
network_usage
. - Update the database connection details in the code (
host
,user
,password
).
- Create a MySQL database named
-
Application:
- Open the
network.py
file and modify any configuration variables if needed.
- Open the
-
Launch the application:
python network.py
-
Click the "START" button to begin network usage tracking.
-
The main window will minimize, and a new window will display real-time network usage information.
-
To stop tracking, click the "STOP" button in the new window.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.