|
|
|
@ -117,9 +117,11 @@ if ((latitude != 0) and (longitude != 0) or grid):
|
|
|
|
#print (longSedStr)
|
|
|
|
#print (longSedStr)
|
|
|
|
system(longSedStr)
|
|
|
|
system(longSedStr)
|
|
|
|
|
|
|
|
|
|
|
|
print("\nKLAtracker configuration updated with your latitude and longitude")
|
|
|
|
print("\nKLAtracker configuration updated with your latitude and longitude")
|
|
|
|
|
|
|
|
|
|
|
|
receiver_gpsSedStr = 'sudo sed -i "s/receiver_gps =.*/receiver_gps = {"lat": ' + str(longitude) + ', "lon": ' + str(longitude) + '}/g" /etc/openwebrx/config_webrx.py'
|
|
|
|
dquote = '"'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
receiver_gpsSedStr = 'sudo sed -i "s/receiver_gps =.*/receiver_gps = {' + dquote + 'lat' + dquote + ': ' + str(longitude) + ', ' + dquote + 'lon' + dquote + ': ' + str(longitude) + '}/g" /etc/openwebrx/config_webrx.py'
|
|
|
|
#print (longSedStr)
|
|
|
|
#print (longSedStr)
|
|
|
|
system(receiver_gpsSedStr)
|
|
|
|
system(receiver_gpsSedStr)
|
|
|
|
|
|
|
|
|
|
|
|
|