Anyone know how to get a track out of #OwnTracks recorder into a GPX file with timestamps?

Inspecting the track page let me figure out a page to request a geojson file from, but it doesn't have any time information in it :(

@LovesTha I think you'll have to write a small export script that writes the data directly from the database

@__Knut_ :(

edit: :( as I assume I'm not going to enjoy any of the language options.

@__Knut_ Digging further, I saw a comment saying this tool should do it... https://github.com/owntracks/sundry/blob/master/backend/m2s/m2s.py

Pity I can't find anyone mentioning using it.....

sundry/backend/m2s/m2s.py at master · owntracks/sundry

Sundry unsupported code. Contribute to owntracks/sundry development by creating an account on GitHub.

GitHub

@LovesTha Sorry. I confused OwnTracks with Phonetrack.
Please ignore my suggestion.

http://<deine-ip>:8083/api/0/export?user=<user>&device=<device>&from=2024-03-01&to=2024-03-02&format=gpx

It should work as long as your phone also sends the time data.

--snip--
<trkpt lat="52.5200" lon="13.4050">
<ele>35.0</ele>
<time>2024-03-01T12:00:00Z</time>
</trkpt>
--snip--

@__Knut_ haha. I figured how to do it with ocat (the CLI).

Although I've then run into some weird bug with the import into Geo Activity Playground, but I've got a ticket open for that :)

@__Knut_ the ocat command is essentially that URL :)