polar-rcx5-datalink
Command-line program to export Polar RCX5 training sessions in raw or tcx format. You also can upload them to Strava with a single command.
Table of contents
Requirements
If you are using Linux, chances are your distribution already includes libusb.
How to install libusb on Windows: https://github.com/pyusb/pyusb/issues/120#issuecomment-322058585
Installation
pip install polar-rcx5-datalink
Usage
- Plug in Polar DataLink
- Select "Connect > Start" from your watch
- Run a command
Examples
Export training sessions in current directory
rcx5 export
Export training sessions to /where/to/export/files/
rcx5 export --out /where/to/export/files/ --format tcx
Filter by date
rcx5 export --from-date 2018-11-20 --to-date 2018-11-25
Sync training sessions with Strava
rcx5 stravasync --client-id YOUR_CLIENT_ID --client-secret YOUR_CLIENT_SECRET
Description
Usage: rcx5 [OPTIONS] COMMAND [ARGS]...
Options:
--version Show the version and exit.
--help Show this message and exit.
Commands:
export Exports training sessions.
stravasync Helps to synchronize training sessions with Strava.
rcx5 export
Usage: rcx5 export [OPTIONS]
Exports training sessions.
Options:
-o, --out PATH Where to save the output. Current working
directory by default.
-f, --format [raw|bin|tcx] Export file format. [default: tcx]
-s, --sessions-dir PATH Directory of raw training sessions.
--from-date [%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S]
Filter sessions that have started at this
date or after.
--to-date [%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S]
Filter sessions that have started at this
date or before.
--help Show this message and exit.
rcx5 stravasync
Usage: rcx5 stravasync [OPTIONS]
Helps to synchronize training sessions with Strava.
Before getting started you need to register an application
https://strava.com/settings/api (Authorization Callback Domain MUST be
0.0.0.0).
A registered application will be assigned a Client id and Client secret.
Provide those in options --client-id and --client-secret respectively.
Examples:
rcx5 stravasync --client-id YOUR_CLIENT_ID --client-secret YOUR_CLIENT_SECRET
# You can use environment variables to pass --client-id and --client-secret.
export RCX5_STRAVASYNC_CLIENT_ID=YOUR_CLIENT_ID
export RCX5_STRAVASYNC_CLIENT_SECRET=YOUR_CLIENT_SECRET
rcx5 stravasync
Options:
-h, --host TEXT
-p, --port INTEGER
--client-id INTEGER Application’s ID, obtained during
registration [required]
--client-secret TEXT Application’s secret, obtained during
registration. [required]
-s, --sessions-dir PATH Directory of raw training sessions.
--from-date [%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S]
Filter sessions that have started at this
date or after.
--to-date [%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S]
Filter sessions that have started at this
date or before.
--help Show this message and exit.
Metadata
Release files for polar-rcx5-datalink 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| polar_rcx5_datalink-0.1.5.tar.gz | 21.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| polar_rcx5_datalink-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 45.9 kB
Release files / polar_rcx5_datalink-0.1.5.tar.gz
| Download URL | polar_rcx5_datalink-0.1.5.tar.gz |
|---|---|
| Size | 21.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b50e00c157181cd3b94e22bbdeccc643ea698a2ab9154568119baf11302ae76
|
|
BLAKE2b-256 checksum How to use checksums |
eaeecce495122e23baf8a4b6322654f6d90033857c13a4b1f0b53115f6c6e5b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.20.1 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|
Release files / polar_rcx5_datalink-0.1.5-py3-none-any.whl
| Download URL | polar_rcx5_datalink-0.1.5-py3-none-any.whl |
|---|---|
| Size | 24.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b7552701c1d42ef4b38ad15b235c18034064d3985ace15a9f2e08d979f4896dd
|
|
BLAKE2b-256 checksum How to use checksums |
f2351bd1e7eb418c2d5c7e9e476298e419927568bbef7b6c0140af2294108509
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.20.1 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|
Security for polar-rcx5-datalink 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.