-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
56 lines (53 loc) · 1.4 KB
/
README
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
# Template examples for webrx-template-alert
## Template example Philippine call signs
```
{% set prefix =
(state_attr(ft8,'callsign')|list)[0]
+(state_attr(ft8,'callsign')|list)[1] %}
{# Philippines #} {% set du =
['DU','DV','DW','DX','DY','DZ',
'4D','4E','4F','4G','4H','4I'] %}
{{ prefix in du }}
```
## Template example 6m activity, but not 9V1
```
{# Activity on 6 m but not a 9V1 station #}
{{
( (states(ft8,'freq')//1000) == 50 )
and
(((as_timestamp(now()) - (state_attr(ft8,'timestamp')|int)/1000)) < 60)
and
( (state_var(ft8, 'callsign') | truncate(3,true,'',0)) != '9V1')
}}
```
## Template example African station
```
{# Only the first 2 letters of the locator #}
{% set field =
(state_attr(ft8,'locator') | list)[0]
+ (state_attr(ft8,'locator') | list)[1] %}
{# Africa #} {% set af =
['JM','IL','JL','KL','ML','IK','JK','KK','LK',
'IJ','JJ','KJ','LJ','JI','KI','LI','JH','KH',
'JG','KG','JF','KF'] %}
{{ field in af }}
```
## Template example German call signs
```
{# Stations from Germany #}
{% set dl =
['DA','DB','DC','DD','DE',
'DF','DG','DH','DI','DJ',
'DK','DL','DM','DN','DO',
'DP','DQ','DR',
'Y1','Y2','Y3','Y4','Y5',
'Y6','Y7','Y8','Y9'] %}
{{ state_attr(ft8,'callsign')[0]+
state_attr(ft8,'callsign')[1] in dl }}
```
## Template example Antarctica
```
{# Second letter of the locator field #}
{% set ltrs = ['A','B','C','D'] %}
{{ (state_attr(ft8,'locator') | list)[1] in ltrs }}
```