# This is a global configuration file for TF3SUT's IGates.
# This might not suit your needs.

mycall  TF3SUT


#
# Global macro for simplified "my location" definition in
# place of explicit "lat nn lon mm" at beacons. Will also
# give "my location" reference for "filter m/100".
#
#myloc lat ddmm.mmN lon dddmm.mmE

<aprsis>

Passcode	16803

#server    rotate.aprs2.net
server   euro.aprs2.net
#server 	iceland.aprs2.net
#server 46.22.106.66

# Some APRS-IS servers tell every about 20 seconds to all contact
# ports that they are there and alive. Others are just silent.
# Default value is 3*"heartbeat" + some  --> 120 (seconds)
#
#heartbeat-timeout   0    # Disabler of heartbeat timeout

# APRS-IS server may support some filter commands.
# See:  http://www.aprs-is.net/javAPRSFilter.aspx

filter	"m/1000"		# Only show stations within 1000km.

</aprsis>

<logging>

# pidfile of aprx
pidfile /var/run/aprx.pid


# rflog defines a rotatable file into which all RF-received packets
# are logged.  The host system can rotate it at any time without
# need to signal the aprx that the file has been moved.
#
rflog /var/log/aprx/aprx-rf.log

# aprxlog defines a rotatable file into which most important 
# events on APRS-IS connection are logged, namely connects and
# disconnects.  The host system can rotate it at any time without
# need to signal the aprx that the file has been moved.
#
aprxlog /var/log/aprx/aprx.log

# erlangfile defines a mmap():able binary file, which stores
# running sums of interfaces upon which the channel erlang
# estimator runs, and collects data.
# Depending on the system, it may be running on a filesystem
# that actually retains data over reboots, or it may not.
# With this backing store, the system does not loose cumulating
# erlang data over the current period, if the restart is quick,
# and does not stradle any exact minute.
# (Do restarts at 15 seconds over an even minute..)
# This file is around 0.7 MB per each interface talking APRS.
# If this file is not defined and it can not be created,
# internal non-persistent in-memory storage will be used.
#
# Built-in default value is: /var/run/aprx.state
#
#erlangfile /var/run/aprx.state

</logging>

<interface>
   serial-device /dev/ttyAMA0  19200 8n1    KISS
   callsign     $mycall  # callsign defaults to $mycall
   tx-ok        true    # transmitter enable defaults to false
</interface>


<beacon>

#beaconmode radio
beaconmode both
# For debugging purpose, this should always be set to radio.

cycle-size  10m

# beacon Akranes
#beacon interface TF2SUT-3 srccall TF2SUT-3 via WIDE2-1 symbol "T&" lat "6418.73N" lon "02202.41W" comment "TX IGate and Digi http://aprs.ulfr.net/ TNC-Pi"

#Beacon Leynisbraut 42
#beacon interface TF3SUT-2 srccall TF3SUT-2 via WIDE2-1 symbol "T&" lat "6418.73N" lon "02202.41W" comment "TNC-X RPI http://aprs.ulfr.net/"

#beacon Skipholt 28
beacon interface TF3SUT srccall TF3SUT via WIDE2-1 symbol "I#" lat "6408.45N" lon "02154.35W" comment "TNC-X RPI https://aprs.ulfr.net/"

#Beacon Vaðlaheiði
beacon interface TF3SUT srcall TF!6544.56N/01800.00W#PHG5758 TF5RPD RX 145.625 TX145.025i

#
#Following are basic options:
# 'symbol'    no default, must be defined!
# 'lat'       coordinate latitude:   ddmm.mmN  (no default!)
# 'lon'       coordinate longitude: dddmm.mmE  (no default!)
# '$myloc'    coordinate values taken from global 'myloc' entry,
#             and usable in place of explicit 'lat'+'lon'.
# 'comment'   optional tail part of the item, default is nothing
#
# Sample symbols:
#   R&   is for "Rx-only iGate"
#   I&   is for "Tx-iGate"
#   /#   is for "Digipeater"
#   I#   is for "Tx-iGate + Digipeater""
#
#
#beacon                     file /tmp/wxbeacon.txt
#beacon interface N0CALL-3 srccall N0CALL-3 \
#                           raw "!0000.00NR00000.00E&Rx-only iGate"
#beacon interface N0CALL-3 srccall N0CALL-3 \
#                           raw "!0000.00NI00000.00E&Tx-iGate"
#beacon interface $mycall   symbol "R&" $myloc \
#                           comment "Rx-only iGate"
#beacon interface $mycall   symbol "I&" $myloc \
#                           comment "Tx-iGate"
#
</beacon>

# Define digipeater function

<digipeater>
transmitter		$mycall

	<source>
		source	$mycall
		relay-type	directonly
#		viscous-delay	1
	</source>

# for APRS-IS bidirectional gate functionality
	<source>
		source	APRSIS
		relay-type	third-party
		via-path	WIDE2-1
		msg-path WIDE2-1
#		viscous-delay 1
	</source>
</digipeater>

