Screenshot with bus specifications |
---|
Screenshot without bus specifications |
---|
ocTerminal is a python script that allows you to check the bus schedule from the terminal
To use the script you will need to get an API key from OC transpo, and then add the api key to the .env file.
First clone the repository
git clone https://github.com/Abdulwahaab710/ocTerminal
Rename .env-sample => .env
mv .env-sample .env
# Adding the directory to the PATH
path=$(pwd)/ocTerminal
PATH=~$path:$PATH
Add you API_KEY and APP_ID to the .env file
To run ocTerminal:
python ocTerminal <bus stop\station number> [<bus numbers>]
Example
python pcTerminal 3000 85 95 98