Gliding Competition Scoring
https://github.com/Turbo87/aeroscore.git
aeroscore ==============================================================================
Gliding Competition Scoring
Content
This project contains code and algorithms to score gliding competition flights using the TypeScript programming language. The reason for using TypeScript is being able to compile to JavaScript and run the code in the browser to ultimately allow live scoring using either SkyLines or OGN live tracking data.
The examples folder contains some basic scripts to demonstrate what the
library is currently capable of. It is recommended to run them using
ts-node. For example:
ts-node examples/calc-ranking.ts fixtures/2017-07-17-lev
Installation
GIT and curl
sudo apt-get install git curl
Node.js
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
Yarn
curl -o- -L https://yarnpkg.com/install.sh | bash
Logout (exit) and back in again
yarn global add ts-node typescript
aeroscore
git clone https://github.com/Turbo87/aeroscore.git
Change into aeroscore directory and install dependencies
cd aeroscore
yarn install
To check if you installation was successful, run
ts-node examples/live-scoring.ts
Live-Scoring
Live-scoring using local filter and task files can be started like this
ts-node examples/live-scoring.ts fixtures/Bayreuth/2018-05-30/Open/task.tsk fixtures/Bayreuth/2018-05-30/Open/filter.csv
Live-scoring using remote filter and task files directly from GliderTracker.org can be started like this
ts-node examples/live-scoring.ts "http://glidertracker.org/#tsk=https://gist.github.com/hsteinhaus/4369987643f0081d49c4458baa8c1422/raw/task&lst=https://gist.github.com/hsteinhaus/4369987643f0081d49c4458baa8c1422/raw/filter"
Usage
ts-node examples/task-point-tracker.ts TASK_PATH IGC_PATH
ts-node examples/show-area-intersections.ts TASK_PATH IGC_PATH
ts-node examples/show-flights.ts TASK_PATH IGC_PATH
ts-node examples/analyze-flight.ts TASK_PATH IGC_PATH
ts-node examples/show-aat-path.ts TASK_PATH IGC_PATH
ts-node examples/show-task.ts TASK_PATH
./task.tsk - task in xcsoar task format./filter.csv - list of pilots, glider types, handicap, etc../[A-Z]{1,3}_.*.igc - The flight logs, name prefixed with the CNts-node examples/calc-ranking.ts FOLDER
ts-node examples/calc-flight-times.ts FOLDER
ts-node examples/live-scoring.ts TASK_PATH CSV_PATH
ts-node examples/show-ogn-traffic.ts CSV_PATH
ts-node examples/glidertracker-history.ts FLARM_ID [YYYY-MM-DD]
License