Coder Social home page Coder Social logo

davidbuzz / airscore Goto Github PK

View Code? Open in Web Editor NEW

This project forked from geoffwong/airscore

0.0 1.0 0.0 1.09 MB

AirScore - online paragliding / hanggliding GAP-based scoring software.

Home Page: http://xc.highcloud.net/

License: Other

Perl 29.77% Makefile 0.11% PHP 32.88% JavaScript 15.22% CSS 13.55% HTML 7.65% Shell 0.04% AMPL 0.73% Hack 0.05%

airscore's Introduction

airScore

A bunch of scripts and php pages to handle IGC files and store them into a mysql database, determine track distance, do paragliding GAP RACE scoring, OLC-style scoring, etc. It also presents tracks on Google Maps for further viewing.

The basic philosophy is to provide the scoring tools as a set of simple executable (perl scripts) that can be wrapped with any GUI. At this stage I've only provided a basic PHP/Google Maps interface.

The database schema maybe found in xcdb.sql.

Copyright

With the exception of the following code:

einsert.js (http://econym.googlepages.com - copyright Mike Williams) elabel.js (http://econym.googlepages.com - copyright Mike Williams)

bootstrap datatables.net open-iconic spacelab.css leafletjs leaflet-fullscreen leaflet-ruler leaflet-easybutton leaflet-sidebar

All rest of the code is provided under the GPL License version 2 described in the file "Copying".

If this is not present please download from www.gnu.org.

Geoff Wong, 2007-2016 [email protected]

Installation

Helps to be experienced with Apache configurations and Mysql.

  • Edit the "Makefile":
    • set the mysql password you want to use for airscore
    • set your CGI bin directory
    • set your HTDOCS location (for the php files)
  • 'make database' if it's your first installation
  • Type 'make'
  • Ensure Apache is configured with mod-php, perl should be available too
  • Test that the login page work .../airscore/login.php (user: admin, pass: admin)

Other packages needed:

  • php5
  • mysql
  • perl
  • libxml-simple-perl

mysql config

Remove select/strict group by enforcement add the following to mysql.cnf:

sql_mode = "STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

Web Security

  • Enable exec() functionality for php.
  • Enable CGI (*pl *php) from the main installation directory for Apache

Script Notes

What do the perl scripts do:

  • add_track.pl - adds an IGC track to the database
  • airgain_verify.pl - verify an 'airgain' task (collecting points in the region)
  • airspace_check.pl - check airpsace for a task
  • airspace_openair.pl - read in an Openair format airspace file
  • airspace_sua_reader.pl - read in a SUA format airspace file
  • bulk_igc_reader.pl - read in a bunch of IGC files
  • bulk_pilot_import.pl - import pilot information from a CSV file
  • del_track.pl - delete a track
  • fsdb_export.pl - export to FS XML format (not fully functional)
  • fsdb_import.pl - import a FS XML format file (not fully functional)
  • handicap.pl - local handicap calculation
  • igcreader.pl - read an IGC file
  • igcr_nostrip.pl - read an IGC without doing a 'no-flying' strip
  • optimise_flight.pl - do an OLC optimisation on a flight
  • short_route.pl - compute the shortest-route through a task
  • task_score.pl - score a task
  • task_up.pl - re-verify all tracks assocaited with a task, and re-score it
  • team_score.pl - team scoring stuff
  • track_verify_sr.pl - verify an indivudal track against a task

airscore's People

Contributors

davidbuzz avatar geoffwong avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.