DhanushNehru / Python-Scripts

A curated list of python scripts for automating your tasks

Home Page:https://dhanushnehru.github.io/Python-Scripts/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auto Wifi Check Script

DhanushNehru opened this issue · comments

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@DhanushNehru, Thanks for adding this issue! Could you please assign it to me? Thanks again!

Is your feature request related to a problem? Please describe
My old Windows laptop has a strange issue. When it stays connected to Wi-Fi for a long time, it suddenly stops working, even though it still shows as "Connected" in the toolbar. After talking about the problem on the Windows online portal, I found out that this happens because of the Wi-Fi card in older laptops. The usual fix is to manually turn off and then back on the Wi-Fi network to get it working again. Dealing with this problem has been really annoying.

Describe the solution you'd like
To solve the issue, I made a Python script that regularly checks if there's any loss of data when sending information to "google.com." If all the data is lost (100% packet loss), the laptop's WiFi will automatically switch off and then back on by itself, without needing anyone to do it manually. This script works like a MONITORING tool that keeps an eye on the WiFi connection.

PR Link
I committed my changes for this issue and here is the PR: #214

@DhanushNehru,
Please have a look and approve it if it looks fine to you.

Thank you,
Ruchit