- First, you will need to install:
- Now, clone this repository onto your computer by running
git clone https://github.com/CaelusRocketry/gs2
cd
into the new directory and create a virtual environment (venv) by running
python -m venv venv
# activate venv
venv/Scripts/activate
- Once you are in your virtualenv, install all dependencies by running
pip install -r requirements.txt
-
cd
into thegroundstation/
directory and renameexample_config.json
toconfig.json
. This file will serve as the configuration for the Ground Station. To edit Django related settings, refer tosettings.py
. -
In
config.json
, determine your flight software environment ("xbee" | "sim"
) and configure the corresponding telemetry settings. Refer to CONFIG.md for a more detailed explanation of the configuration. -
Django:
cd
out of the groundstation folder and runpython manage.py migrate
to initialize your database. Ingroundstation/settings.py
, if you don't want to usewhitenoise
, edit theDEBUG
variable to equalTrue
.- Note:
DEBUG=True
will have a performance impact on the application. To usewhitenoise
, runpython manage.py collectstatic
.
- Note:
-
Assuming the flight software is fully functional and running, start up the Ground Station server by running
daphne groundstation.asgi:application
If you don't want to use Daphne's production server, you can always use Django's local development server by running
python manage.py runserver
Head over to https://127.0.0.1:8000 and you should be all set!