forked from acasadoalonso/SWiface
-
Notifications
You must be signed in to change notification settings - Fork 1
/
INSTALL.txt
executable file
·61 lines (45 loc) · 2.63 KB
/
INSTALL.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Installation instructions:
Install VBOX for windows: https://www.virtualbox.org/wiki/Downloads
Install Git BASH: https://git-scm.com/download/win
Install Vagrant: https://www.vagrantup.com/downloads.html
- Download this repo from GitHub.com
- Install the python dependencies pip install socket ephem pytz geopy ...
- Make the directory where the data will reside for example : mkdir SWdata
- Create the SQLITE3 database running DBcreate: python DBcreate.py
or create the database SWIFACE on MySQL using phpmyadmin as defined on the template DBschema.sql
- Make the archive folder, for example: makdir SWdata/archive
- copy the database to the archive directory, for example: cp SWdata/SWiface.db SWdata/archive
- Adjust the setting on /etc/local/SWSconfig.ini vi config.template --> /etc/local/SWSconfig.ini
- update the list of known pilots vi kpilots.py
- Install the crontab entries crontab -e
- Execute the collector program sh sh/live.sh
That program will run until the sunset at the competition area, as definned on the settings file.
Dependencias:
DBcreate.py:from DBopen_db import opendb
DBcreate.py:import sqlite3
parserfuncs.py:import datetime
SWiface.py:from libfap import *
SWiface.py:from ctypes import *
SWiface.py:from datetime import datetime
SWiface.py:import socket
SWiface.py:import time
SWiface.py:import settings
SWiface.py:import string
SWiface.py:import datetime
SWiface.py:import ephem
SWiface.py:import pytz
SWiface.py:import sys
SWiface.py:import os
SWiface.py:import signal
SWiface.py:import kglid # import the list on known gliders
SWiface.py:from parserfuncs import * # the ogn/ham parser functions
SWiface.py:from geopy.distance import vincenty # use the Vincenty algorithm^M
SWiface.py:from geopy.geocoders import GeoNames # use the Nominatim as the geolocator^M
SWiface.py:import sqlite3 # the SQL data base routines^M
SWiface.py:import MySQLdb # the SQL data base routines^M
--------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------
## Testing setup
1. For installing SWiface using a docker container, go to the dockerfiles directory and execute install.sh
2. For installing SWiface on a VM machine, go to the provisioning directory and execute install.sh
## ----------------------------------------------------------------------------------------------------------------------------------------------