This repo will automate the authentication process for ITS for all available networks. We recommend you to ensure that all the required packages are installed. For OS specific instructions please refer to README.md files in the respective OS directories, or you can click on the links below.
- Clone the repository to your local machine.
- Open a terminal and navigate to the repository.
- Type 'python3 main.py' to run the program
- Internet is needed for the first time to install the required packages, connect to ITS network if you are running the script for thr first time.
- Depending on your system, you may need to use 'python' instead of 'python3'
- Dependecies will be installed automatically
- The script can be run in the background using screen (for linux and mac users only).
- You can also use cron to run the script at the time of startup, or at a specific time. (for linux and mac users only).
Detects the OS and installs the required dependencies.
Detection of compatible network: <br> This process checks whether there is a compatible wifi connection available in proximity. In our use case this refers to any SSID with the prefix of "ITS".
Connection to wifi: The algorithm followed here is, if the system finds a single SSID with the prefix ITS, then the application will check for the BSSID of the router having the strongest signal strength to the device.<br> If your device can find multiple SSID's with the aforementioned prefix then the application will compare the signal strength of all the relevant BSSID's and then compare among the SSID's, this would determine the best SSID for connection. Then the router can be connected.
Initialization of selenium and chrome driver module: This module will then initiate a headless chrome driver, the login id and the password would then be filled in the respective fields. After connecting the driver's tab will be closed.
Reconnection after 5 mins: <br> This part would comprise of logging out of the network, by initializing the logout command in the url and connecting back using step 3.
Reconnection of wifi network connection may be applicable in case a better connection is discovered (in terms of signal of BSSID for the various SSID's available.)
├── CODE_OF_CONDUCT.md
├── LICENSE
├── README.md
├── cleanup.py
├── cred
│ ├── CredFile.ini
│ └── key.key
├── linux
│ ├── README.md
│ └── linux.py
├── mac
│ ├── README.md
│ └── mac.py
├── main.py
├── path.py
├── utility
│ ├── __init__.py
│ ├── check_internet.py
│ ├── credentials.py
│ ├── fetch_data.py
│ ├── install_package.py
│ ├── update_script.py
│ └── update_var.py
├── var
│ └── var.txt
└── windows
├── README.md
│ └── windows.cpython-310.pyc
└── windows.py
10 directories, 33 files
Made with contrib.rocks.
[EOF]