Skip to content

BluemarkInnovations/docker-dronescout-app-upload-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker DroneScout Bridge data upload example

Software License

What is it?

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.)

Prerequisites

Install docker on your machine.

Installation

Clone this repository.

$ git clone https://github.com/BluemarkInnovations/docker-dronescout-app-upload-example

Switch to the cloned directory.

$ cd docker-dronescout-app-upload-example

Configuration

Set 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).

Deploy the Docker stack

$ docker compose up -d

Test and go live

You 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.

License

The MIT License (MIT). Please see License File for more information.

About

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.)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors