From aa7d6cb90f9cbd7e967007b4ea2611e4ce866180 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 19 Sep 2021 19:30:04 -0400 Subject: [PATCH] added openwebrx lat/long setting test --- groundstation/loc-add-foxtelem.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/groundstation/loc-add-foxtelem.py b/groundstation/loc-add-foxtelem.py index 439fd105..cdd13cc8 100644 --- a/groundstation/loc-add-foxtelem.py +++ b/groundstation/loc-add-foxtelem.py @@ -117,7 +117,14 @@ if ((latitude != 0) and (longitude != 0) or grid): #print (longSedStr) system(longSedStr) - print("\nKLAtracker configuration updated with your latitude and longitude") + print("\nKLAtracker configuration updated with your latitude and longitude") + + receiver_gpsSedStr = 'sed -i "s/receiver_gps =.*/receiver_gps = {\"lat\": ' + str(longitude) + ', \"lon\": ' + str(longitude) + '}/g" /home/pi/config_webrx.py' + #print (longSedStr) + system(receiver_gpsSedStr) + + print("\nOpenWebRX configuration updated with your latitude and longitude") + return_value = 1