eive-tmtc/README.md

92 lines
1.5 KiB
Markdown
Raw Normal View History

2021-06-12 13:54:08 +02:00
# TMTC Commander EIVE
2020-12-17 17:50:00 +01:00
2022-05-17 14:46:23 +02:00
This application can be used to test the EIVE On-Board Software. Furthermore, it can
also be used to retrieve all sorts of telemetry data like housekeeping data.
It is recommended to use this application with a virtual environment.
The [virtual environemnt](#venv) chapter describes how to set one up.
The configuration file can currently be found at `tmtc_conf.json`. It caches settings
like the default communication interface or parameters like the TCP port when using the TCP
communication interface.
# Examples
Assuming you are running in a virtual environment
Run CLI mode
```sh
./tmtccli.py
```
Run GUI mode
```sh
./tmtcgui.py
```
2021-08-09 11:45:01 +02:00
# Run Linter
Can be used to quickly check validity of script. Install `flake8` first
```sh
python3 -m pip install flake8
```
or on Windows
```sh
py -m pip install flake8
```
and then run the `lint.py` script
```sh
./lint.py
```
2022-05-17 14:46:23 +02:00
# <a id="venv"></a> Set up virtual environment
2021-06-12 13:54:08 +02:00
## Linux
1. Create virtual environment
```sh
2022-05-17 14:14:48 +02:00
python3 -m venv venv
2021-06-12 13:54:08 +02:00
```
2. Activate virtual environment
```sh
2022-05-17 14:14:48 +02:00
. venv/bin/activate
2021-06-12 13:54:08 +02:00
```
3. Install `tmtccmd` for virtual environment. `-e` for interactive installation.
```sh
cd tmtccmd
python3 -m pip install -e .[gui]
```
## Windows
1. Create virtual environment
```sh
py -m venv .
```
2. Activate virtual environment
```sh
2022-05-17 14:14:48 +02:00
venv\Scripts\activate.bat
2021-06-12 13:54:08 +02:00
```
3. Install `tmtccmd` for virtual environment. `-e` for interactive installation.
```sh
cd tmtccmd
py -m pip install -e .[gui]
```