A basic example to push data from DroneScout pro app to a docker stack which puts the received data in a mySQL database. It is based on PHP-FPM, NGINX, mySQL and phpMyAdmin. (You need to have a Platinum subscription for DroneScout pro app in order to unlock this feature.)
Install docker on your machine.
Clone this repository.
$ git clone https://github.com/BluemarkInnovations/docker-dronescout-app-upload-exampleSwitch to the cloned directory.
$ cd docker-dronescout-app-upload-exampleSet the username/password and the credentials for the mySQL database. Change these lines in docker-compose.yml to your own.
MYSQL_ROOT_PASSWORD: 'lJSCy8PrxHOPBeoA'
MYSQL_USER: 'dronescout'
MYSQL_PASSWORD: 'KsvrcCVqQVwRRWKD'
b) Also edit the file public/index.php. Here you can define the username/password that the user needs to enter in the DroneScout pro app. Make sure the mySQL credentials match the one set in docker-compose.yml
//config section
$username = 'bluemark';
$password = 'dronescout';
$msql_username = 'dronescout';
$msql_password = 'KsvrcCVqQVwRRWKD'; # mysql username/password should be same to the one set in docker-compose.yml
$log_to_file = '0'; //log to data.log if set to 1. Make sure data.log has write access for the webserver user! I.e. chmod 777 data.log
c) In docker-compose.yml the web container has two options for external access. In option a) the server can be accessed using a specific port. In the example it is port 8080. If you use a nginx-proxy-server, you can use a virtual domain. This option has been described in option b).
$ docker compose up -dYou can enter the server address and credentials in your DroneScout pro app in the Push to External Server section (in Preferences). You need to have a Platinum subscription in order to unlock this feature. Press Test Server to verify that the app can access the server.
Data will automatically be inserted in the table data. It can be viewed using the myadmin container. Default this can be accessed at port 8081.
The MIT License (MIT). Please see License File for more information.