DhanushNehru / Python-Scripts

A curated list of python scripts for automating your tasks
https://dhanushnehru.github.io/Python-Scripts/
MIT License
408 stars 181 forks source link

Auto Wifi Check Script #211

Open DhanushNehru opened 10 months ago

DhanushNehru commented 10 months ago

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.

ruchit-t commented 10 months ago

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

ruchit-t commented 10 months ago

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