Installation - diggybell/piaware-tools GitHub Wiki
The PiAware Tools are available from GitHub. Change to the directory where you want to install the source code. The following command will retrieve the source code.
git clone https://github.com/diggybell/piaware-tools.git
PiAware Tools were designed to require a basic set of packages on your system prior to installation. Most Linux systems will already have most of the requirements installed.
PiAware Tools requires that you have PHP installed on your system. This can be done using the package manager on your Linux distribution if it is not already installed.
For Rasbian (or other Debian) installation, use the following command.
sudo apt install php
sudo def install php
PHP utilizes a configuration file in /etc/php.ini to set system-specific settings for PHP. There is one entry in this file called include_path that needs to be modified. Locate that line and add the the path to a directory under your PiAware Tools installation.
include_path=".:<path to PiAware Tools>/DigTech/lib"
The PiAware Tools will update a MySQL/MariaDB database to store long term tracking information on aircraft and flights. These databases must be created as part of the installation.
The required tables will be created by the [FAAImport|FAA] utility but the database must be created first. This can be down with the following commands.
$ mysql
mysql> CREATE DATABASE faa;
mysql> exit
- Note: You must populate the FAA database before creating the PiAware database.
One of the key features of PiAware Tools is the ability to extract information from the PiAware data for analysis. This is done using a MySQL/MariaDB database. Initial setup of PiAware Tools requires the creation of this database. The following commands will create and configure the database.
cd <path to piaware-tools>/sql
mysql piaware < schema.sql
mysql piaware < triggers.sql
mysql piaware < functions.sql
mysql faa < views.sql
mysql faa < faa-classification-data.sql
mysql faa < faa-adsb-quality-data.sql
PiAware Tools should be able to utilize Apache, NGINX, or LightHTTPD installations.
If you have a web server in /var/www/html, you can easily connect PiAware Tools by creating a symbolic link.
sudo ln -s <path to PiAware Tools>/piaware-tools piaware-tools
http://<your host name or IP address>/piaware-tools
or
https://<your host name or IP address>/piaware-tools
TBD
Some of the PiAware Tools components can be executed using CRON. The instructions for each of the components is contained in the detailed instructions for the component.
Full instructions for setting up the DigTech tools is available at this link.