Skip to content

This repo can automate the authentication process for ITS for all available networks at a particular location.

License

Notifications You must be signed in to change notification settings

VitthalGupta/ITSAUTO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ITSAUTO

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.

OS Secific Instructions

Prerequisites for OS

Mac

Linux

Windows

Installation

  • 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).

Working -

Step 1

Detects the OS and installs the required dependencies.

Step 2

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".

Step 3

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.

Step 4

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.

Step 5

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.

Important Note

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.)

Directory Structure

├── 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

Developed by

Made with contrib.rocks.

[EOF]

About

This repo can automate the authentication process for ITS for all available networks at a particular location.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages