Skip to content

athuler/UChicago-Shuttle-Tracking

Repository files navigation

Better Stack Badge

UChicago Shuttle Tracking

Secrets

In the same repository as run.py, create a secret.py in the following format:

DB_HOST = ""
DB_NAME = ""
DB_USER = ""
DB_PASS = ""

Virtual Machine Management

This program runs in a Linux-based Google Gloud VM. Below are the steps for how to initially configure it as well as to start it.

Initial Setup

  1. Create and enter a Python virtual environment
  2. Install the package: pip install git+https://github.com/athuler/UChicago-Shuttle-Tracking@main
  3. Upload run.py and secret.py to the VM
  4. Create run.sh containing the following:
source venv/bin/activate
python3 run.py
  1. Exit the virtual environment

Starting up the VM:

Note: run this outside of any virtual environments

screen
source run.sh

Reconnect to the VM:

screen -d -r