From 2434daf7a1b6df6b7b1cbff61572513c521653ba Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 19 Sep 2021 23:00:58 -0400 Subject: [PATCH] moved dquote --- groundstation/loc-add-foxtelem.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/groundstation/loc-add-foxtelem.py b/groundstation/loc-add-foxtelem.py index 42ab8e37..bd00c1b0 100644 --- a/groundstation/loc-add-foxtelem.py +++ b/groundstation/loc-add-foxtelem.py @@ -14,6 +14,7 @@ location = "QTH" grid = "" return_value = 0 altitude = 0 +dquote = '\\"' print("\nIn order to track the satellites as they fly over your location and upload your satellite telemetry data to the AMSAT servers, we need to know your location") print("\nYou can enter:\n") @@ -119,8 +120,6 @@ if ((latitude != 0) and (longitude != 0) or grid): print("\nKLAtracker configuration updated with your latitude and longitude") - 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/ ' + dquote + 'lat' + dquote + ': .*/ ' + dquote + 'lat' + dquote + ': ' + str(latitude) + ',/g" /var/lib/openwebrx/settings.json' #print (receiver_gpsSedStr)