- Docker Desktop (Download)
- Git
- Clone the repository:
git clone https://github.com/seakers/daphne-at-docker.git
cd daphne-at-docker
git switch bayesian- Create a .env file in the daphne_brain folder and the open ai api key
api_key=APIKEY3.Setup the docker container
docker-compose upFrontend: http://localhost
API: http://localhost:8002
- Clone the repository:
git clone https://github.com/seakers/ECLSS.git
cd ECLSS- Create a virtual env
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt- Run the simulation
python simulation.py- Modify the PARAMETER_INFO variable by updating or adding values to include upper and lower caution and warning limits.
PARAMETER_INFO = {
"ppO2": {"DisplayName": "Cabin_ppO2", "Id": 43, "ParameterGroup": "L1", "NominalValue": 163.81,
"UpperCautionLimit": 175.0, "UpperWarningLimit": 185.0, "LowerCautionLimit": 155.0,
"LowerWarningLimit": 145.0, "Divisor": 100, "Name": "ppO2", "Unit":"mmHg"},
"ppCO2": {"DisplayName": "Cabin_ppCO2", "Id": 44, "ParameterGroup": "L1", "NominalValue": 0.4,
"UpperCautionLimit": 4.5, "UpperWarningLimit": 6.0, "LowerCautionLimit": -1.0,
"LowerWarningLimit": -2.0, "Divisor": 100, "Name": "ppCO2", "Unit":"mmHg"},
"humidity": {"DisplayName": "Humidity", "Id": 45, "ParameterGroup": "L1", "NominalValue": 52,
"UpperCautionLimit": 61, "UpperWarningLimit": 70, "LowerCautionLimit": 50,
"LowerWarningLimit": 40, "Divisor": 1, "Name": "Humidity", "Unit":"L"},
"ppO21": {"DisplayName": "Cabin_ppO2", "Id": 43, "ParameterGroup": "L2", "NominalValue": 163.81,
"UpperCautionLimit": 175.0, "UpperWarningLimit": 185.0, "LowerCautionLimit": 155.0,
"LowerWarningLimit": 145.0, "Divisor": 100, "Name": "ppO2", "Unit":"mmHg"},
"ppCO21": {"DisplayName": "Cabin_ppCO2", "Id": 44, "ParameterGroup": "L2", "NominalValue": 0.4,
"UpperCautionLimit": 4.5, "UpperWarningLimit": 6.0, "LowerCautionLimit": -1.0,
"LowerWarningLimit": -2.0, "Divisor": 100, "Name": "ppCO2", "Unit":"mmHg"},
}- Add simulation values to the cabin variable so they appear in the telemetry feed. Ensure variable names match those defined in PARAMETER_INFO.
cabin = {
"ppO2": 150,
"ppCO2": 5,
"humidity": 65,
"ppO21": 155,
"ppCO21": 0.5,
"humidity1": 65,
}