Xingzhe sells cheap GPS bike meters with sensor support including cadence, heart rate and power. But the GPX files exported from its website does not contain any sensor metrics.
Python 3.7 is required. Dependencies can be installed with python3 -m pip install -r requirements.txt
.
This script can merge sensor metrics (easily obtained from its website) into GPX files. So that you can upload it to Strava, etc.
Usage: ./merge.py gpx_file json_file
, where:
gpx_file
is the GPX file exported from Xingzhe website, andjson_file
can be fetched from Xingzhe website athttps://www.imxingzhe.com/api/v4/segment_points/?workout_id=YOUR_WORKOUT_ID
(login required), in whichYOUR_WORKOUT_ID
is the number in the URL of current track.
This script will overwrite gpx_file
, make sure you have backups before using.
This script can concatenate segments in multiple GPX files into a single GPX file.
Usage: ./concat.py gpx_file_1 ... gpx_file_n gpx_file_out
.
Each input GPX file can only have one track. Metadata from gpx_file_1
will be used. The concatenated result will be written to gpx_file_out
.
This script can upload tracks in GPX files to InfluxDB. Then you can visualize it with Grafana and TrackMap Plugin.
To use, please install influxdb
from PyPI first. Then fill in your configuration according to influx.config.example.json
.