Skip to main content

A Python package for interacting with Bluetooth Low Energy (BLE) compatible bike trainers and power meters

Project description

pycycling

A Python package for interacting with Bluetooth Low Energy (BLE) compatible bike trainers and power meters.

The package uses Bleak (Bluetooth Low Energy platform Agnostic Klient) behind the scenes to connect and communicate with bike trainers. Bleak is cross-platform with support for Windows, MacOS, and Linux. Please refer to the Bleak repository for more information about supported platforms.

Disclaimer

I take no responsibility if the use of this package breaks your turbo trainer or stationary bike. Use at your own risk!

I have tested it with (tested protocols in brackets):

  • a Tacx NEO trainer (ANT+ FE-C over BLE, CPS, CSCS)
  • a Tacx NEO 2T trainer (ANT+ FE-C over BLE, CPS, CSCS)
  • an Elite Sterzo Smart steering plate (STERZO)
  • a pair of Garmin Vector 3 power meter pedals (CPS)
  • a Garmin RVR315 rear view radar (RDR)
  • a Magene S3+ Speed/Cadence sensor (CSCS)
  • a Elite Suito-T smart trainer (CPS, CSCS, FTMS)

Please let me know if you have used it with another device, and I will add it to the list.

Supported protocols

  • Battery Service (BAS)
  • Cycling Power Service (CPS)
  • Cycling Speed and Cadence Service (CSCS)
  • Elite Sterzo Steering Service (STERZO)
  • FiTness Machine Service (FTMS)
  • Heart Rate Service (HRS)
  • Rear View Radar (RDR)
  • Tacx Trainer Control (ANT+ FE-C over BLE)

Installation

Clone this repo and then run the following command from the root directory

python setup.py develop

Documentation

Please refer to the documentation and the examples folder for basic usage of the package.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/zacharyedwardbull/pycycling. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

In terms of contributing code, pull requests increasing the features supported in each protocol are especially welcome. If you would like to add support for another cycling related protocol, that would also be appreciated!

Useful documentation

Projects using pycycling

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pycycling-0.3.3.tar.gz (156.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycycling-0.3.3-py3-none-any.whl (159.0 kB view details)

Uploaded Python 3

File details

Details for the file pycycling-0.3.3.tar.gz.

File metadata

  • Download URL: pycycling-0.3.3.tar.gz
  • Upload date:
  • Size: 156.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for pycycling-0.3.3.tar.gz
Algorithm Hash digest
SHA256 a3613bc25c5792d3a02697448da4aaf6b79383a1a9b4aa63ce617a3eb7fe876e
MD5 f419d3e6a82d450740a0cb4a1aef9506
BLAKE2b-256 41d03d0131459074d76cf3ea51bf206d3115165ef55eb4baf035e5562cb5f5b8

See more details on using hashes here.

File details

Details for the file pycycling-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: pycycling-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 159.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for pycycling-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b69542575d8180a7865858ec1d364e4586a1023c231d498f62e5ef4c2d2fcb6a
MD5 9fc092a08ef3ee7cf08633d928e81d4a
BLAKE2b-256 9e735a2707fcd379ed66e13d163bd6d9a696bc57fa3b78fe4864ad54af0e0c3f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page