|
|
|
# Introduction
|
|
|
|
In this document, we'll explain the purpose and usage of each configuration file in the given system. These config files are used to store settings for different components, such as the receiver, MariaDB, SQLite, and the map. The api-key mentioned is for the airlab-co API, which provides access to various aviation data and services.
|
|
|
|
|
|
|
|
The option to chose between MariaDB and SQLite3, only one config should be configured. <span style="color:red">Warning, using SQLite3 will not allow you to use the map feature due to threading limits.</span>
|
|
|
|
# Receiver
|
|
|
|
|
|
|
|
```python
|
|
|
|
[receiver]
|
|
|
|
ip_address = 192.168.1.1 # IP address of the device receiving the data
|
|
|
|
port = 50001 # Port number to listen for incoming data
|
|
|
|
latitude = 53.0000 # Latitude of the receiver's location
|
|
|
|
longitude = -2.0000 # Longitude of the receiver's location
|
|
|
|
api_key = XXXX-XXXX-XXXX # API key for accessing the airlab-co API
|
|
|
|
secure_multiparty = true/false # Enable or disable secure multiparty communication (SMPC)
|
|
|
|
```
|
|
|
|
# MariaDB
|
|
|
|
|
|
|
|
```python
|
|
|
|
[mariadb]
|
|
|
|
host = 192.168.1.1 # IP address of the MariaDB server
|
|
|
|
username = username # Username for the MariaDB account
|
|
|
|
password = p@ssw0rd # Password for the MariaDB account
|
|
|
|
database = smpc # Name of the database to use
|
|
|
|
port = 3306 # Port number for the MariaDB server
|
|
|
|
```
|
|
|
|
# SQLite
|
|
|
|
|
|
|
|
```python
|
|
|
|
[sqlite]
|
|
|
|
file = aircraft.db # Filename for the SQLite database file
|
|
|
|
```
|
|
|
|
# Map
|
|
|
|
```python
|
|
|
|
[map]
|
|
|
|
port = 8080 # Port number for the map server
|
|
|
|
receiver_view_enabled = true/false # Enable or disable the receiver's view on the map
|
|
|
|
``` |
|
|
\ No newline at end of file |