Files
IoT-Systems/agent/src/data/gpx-to-csv.py
hasslesstech 1f6b02c5f6
All checks were successful
Component testing / Hub testing (push) Successful in 33s
Component testing / Store testing (push) Successful in 32s
Component testing / Integration smoke testing (push) Successful in 3m0s
[P] Add a simple .gpx to .csv file converter
2026-03-25 23:39:32 +02:00

14 lines
204 B
Python

print('lat,lon')
try:
while True:
i = input()
if '<trkpt' not in i:
continue
si = i.split('"')[1::2]
print(f"{si[0]},{si[1]}")
except EOFError:
pass