Skip to content

Latest commit

 

History

History
25 lines (23 loc) · 947 Bytes

File metadata and controls

25 lines (23 loc) · 947 Bytes

TIP Wifi Auto Login

This is a proof-of-concept wifi auto login script for S.Y. 2024-2025 TIP QC Campus, specifically in Building 9.

Origin and Purpose

I found it annoying that the wifi in Building 9 always kicked me out after a few minutes for no discernable reason. To spare me from the inconvenience of logging back in, I just wrote a simple python script that once it detects a disconnection, will automatically reconnect me in seconds or fewer.

Usage

The only supported way of running this is in a Linux operating system. Run this in any other operating system at your own risk.

Write your .env file

An example is available in .env-example.

WIFI_USERNAME=S2312345
WIFI_PASSWORD=PASSWORD
WIFI_LOGIN_INTERVAL=1
INTERNET_CHECK_TIMEOUT=2

Setup python and run script

cd /path/to/tip-wifi-auto-login
virtualenv .venv
source .venv/bin/activate
pip install -r requirements.txt
# running the script
python main.py