Adding APRS weather info and other APRS improvements.

This commit is contained in:
Marat Fayzullin
2022-11-29 20:24:14 -05:00
parent d1a6654c1d
commit c36ec38fbd
3 changed files with 69 additions and 4 deletions

View File

@ -148,7 +148,7 @@ class AprsLocation(LatLngLocation):
def __dict__(self):
res = super(AprsLocation, self).__dict__()
for key in ["comment", "symbol", "course", "speed"]:
for key in ["comment", "symbol", "course", "speed", "weather"]:
if key in self.data:
res[key] = self.data[key]
return res

View File

@ -85,6 +85,7 @@ class AudioWriter(object):
file = self.wavefile
self.wavefile = self.getWaveFile()
# if previously open file exists...
if file is not None:
file.close()
tmp_dir = CoreConfig().get_temporary_directory()