-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfigtail.template
executable file
·95 lines (89 loc) · 4.09 KB
/
configtail.template
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# --------------------------------------#
# -*- coding: UTF-8 -*-
# --------------------------------------#
def fixcoding(addr):
if addr != None:
addr=addr.replace('á', 'a')
addr=addr.replace('à', 'a')
addr=addr.replace('â', 'a')
addr=addr.replace('Á', 'A')
addr=addr.replace('é', 'e')
addr=addr.replace('è', 'e')
addr=addr.replace('ê', 'e')
addr=addr.replace('É', 'E')
addr=addr.replace('í', 'i')
addr=addr.replace('ì', 'i')
addr=addr.replace('î', 'i')
addr=addr.replace('Í', 'I')
addr=addr.replace('ó', 'o')
addr=addr.replace('ò', 'o')
addr=addr.replace('ô', 'o')
addr=addr.replace('Ó', 'O')
addr=addr.replace('Ò', 'O')
addr=addr.replace('ú', 'u')
addr=addr.replace('ù', 'u')
addr=addr.replace('û', 'u')
addr=addr.replace('Ú', 'U')
addr=addr.replace('ü', 'u')
addr=addr.replace('ñ', 'n')
addr=addr.replace('Ñ', 'N')
addr=addr.replace('Ø', 'O')
addr=addr.replace('Ã', 'a')
addr=addr.replace('ƒ', 'f')
addr=addr.replace('Â', 'a')
addr=addr.replace('¶', '-')
addr=addr.replace('…', '-')
addr=addr.replace('Ë', 'E')
addr=addr.replace('†', '-')
addr=addr.replace('ä', '-')
addr=addr.replace('Ł', 'L')
addr=addr.replace('ł', 'l')
addr=addr.replace('ł', '-')
return addr
# --------------------------------------#
# default event if no JSON file found
# --------------------------------------#
tp = [
{
"name": "Cerdanya",
"trigger": "Enter",
"longitude": 1.863883278972198,
"observationZone": "Line",
"radius": 3000,
"latitude": 42.3875017060334,
"type": "Start"
},
{
"name": "E05/Santa Cilia",
"trigger": "Enter",
"longitude": -0.7433333293538958,
"observationZone": "Cylinder",
"radius": 3000,
"latitude": 42.569717492711,
"type": "Turnpoint"
},
{
"name": "E18/Benabarre",
"trigger": "Enter",
"longitude": 0.4827833303850359,
"observationZone": "Cylinder",
"radius": 3000,
"latitude": 42.022216359031944,
"type": "Turnpoint"
},
{
"name": "Cerdanya",
"trigger": "Enter",
"longitude": 1.8638888285008988,
"observationZone": "Cylinder",
"radius": 3000,
"latitude": 42.3875017060334,
"type": "Finish"
},
]
tr1={"trackId": "FLRDDE421", "pilotName": "Juanma Garete ", "competitionId": "T1", "country": "ES", "aircraft": "Duo Discus", "registration": "EC-JAA", "3dModel": "ventus2", "ribbonColors":["green"]}
tr2={"trackId": "FLRDDE1FC", "pilotName": "Sergi Pujol", "competitionId": "SP", "country": "FR", "aircraft": "Duo Discus", "registration": "D-1234", "3dModel": "ventus2", "ribbonColors":["blue"]}
tr3={"trackId": "FLRDDDB8B", "pilotName": "Luis Ferreira", "competitionId": "AA", "country": "ES", "aircraft": "Duo Discus", "registration": "EC-JAA", "3dModel": "ventus2", "ribbonColors":["green"]}
tr4={"trackId": "FLRDDBC42", "pilotName": "Santa Cilia ", "competitionId": "T1", "country": "ES", "aircraft": "Duo Discus", "registration": "EC-JAA", "3dModel": "ventus2", "ribbonColors":["green"]}
tr5={"trackId": "FLRDDC1AC", "pilotName": "Angel Casado", "competitionId": "K5", "country": "ES", "aircraft": "Janus CE", "registration": "D-2520", "3dModel": "ventus2", "ribbonColors":["red"]}
QSGP={"name": "QSGP La Cerdanya", "description": "Day 1", "taskType": "SailplaneGrandPrix", "startOpenTs": 0, "turnpoints": tp, "tracks": [tr1, tr2, tr3, tr4, tr5]}