Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > d56e2615a43e036877e0b6cfab8e0892 > files > 275

fldigi-doc-3.20-3.fc14.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>



<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Notifier</title></head><body style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 204);" alink="#000099" link="#000099" vlink="#990099"><h1 style="text-align: center;">Notifier<br>
</h1> This is something that will interest those of you who would like
to "grep" the bands.<br>
<br>
There is a new dialog available under Configure-&gt;Notifications in
which you can specify search patterns and alerts that are triggered
when the decoded text matches those patterns.&nbsp; This only happens
when the Spot button on the main window is activated, as with the PSK
Reporter client.<br>
<br>
<table style="text-align: left; width: 100%;" cellpadding="2" cellspacing="2">
  <tbody>
    <tr>
      <td style="vertical-align: top;"><img style="width: 510px; height: 579px;" alt="" src="images/Notifications.png" align="left" hspace="10"></td>
      <td style="vertical-align: top;">First, here's how it works in general.&nbsp; You specify a regular
expression (RE) that contains one or more parenthesised capturing
groups.&nbsp; Fldigi's spotter matches it against the incoming text (main
window or PSK<br>

Browser) and, if the RE matches, it performs one or more of the following:<br>

      <br>

Displays an alert window with some text and a "go to that frequency" button.<br>

      <br>
Enters some arbitrary text into the Transmit pane.&nbsp; The text may
contain &lt;MACRO&gt;s and these will be expanded as usual.<br>

      <br>

Runs a program (Unix/Linux only for now).<br>

      <br>

The text described by the capturing group(s) can be used in all of the
above.&nbsp; There is an example of this at the end of this page.<br>

      <br>

      </td>
    </tr>
  </tbody>
