Planes-Tracker / planes-tracker

Saves all the planes flying above the designated area in a database.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Planes tracker

Saves all the planes flying above the designated area in a database.

See the changelog for the latest updates.

Table of content

Installation

You can use Docker or install this app manually. Here's how:

Compiling from source

You can either:

  • Use the Makefile by running make in the project directory.
  • Use go build in the project directory.

Configuration

The configuration details must be set inside a .env file at the root of the project. An exemple is provided inside .env.example.

Config details

Item Values Meaning
TRACKER_POLL_RATE number Tracker poll rate (in seconds)
TRACKER_DEBUG boolean Enable debug logs
TRACKER_LOCATION_LATITUDE floating point number Latitude of the center of the area to be covered
TRACKER_LOCATION_LONGITUDE floating point number Longitude of the center of the area to be covered
TRACKER_RADIUS_DISTANCE number Radius distance from the center of the area to be covered (in Km)

Usage

If not running the docker compose, you also need to run a postgres database yourself.

  • With docker:
    • Build the image
    • Use docker compose to start both containers
  • With a binary:
    • Run chmod +x planes-tracker.
    • Start the tool with ./planes-tracker
    • You should definetely start it in a screen or daemonize it.
  • Running from source:
    • Start the tool with go run .

Credits

Copyright

See the license.

About

Saves all the planes flying above the designated area in a database.

License:GNU Affero General Public License v3.0


Languages

Language:Go 97.3%Language:Dockerfile 2.0%Language:Makefile 0.7%