Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Harry-Chen/xingzhe-gpx-processor
Process GPX files (adding sensor metrics, uploading to InfluxDB, etc.) exported from imxingzhe.com
https://github.com/Harry-Chen/xingzhe-gpx-processor
gpx python riding
Last synced: about 2 months ago
JSON representation
Process GPX files (adding sensor metrics, uploading to InfluxDB, etc.) exported from imxingzhe.com
- Host: GitHub
- URL: https://github.com/Harry-Chen/xingzhe-gpx-processor
- Owner: Harry-Chen
- License: mit
- Created: 2021-10-06T14:17:01.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-01T16:03:02.000Z (almost 3 years ago)
- Last Synced: 2024-08-03T01:38:27.445Z (5 months ago)
- Topics: gpx, python, riding
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 13
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Xingzhe GPX Processor 行者轨迹处理工具
[Xingzhe](https://imxingzhe.com) 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.
## Requirements
Python 3.7+ is required. Dependencies can be installed with `python3 -m pip install -r requirements.txt`.
## `merge.py`
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, and
* `json_file` can be fetched from Xingzhe website at `https://www.imxingzhe.com/api/v4/segment_points/?workout_id=YOUR_WORKOUT_ID` (login required), in which `YOUR_WORKOUT_ID` is the number in the URL of current track.This script will overwrite `gpx_file`, make sure you have backups before using.
## `concat.py`
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`.
## `to_influx.py`
This script can upload tracks in GPX files to InfluxDB. Then you can visualize it with Grafana and [TrackMap Plugin](https://grafana.com/grafana/plugins/pr0ps-trackmap-panel/).
To use, please install `influxdb` from PyPI first. Then fill in your configuration according to `influx.config.example.json`.