Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing extension data #6

Closed
Jdwalli opened this issue Jan 11, 2022 · 5 comments
Closed

Missing extension data #6

Jdwalli opened this issue Jan 11, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@Jdwalli
Copy link

Jdwalli commented Jan 11, 2022

Recently I exported my GPX data from Apple Health and I noticed that my extensions were not being added to the list.

from gpxcsv import gpxtolist
gpx_list = gpxtolist('route_2021-03-15_1.24am.gpx')
>> [{'lon': -83.239773, 'lat': 42.524461, 'name': 'Route 2021-03-15 1:24am', 'ele': 220.997375, 'time': '2021-03-15T05:10:31Z'}]

File Snippet

?xml version="1.0" encoding="UTF-8"?>
<gpx version="1.1" creator="Apple Health Export" xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">
  <metadata>
    <time>2021-11-18T07:33:53Z</time>
  </metadata>
  <trk>
    <name>Route 2021-03-15 1:24am</name>
    <trkseg>
      <trkpt lon="-83.239773" lat="42.524461"><ele>220.997375</ele><time>2021-03-15T05:10:31Z</time><extensions><speed>0.484723</speed><course>269.202515</course><hAcc>1.486173</hAcc><vAcc>1.163164</vAcc></extensions></trkpt>
    </trkseg>
  </trk>
</gpx>
@astrowonk astrowonk added the bug Something isn't working label Jan 11, 2022
@astrowonk
Copy link
Owner

Hey, thanks for posting the issue. What was the original source of the workout? All my exports are from an Apple Watch which put that sort of info under TrackPointExtension, so I hadn't seen this sort of example xml until now. I'll see what I can do with it.

<extensions>
					<gpxtpx:TrackPointExtension>
						<gpxtpx:hr>156</gpxtpx:hr>
						<gpxtpx:cad>71</gpxtpx:cad>
						<gpxtpx:speed>0.254569</gpxtpx:speed>
						<gpxtpx:course>289.910889</gpxtpx:course>
						<gpxtpx:hAcc>5.644999</gpxtpx:hAcc>
						<gpxtpx:vAcc>5.373536</gpxtpx:vAcc>
					</gpxtpx:TrackPointExtension>
				</extensions>

@astrowonk
Copy link
Owner

astrowonk commented Jan 11, 2022

Fixed in d288050

Hopefully I can remember how to upload to pypi...

@Jdwalli
Copy link
Author

Jdwalli commented Jan 11, 2022

I got this data from the health export. I went to the health app, clicked my profile in the top right, and then exported all my data at the bottom.

@Jdwalli
Copy link
Author

Jdwalli commented Jan 11, 2022

Fixed in d288050

Hopefully I can remember how to upload to pypi...

Thank you so much!

@astrowonk
Copy link
Owner

astrowonk commented Jan 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants