Update loc-add-foxtelem.py added Pacsat location setting

pacsat-tx
Alan Johnston 11 months ago committed by GitHub
parent 3ef21390e3
commit aeec194e8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -119,6 +119,16 @@ if (latitude != 0) and (longitude != 0):
print("\nKLAtracker configuration updated with your latitude and longitude")
latSedStr = 'sed -i "s/latitude=.*/latitude=' + str(latitude) + '/g" /home/pi/PacSatGround/PacSatGround.properties'
#print (latSedStr)
system(latSedStr)
longSedStr = 'sed -i "s/longitude=.*/longitude=' + str(longitude) + '/g" /home/pi/PacSatGround/PacSatGround.properties'
#print (longSedStr)
system(longSedStr)
print("\nPacsat configuration updated with your latitude and longitude")
receiver_gpsSedStr = 'sudo sed -i "s/ ' + dquote + 'lat' + dquote + ': .*/ ' + dquote + 'lat' + dquote + ': ' + str(latitude) + ',/g" /var/lib/openwebrx/settings.json'
#print (receiver_gpsSedStr)
system(receiver_gpsSedStr)

Loading…
Cancel
Save

Powered by TurnKey Linux.