</table>
<br>
Not everyone is at ease in writing regular expressions for the notifier
to act upon.&nbsp; So a few "canned" searches are coded into the
notifier and are selected from the event chooser at the upper left of
the dialog.<br>
<br>
<div style="margin-left: 40px;">1) My Callsign de CALL.&nbsp; Can be used to alert you when CALL calls you.<br>
<br>
2) Station heard twice.&nbsp; Pretty much the same search that the PSK reporter client does.<br>
<br>
3) Custom text search.&nbsp; This reveals an input field where you type your own RE.<br>
</div>
<br>
Both (1) and (2) are special cases of (3), but with some extra
processing available because in each case fldigi knows what it has just
found.<br>
<br>
The Filter pane is available for the first two event types only, i.e.
not the custom text search.&nbsp; In this pane you can specify some
properties that the spotted callsign must have for the actions to take
place:<br>
<br>
<div style="margin-left: 40px;">a) The Callsign radio button reveals a
text field when selected.&nbsp; If you enter something in that field,
the event will be accepted only if the text matches the spotted
callsign (I may change this to a RE match).<br>
<br>
b) The "DXCC entity" radio button reveals a button that brings up a
list of DXCC entities.&nbsp; Select entities by clicking or
dragging.&nbsp; If you select any at all, the spotted callsign's
country will have to be one of those or the event will be
ignored.&nbsp; Having no entities selected is the same as selecting all
of them, i.e. any country, but is a more efficient.<br>
</div>
<br>
<div style="margin-left: 40px;">The entity list can be sorted by
clicking on the row headers, and there is a right-click context menu
that can (de)select by continent and CQ zone.&nbsp; The buttons and
search fields at the bottom behave as you'd expect.<br>
</div>
<br>
The list is also available with the menu item "View / Countries" in the main window<br>
<br>
<div style="text-align: center;"><span style="font-weight: bold;">You need cty.dat for all this to work</span><br>
</div>
<br>
<div style="margin-left: 40px;">c) The "Not worked before" check button
asserts that, if you have selected (a) above, the callsign must not be
in your logbook.&nbsp; Same with (b), but now you must not have had any
QSOs with<br>
&nbsp;&nbsp; stations from that country in the log.<br>
<br>
d) The "LotW user" and "eQSL user" buttons specify that the callsign
must be on one of these two lists (the documentation explains where to
get the user lists from and where to put the files).<br>
</div>
<br>
The Action pane is where you choose how fldigi will alert you when an event matches the filter bits.<br>
<br>
<div style="margin-left: 40px;">a) The text in the "Show alert text"
box, if not empty, is shown in a pop-up window.&nbsp; The alert window
has a timer and dismisses itself after a configurable time interval
(the "Hide after" control).&nbsp; The user can click anywhere inside
the window to stop the timer.<br>
</div>
<br>
<div style="text-align: center;"><img style="width: 420px; height: 162px;" alt="" src="images/Notifier-popup.png"><br>
</div>
<br>
<div style="margin-left: 80px;">The button next to the text box enters
the default alert text for the event you have selected.&nbsp; There are
a few variables that are substituted when the window is displayed:<br>
<br>
For all three event types: $MODEM (modem name), $DF_HZ (dial
frequency), $RF_HZ (actual receive frequency), $RF_KHZ, $AF_HZ (modem
audio frequency)<br>
<br>
For the 1st event type (my call): $CALLSIGN, $TEXT (all matched text).<br>
<br>
For the 2nd event type (station): $CALLSIGN, $TEXT, $COUNTRY.<br>
<br>
For the 3rd event type (custom): you're on your own here, but fldigi
will helpfully list all the possible substrings found in your RE.<br>
<br>
The whole text is passed through strftime(3) so you can customize the date.&nbsp; Here's a reference for the % characters:<br>
</div>
<br>
<div style="text-align: center;">&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.opengroup.org/onlinepubs/007908799/xsh/strftime.html">http://www.opengroup.org/onlinepubs/007908799/xsh/strftime.html</a><br>
</div>
<br>
<div style="margin-left: 40px;">b) The "Append to TX text" box -- self
explanatory.&nbsp; The same variable substitutions apply, as well as
macro expansion.&nbsp; The nearby button shows the macro editor.&nbsp;
The appended rx text is clickable.&nbsp; Clicking it will move the
waterfall frequency (and transceiver if under CAT) to the detected
signal and change to the indicated mode.<br>
<br>
<div style="text-align: center;"><img style="width: 507px; height: 41px;" alt="" src="images/Notifier-rxtext.png"><br>
</div>
<br>
c) The "Run program" field and browse button are only available on Unix
systems.&nbsp; Field contents are passed to the shell ("/bin/sh -c"),
as with system(3).&nbsp; No variable or \backref substitution is done
for this field, but all substrings are exported as environment
variables, such as FLDIGI_NOTIFY_STR_1.&nbsp; The usual &lt;EXEC&gt;
macro variables are also there and your ~/.fldigi/scripts directory
will be in the shell's path.&nbsp; Try it out with a test script for
the full list of variables.<br>
<br>
d) The trigger limit box specifies how much time must pass
between&nbsp; subsequent invocations of whatever actions you have
specified.<br>
</div>
<br>
The Duplicates pane has a check button that displays the rest of that
group when checked.&nbsp; If you enable this, fldigi will remember what
it has seen and ignore the event if it is a duplicate.&nbsp; The other
controls in that pane determine what constitutes a duplicate:<br>
<br>
<div style="margin-left: 40px;">a) The menu tells fldigi what to look
at. For the first two event types, the menu will display "Callsign",
and for the custom search it will contain a list of&nbsp; \X references
for the RE.<br>
<br>
b) The time box is also essential; it determines how close the events must be in time to be considered duplicates.<br>
<br>
c) The Band and Mode check boxes further restrict the comparison.<br>
</div>
<br>
<h4>An example: </h4>
You are looking at callsigns, with a dup time of 600s, and both Band
and Mode checked.&nbsp; A callsign is found once and fldigi alerts
you.&nbsp; Now if this callsign is spotted again, less than 600s later
and in the same band and mode, it is a duplicate and will be
ignored.&nbsp; With (say) Band and Mode unchecked, it is a duplicate
regardless of frequency band or mode as long as it's heard before the
600s elapse.<br>
<br>
Three of the four buttons at the bottom left are pretty much
self-explanatory.&nbsp; Add to the list an event you have just
specified, or select an event from the list and Remove it, or change
some of its<br>
parameters and Update it.<br>
<br>
The Test... button allows you to test an event with some text of your
choice.&nbsp; This is particularly useful with the custom text search,
as it's too easy to enter a RE that will never match.&nbsp; The dialog
will show you the default test string for the two fixed event
types.&nbsp; Careful: the "Station heard twice" event type expects a
non-alphanumeric character at the end of its input.&nbsp; The default
test string has a space at the end.<br>
<br>
If nothing happens, it may be because you have not specified any
actions, or because the event's filter does not match, or because the
trigger limit or dup handling are preventing the actions from<br>
happening. In the latter case, updating an event will reset its dup
data.&nbsp; But it's better to add the dup and trigger limits at the
end, after you've tested the event.<br>
<br>
The list at the bottom of the window shows the events you have
added.&nbsp; All contents are saved in the file ~/.fldigi/notify.prefs.<br>
<br>
The list has a context menu for quick access to Update, Remove, and
Toggle. The first two have the same effect as clicking on the button of
the same name.<br>
<br>
The Toggle item lets you flip the "Enabled" status of an event: this is
like selecting an event, clicking on the "Enabled" button in the Event
pane to (de)activate it, and then clicking "Update".&nbsp; Disabled
events are kept on the list but are not registered with the spotter and
so they are never triggered.<br>
<br>
If you disable all the events and there is nothing else using the
spotter (e.g. PSK Reporter), the Spot button will disappear from the
main window.<br>
<br>
<h4>A 2nd example:</h4>
Here's how to do the "my call" event using the custom text search:<br>
<br>
a) Select "Custom text search" in the event pane<br>
<br>
b) In the RE box, enter (without the quotes or leading white space):<br>
<br>
<big><small><span style="font-family: monospace; font-weight: bold;">&nbsp;&nbsp; "&lt;YOUR_CALL&gt;.+de[[:space:]]+([[:alnum:]]?[[:alpha:]/]+[[:digit:]]+[[:alnum:]/]+)"</span></small><br style="font-family: monospace;">
</big><br>
and remember to replace &lt;YOUR_CALL&gt; with your callsign.<br>
<br>
c) In the actions pane you can now use \0 for the whole text matched by
the above RE, and \1 for the first capturing group (the callsign).<br>
<br>
d) Select "\1" in the duplicates menu if you want dup filtering.<br>
<br>
e) Test with "&lt;YOUR_CALL&gt; de &lt;SOME_OTHER_CALL&gt;" and you should see the alert window with the text you specified.<br>
<br>
<h4>Addional examples:</h4>
Add a "My callsign de CALL" event with a script that will do something to get your attention when someone calls you.<br>
<br>
Add a "Station heard twice" with the DXCC filter and the "Not worked
before" option.&nbsp; Also set the LotW or eQSL options if desired.<br>
<br>
Add a "Station heard twice" with no callsign/dxcc/etc. filter but with
duplicate filtering.&nbsp; Write a script that sends the data to a DX
cluster or similar.<br>
<br>
Here is a simple Perl script that uses notify-send (in the package
libnotify-bin on Debian) to display desktop notification
"bubbles".&nbsp; A better version would use the libnotify bindings for
Perl or Python directly.<br>
-----------------------------snip<br>
#!/usr/bin/perl<br>
exec("notify-send", "-t", "5000", "-i", "/usr/share/pixmaps/fldigi.xpm",<br>
&nbsp;&nbsp;&nbsp;&nbsp; "Heard " . $ENV{"FLDIGI_NOTIFY_CALLSIGN"} . " ($ENV{FLDIGI_NOTIFY_COUNTRY})",<br>
&nbsp;&nbsp;&nbsp;&nbsp; $ENV{"FLDIGI_NOTIFY_STR_0"});<br>
snip----------------------------<br>
<br><div style="text-align: center;"><a href="index.html">Contents</a></div></body></html>