|
|
|
|
@ -130,6 +130,10 @@ if ((latitude != 0) and (longitude != 0) or grid):
|
|
|
|
|
#print (receiver_gpsSedStr)
|
|
|
|
|
system(receiver_gpsSedStr)
|
|
|
|
|
|
|
|
|
|
nameSedStr = 'sudo sed -i "s/ ' + dquote + 'receiver_location' + dquote + ': .*/ ' + dquote + 'receiver_location' + dquote + ': ' + location + ',/g" /var/lib/openwebrx/settings.json'
|
|
|
|
|
#print (nameSedStr)
|
|
|
|
|
system(nameSedStr)
|
|
|
|
|
|
|
|
|
|
print("\nOpenWebRX configuration updated with your latitude and longitude")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -185,6 +189,12 @@ if ((latitude != 0) and (longitude != 0) or grid):
|
|
|
|
|
|
|
|
|
|
print("\nKLAtracker configuration updated with your alitude")
|
|
|
|
|
|
|
|
|
|
aslSedStr = 'sudo sed -i "s/ ' + dquote + 'receiver_asl' + dquote + ': .*/ ' + dquote + 'receiver_asl' + dquote + ': ' + str(altitude) + ',/g" /var/lib/openwebrx/settings.json'
|
|
|
|
|
#print (receiver_gpsSedStr)
|
|
|
|
|
system(aslSedStr)
|
|
|
|
|
|
|
|
|
|
print("\nOpenWebRX configuration updated with your alitude")
|
|
|
|
|
|
|
|
|
|
break
|
|
|
|
|
else:
|
|
|
|
|
print("\nAltitude cannot be negative!")
|
|
|
|
|
|