This commit is contained in:
Nico Schottelius 2016-11-13 09:31:37 +01:00
parent f5ca1cd689
commit 2d15943a00

View file

@ -43,7 +43,7 @@ def get_gps(deveui, payload):
lon_min = float(payload[15:17])
lon_sec = float(payload[17:19])
lon_frac_sec = float(payload[19:20])
long = lon_deg + lon_min/60.0 + lon_sec/3600.0 + lon_frac_sec/36000.0
lon = lon_deg + lon_min/60.0 + lon_sec/3600.0 + lon_frac_sec/36000.0
pos = ":lat={:.6f} lon={:.6f}".format(lat, lon)
res = [ deveui + pos ]