jeanluc-auge / gpsanapy

gps speed trace analysis for nautic sports
Apache License 2.0
4 stars 2 forks source link

Generate WindR compatible JSON #11

Open tgrall opened 2 years ago

tgrall commented 2 years ago

See API doc:

https://windr-app.github.io/windr-community/api/traces-stats-format.html

tgrall commented 2 years ago

@jeanluc-auge

I have implemented the WindR JSON Support in my development branch :

I did tweak a little bit the parsers to expose properly the data.

If you want to test the results and see the difference with GPSAR Pro parsing:

Garmin Fenix 5 - Windfoil - No Doppler

GPSAR Pro Result:

curl https://windr.org/api/1.0/traces/62c3064499ea7a05a0f945b1 | jq

GPSAnaPy: (deployed on Azure, from the windr-integration branch)

curl -X 'POST' \
  'https://gpsanapy.proudstone-6c1e7e34.westeurope.azurecontainerapps.io/gpsana/windr/https%3A%2F%2Fupload-windr.cellar-c2.services.clever-cloud.com%2F10155176187373201%2F10155176187373201_2022-07-02-carnac-foil.gpx?support=windsurf' \
  -H 'accept: application/json' \
  -d '' | jq

Note: the CURL does not work (probably due to a redirect), however you can use:

WindR Parser:

curl https://windr-gps-v1.azurewebsites.net/api/GPXWindRParser\?url\=https://upload-windr.cellar-c2.services.clever-cloud.com/10155176187373201/10155176187373201_2022-07-02-carnac-foil.gpx&type=short | jq

Motion GPS - Slalom - Doppler

GPSAR Pro Result:

curl https://windr.org/api/1.0/traces/628bd0df2dbe5505ad46d8d3 | jq

GPSAnaPy: (deployed on Azure, from the windr-integration branch)

curl -X 'POST' \
  'https://gpsanapy.proudstone-6c1e7e34.westeurope.azurecontainerapps.io/gpsana/windr/https%3A%2F%2Fupload-windr.cellar-c2.services.clever-cloud.com%2F10211288529508580%2F10211288529508580_2744_2022-05-23-0934.gpx?support=windsurf' \
  -H 'accept: application/json' \
  -d '' | jq

Note: the CURL does not work (probably due to a redirect), however you can use:

WindR Parser:

curl https://windr-gps-v1.azurewebsites.net/api/GPXWindRParser?url=https://upload-windr.cellar-c2.services.clever-cloud.com/10211288529508580/10211288529508580_2744_2022-05-23-0934.gpx&type=short | jq