Repository navigation
Expand file tree
/
Copy pathconfig.example.json
More file actions
122 lines (122 loc) · 5.2 KB
/
Copy pathconfig.example.json
File metadata and controls
122 lines (122 loc) · 5.2 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"adsb_source": {
"provider": "adsb_lol",
"query": "point",
"radius_miles": 40
},
"backup_adsb_source": {
"provider": "local_receiver",
"query": "url",
"value": "http://readsb.default.svc.cluster.local/tar1090/data/aircraft.json"
},
"home": {
"lat": 40.7608,
"lon": -111.8910
},
"poll_seconds": 30,
"primary_retry_minutes": 5,
"stale_aircraft_seconds": 90,
"recent_matches_window_hours": 24,
"source_health_trend_retention_hours": 168,
"source_error_alerts": {
"enabled": true,
"failure_threshold": 3,
"cooldown_minutes": 60
},
"notifications": {
"email": {
"enabled": false,
"html_enabled": true,
"smtp_host": "smtp.gmail.com",
"smtp_port": 587,
"starttls": true,
"username": "env:SMTP_USERNAME",
"password": "env:SMTP_PASSWORD",
"from": "env:SMTP_USERNAME",
"to": ["env:SMTP_USERNAME"],
"brand_theme": "teal",
"include_brand_images": true,
"include_map_snapshot": false,
"subject_template": "ADS-B alert: {aircraft_label} matched {rule_name}",
"body_template": "{message}\n\nAircraft: {aircraft_label}\nRegistration: {registration}\nFlight: {flight}\nType: {aircraft_type}\nDescription: {description}\nOperator: {operator}\nAltitude: {altitude_label}\nDistance: {distance_miles:.1f} mi\nTrack: {track_label}\nSpeed: {ground_speed_label}\nVertical rate: {vertical_rate_label}\nSquawk: {squawk}\nSeen: {seen_label}\nHex: {hex}\nAirplanes.live: {airplanes_live_url}\nRule: {rule_name}\nObserved: {observed_at}",
"html_body_template": "<p>{message_html}</p>\n\n<p>\n <a href=\"{airplanes_live_url_html}\">Airplanes.live</a>\n</p>\n\n{map_snapshot_html}\n\n<table>\n <tr>\n <th align=\"left\">Aircraft</th>\n <td>{aircraft_label_html}</td>\n </tr>\n <tr>\n <th align=\"left\">Registration</th>\n <td>{registration_html}</td>\n </tr>\n <tr>\n <th align=\"left\">Flight</th>\n <td>{flight_html}</td>\n </tr>\n <tr>\n <th align=\"left\">Type</th>\n <td>{aircraft_type_html}</td>\n </tr>\n <tr>\n <th align=\"left\">Description</th>\n <td>{description_html}</td>\n </tr>\n <tr>\n <th align=\"left\">Operator</th>\n <td>{operator_html}</td>\n </tr>\n <tr>\n <th align=\"left\">Altitude</th>\n <td>{altitude_label_html}</td>\n </tr>\n <tr>\n <th align=\"left\">Distance</th>\n <td>{distance_miles:.1f} mi</td>\n </tr>\n <tr>\n <th align=\"left\">Track</th>\n <td>{track_label_html}</td>\n </tr>\n <tr>\n <th align=\"left\">Speed</th>\n <td>{ground_speed_label_html}</td>\n </tr>\n <tr>\n <th align=\"left\">Vertical rate</th>\n <td>{vertical_rate_label_html}</td>\n </tr>\n <tr>\n <th align=\"left\">Squawk</th>\n <td>{squawk_html}</td>\n </tr>\n <tr>\n <th align=\"left\">Seen</th>\n <td>{seen_label_html}</td>\n </tr>\n <tr>\n <th align=\"left\">Hex</th>\n <td>{hex_html}</td>\n </tr>\n <tr>\n <th align=\"left\">Rule</th>\n <td>{rule_name_html}</td>\n </tr>\n <tr>\n <th align=\"left\">Observed</th>\n <td>{observed_at_html}</td>\n </tr>\n</table>"
},
"twilio": {
"enabled": false,
"account_sid": "env:TWILIO_ACCOUNT_SID",
"api_key_sid": "env:TWILIO_API_KEY_SID",
"api_key_secret": "env:TWILIO_API_KEY_SECRET",
"from": "env:TWILIO_FROM",
"to": "env:TWILIO_TO",
"body_template": "{rule_name}: {aircraft_label} {distance_miles_1} mi away at {altitude_label}"
},
"pushover": {
"enabled": false,
"app_token": "env:PUSHOVER_APP_TOKEN",
"user_key": "env:PUSHOVER_USER_KEY",
"device": "",
"priority": 0,
"sound": "pushover",
"title_template": "ADS-B: {aircraft_label}",
"url_template": "{airplanes_live_url}",
"url_title_template": "Airplanes.live",
"message_template": "{rule_name}: {aircraft_label} ({aircraft_type}) {distance_miles_1} mi away at {altitude_label}"
}
},
"exclusions": {
"tail_numbers": [],
"hex_ids": [],
"callsigns": [],
"aircraft_types": [],
"categories": []
},
"rules": [
{
"name": "Tail number near home",
"event": "tail",
"tail_numbers": ["N12345"],
"radius_miles": 25,
"max_altitude_ft": 12000,
"cooldown_minutes": 60,
"quiet_hours": {
"enabled": false,
"start": "22:00",
"end": "07:00",
"time_zone": "America/Denver",
"suppress_providers": ["pushover", "twilio"]
},
"exclusions": {
"tail_numbers": [],
"hex_ids": [],
"callsigns": [],
"aircraft_types": [],
"categories": []
}
},
{
"name": "Military nearby",
"event": "military",
"military": true,
"radius_miles": 40,
"max_altitude_ft": 25000,
"cooldown_minutes": 30
},
{
"name": "Helicopter nearby",
"event": "aircraft_type",
"aircraft_types": ["H60", "EC45"],
"categories": ["A7"],
"radius_miles": 15,
"cooldown_minutes": 20
},
{
"name": "Circling near home",
"event": "circling",
"radius_miles": 12,
"max_altitude_ft": 10000,
"circling_min_heading_change_deg": 270,
"circling_window_minutes": 8,
"cooldown_minutes": 45
}
]
}