added G8TIC 'user' filter example
[spider.git] / filter / spots / G8TIC.pl.issue
1 #
2 # This is an example filter for a user that only wants VHF/UHF
3 # spots
4
5 # the elements of each list are 
6 #
7 # [action, field_no, sort, possible_values, hops]
8 #
9 # where:-
10 #
11 #   action is 1 or 0 
12
13 #   the field list is:-
14 #      0 = frequency
15 #      1 = call
16 #      2 = date in unix format
17 #      3 = comment
18 #      4 = spotter
19 #      5 = spotted dxcc country
20 #      6 = spotter's dxcc country
21 #      7 = origin
22 #      8 = spotted itu
23 #      9 = spotted cq
24 #      10 = spotter's itu
25 #      11 = spotter's cq
26 #      12 = callsign of the channel on which the spot has appeared
27 #
28 #   sort is
29 #     n - numeric list of numbers e.g. [ 1,2,3 ]
30 #     r - ranges of pairs of numbers e.g. between 2 and 4 or 10 to 17 - [ 2,4, 10,17 ] 
31 #     a - an alphanumeric regex
32 #     d - the default rule
33 #
34 #   if hops is left out or zero then the existing hop count will be used as normal
35 #
36 # The spot data (in this case '15') is the used as the hop count
37 # if this is missing then the normal default applies
38 #
39
40 $in = [
41         [ 1, 0, 'r', [ 50000.0, 3000000.0 ] ],   # no hops required
42         [ 0, 0, 'd' ],                           # don't want anything else
43 ];