config migration for receiver_gps

This commit is contained in:
Jakob Ketterl
2020-03-29 18:08:26 +02:00
parent 2b7d6738f1
commit fd9e913a49
7 changed files with 45 additions and 11 deletions

View File

@ -39,7 +39,8 @@ IGLOGIN {callsign} {password}
)
if pm["aprs_igate_beacon"]:
(lat, lon) = pm["receiver_gps"]
lat = pm["receiver_gps"]["lat"]
lon = pm["receiver_gps"]["lon"]
direction_ns = "N" if lat > 0 else "S"
direction_we = "E" if lon > 0 else "W"
lat = abs(lat)