Skip to content

Python Script to check WiFi Ping and reset it automatically after fixed period. (Without Task Scheduler)

Notifications You must be signed in to change notification settings

ruchit-t/AutoWiFiCheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WiFi Connection Checker and Restarter

Overview

This Python script is designed to check the status of your WiFi connection on a Windows system. If the WiFi network is inactive and not able to receive ping packets, the script will automatically turn off the WiFi, turn it on again, and check whether the connection is live again or not. The script utilizes the schedule package for task scheduling, netsh commands for controlling the WiFi interface, and the netifaces package to retrieve meaningful network interface names.

Prerequisites

  • This script is specifically designed for Windows systems.
  • The script requires administrative privileges to perform actions like turning off and on the WiFi interface.

Dependencies

Install the schedule and netifaces packages using the following commands:

pip install schedule
pip install netifaces

Usage

  1. Run the script with administrative privileges to ensure it can control the WiFi interface.
  2. python wifi_checker.py
  3. The script will schedule a periodic check of the WiFi connection status.
  4. If the WiFi connection is inactive (unable to receive ping packets), the script will automatically turn off and on the WiFi interface.
  5. The script will log the status of the WiFi connection in the console.

Important Notes

  • Ensure that the script is run with administrative privileges to avoid permission issues.
  • The script uses the netsh command to control the WiFi interface. If there are any issues with the execution of netsh, the script may not work as expected.

References

About

Python Script to check WiFi Ping and reset it automatically after fixed period. (Without Task Scheduler)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages