@@ -163,42 +163,46 @@ <h3>Want to find out if you are feeding from the CLI? <code>curl https://adsb.lo
163
163
aggregators.</ p >
164
164
</ ul >
165
165
166
-
167
- {% if not len_mlat %}
168
- < h2 style ="color: #bbffff "> You are not feeding MLAT.</ h2 >
169
- {% else %}
170
- < h2 style ="color: #bbffff "> Feeding MLAT from {{len_mlat}} clients.</ h2 >
171
- {% endif %}
172
-
173
- {% if not len_beast %}
174
- < h2 style ="color: #bbffff "> You are not feeding ADSB.</ h2 >
175
- {% else %}
176
- < h2 > Feeding from the following clients:</ h2 >
177
- <!--- Make a table, columns: HEX, IP, KBPS, CONN_TIME, MSG_S, POSITION_S, REDUCE_SIGNAL, POSITIONS -->
178
- < table >
179
- < tr >
180
- < th > ID</ th >
181
- < th > IP</ th >
182
- < th > Kbps</ th >
183
- < th > Time</ th >
184
- < th > Total Positions</ th >
185
- < th > Messages/s</ th >
186
- < th > Positions/s</ th >
187
- {% for client in clients_beast %}
188
- < tr >
189
- < td > {{ client[0] }}</ td >
190
- < td > {{ client[1] }}</ td >
191
- < td > {{ client[2] }}</ td >
192
- < td > {{ client[3] }}</ td >
193
- < td > {{ client[7] }}</ td >
194
- < td > {{ client[4] }}</ td >
195
- < td > {{ client[5] }}</ td >
196
- </ tr >
197
- {% endfor %}
198
- </ table >
166
+ {% set own_beast = clients_beast|length %}
167
+ {% set own_mlat = clients_mlat|length %}
168
+
169
+ {% set own_string = "You are not feeding ADSB or MLAT" %}
170
+ {% if own_beast > 0 and own_mlat > 0 %}
171
+ {% set own_string = "You are feeding ADSB (" ~ own_beast ~ " clients) and MLAT (" ~ own_mlat ~ " clients)" %}
172
+ {% elif own_beast > 0 %}
173
+ {% set own_string = "You are feeding ADSB (" ~ own_beast ~ " clients)" %}
174
+ {% elif own_mlat > 0 %}
175
+ {% set own_string = "You are feeding MLAT (" ~ own_mlat ~ " clients)" %}
199
176
{% endif %}
200
- < h3 > {{len_beast}} ADSB Feeders (all locations are approximate, and can be off by 50+ km)</ h3 >
177
+ < h3 style ="color: #bbffff "> {{ own_string }}</ h3 >
178
+ {% if own_beast > 0 %}
179
+ < h3 > Feeding from the following clients:</ h2 >
180
+ <!--- Make a table, columns: HEX, IP, KBPS, CONN_TIME, MSG_S, POSITION_S, REDUCE_SIGNAL, POSITIONS -->
181
+ < table >
182
+ < tr >
183
+ < th > ID</ th >
184
+ < th > IP</ th >
185
+ < th > Kbps</ th >
186
+ < th > Time</ th >
187
+ < th > Total Positions</ th >
188
+ < th > Messages/s</ th >
189
+ < th > Positions/s</ th >
190
+ {% for client in clients_beast %}
191
+ < tr >
192
+ < td > {{ client[0] }}</ td >
193
+ < td > {{ client[1] }}</ td >
194
+ < td > {{ client[2] }}</ td >
195
+ < td > {{ client[3] }}</ td >
196
+ < td > {{ client[7] }}</ td >
197
+ < td > {{ client[4] }}</ td >
198
+ < td > {{ client[5] }}</ td >
199
+ </ tr >
200
+ {% endfor %}
201
+ </ table >
202
+ {% endif %}
203
+ < h3 > {{len_beast}} BEAST feeders. {{len_mlat}} MLAT feeders.</ h3 >
201
204
</ div >
205
+ < p > All locations are approximate, and off by > 50km</ p >
202
206
< div class ="map " id ="map "> </ div >
203
207
204
208
</ body >
0 commit comments