No longer reporting AIS messages to IGATE.
This commit is contained in:
parent
3219648508
commit
58a9bcfa08
|
|
@ -77,7 +77,7 @@ class DirewolfConfig:
|
||||||
pass
|
pass
|
||||||
return self.port
|
return self.port
|
||||||
|
|
||||||
def getConfig(self, is_service):
|
def getConfig(self, is_service, is_ais):
|
||||||
pm = Config.get()
|
pm = Config.get()
|
||||||
|
|
||||||
config = """
|
config = """
|
||||||
|
|
@ -94,7 +94,8 @@ AGWPORT off
|
||||||
port=self.getPort(), callsign=pm["aprs_callsign"]
|
port=self.getPort(), callsign=pm["aprs_callsign"]
|
||||||
)
|
)
|
||||||
|
|
||||||
if is_service and pm["aprs_igate_enabled"]:
|
# Do not send AIS reports to IGATE
|
||||||
|
if is_service and not is_ais and pm["aprs_igate_enabled"]:
|
||||||
pbeacon = ""
|
pbeacon = ""
|
||||||
|
|
||||||
if pm["aprs_igate_beacon"]:
|
if pm["aprs_igate_beacon"]:
|
||||||
|
|
@ -173,7 +174,7 @@ class DirewolfModule(AutoStartModule, DirewolfConfigSubscriber):
|
||||||
self.direwolfConfig = DirewolfConfig()
|
self.direwolfConfig = DirewolfConfig()
|
||||||
self.direwolfConfig.wire(self)
|
self.direwolfConfig.wire(self)
|
||||||
file = open(self.direwolfConfigPath, "w")
|
file = open(self.direwolfConfigPath, "w")
|
||||||
file.write(self.direwolfConfig.getConfig(self.service))
|
file.write(self.direwolfConfig.getConfig(self.service, self.ais))
|
||||||
file.close()
|
file.close()
|
||||||
|
|
||||||
# direwolf -c {direwolf_config} -r {audio_rate} -t 0 -q d -q h 1>&2
|
# direwolf -c {direwolf_config} -r {audio_rate} -t 0 -q d -q h 1>&2
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue