changed format

pull/131/head
alanbjohnston 4 years ago committed by GitHub
parent 0d9250e91d
commit 5ed7a9d5c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -121,7 +121,8 @@ if ((latitude != 0) and (longitude != 0) or grid):
dquote = '\\"'
receiver_gpsSedStr = 'sudo sed -i "s/receiver_gps =.*/receiver_gps = {' + dquote + 'lat' + dquote + ': ' + str(latitude) + ', ' + dquote + 'lon' + dquote + ': ' + str(longitude) + '}/g" /var/lib/openwebrx/settings.json'
# receiver_gpsSedStr = 'sudo sed -i "s/receiver_gps =.*/receiver_gps = {' + dquote + 'lat' + dquote + ': ' + str(latitude) + ', ' + dquote + 'lon' + dquote + ': ' + str(longitude) + '}/g" /var/lib/openwebrx/settings.json'
receiver_gpsSedStr = 'sudo sed -i "s/ ' + dquote + 'lat' + dquote + 'lat' + dquote + 'lat' + dquote + ': .*/ ' + dquote + 'lat' + dquote + 'lat' + dquote + 'lat' + dquote + ': ' + str(latitude) + '/g" /home/pi/settings.json'
#print (longSedStr)
system(receiver_gpsSedStr)

Loading…
Cancel
Save

Powered by TurnKey Linux.