This is a proof-of-concept wifi auto login script for S.Y. 2024-2025 TIP QC Campus, specifically in Building 9.
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.
The only supported way of running this is in a Linux operating system. Run this in any other operating system at your own risk.
An example is available in .env-example.
WIFI_USERNAME=S2312345
WIFI_PASSWORD=PASSWORD
WIFI_LOGIN_INTERVAL=1
INTERNET_CHECK_TIMEOUT=2
cd /path/to/tip-wifi-auto-login
virtualenv .venv
source .venv/bin/activate
pip install -r requirements.txt
# running the script
python main.py