A Python library for interacting with iConsole+ exercise equipment via Bluetooth Low Energy (BLE)
Project description
iconsole-plus
A Python library for interacting with iConsole+ exercise equipment (bikes, ellipticals) via Bluetooth Low Energy (BLE).
This library handles the specific iConsole+ protocol, including the required initialization handshake and heartbeat loop to keep the connection alive.
Installation
uv add iconsole-plus
# or
pip install iconsole-plus
Usage
The library provides an asynchronous client that manages the BLE connection and session state.
import asyncio
from iconsole_plus.client import IConsolePlusClient
async def main():
# Can be a MAC address or a bleak BLEDevice object
address = "XX:XX:XX:XX:XX:XX"
client = IConsolePlusClient(address)
# The session context manager handles connect, handshake,
# heartbeat, and cleanup (stop/disconnect)
async with client.session() as bike:
print(f"Connected to {bike.address}")
# Set resistance level (1-32)
await bike.set_resistance(10)
# The client is an async iterator that yields TelemetryData
async for data in bike:
print(f"Time: {data.duration_seconds}s")
print(f"Speed: {data.speed_kmh} km/h")
print(f"Cadence: {data.cadence_rpm} RPM")
print(f"Power: {data.power_watts} W")
print(f"Heart Rate: {data.heart_rate_bpm} BPM")
if not data.is_running:
print("Workout stopped")
break
if __name__ == "__main__":
asyncio.run(main())
Features
- Automatic Session Management: Uses an async context manager to handle connection, handshake, and heartbeat.
- Telemetry Streaming: Real-time access to speed, power, distance, heart rate, cadence, and calories.
- Resistance Control: Easily set resistance levels from 1 to 32.
- Robust Connection: Built on
bleakandbleak-retry-connectorfor reliable BLE communication. - Device Scanning: Supports connecting via MAC address or
BLEDeviceobjects.
License
GNU General Public License v2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iconsole_plus-0.1.4.tar.gz.
File metadata
- Download URL: iconsole_plus-0.1.4.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
440509e97fa42a83c4f27ee1436001ad28c8fabdea31419e31c696fbb201d492
|
|
| MD5 |
42097018b0e23e6de7428bd5b8923145
|
|
| BLAKE2b-256 |
17d78ff397dac50cc44fd742a7990482405e7c36b100b59cbccf7bd755ee4a03
|
Provenance
The following attestation bundles were made for iconsole_plus-0.1.4.tar.gz:
Publisher:
publish.yml on christopher-david-smith/iconsole-plus
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
iconsole_plus-0.1.4.tar.gz -
Subject digest:
440509e97fa42a83c4f27ee1436001ad28c8fabdea31419e31c696fbb201d492 - Sigstore transparency entry: 2146674153
- Sigstore integration time:
-
Permalink:
christopher-david-smith/iconsole-plus@a1ec4e8204c4489329602e71b50885453b7db283 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/christopher-david-smith
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a1ec4e8204c4489329602e71b50885453b7db283 -
Trigger Event:
push
-
Statement type:
File details
Details for the file iconsole_plus-0.1.4-py3-none-any.whl.
File metadata
- Download URL: iconsole_plus-0.1.4-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfc2f2d10b0e2cbf0ba8d12cca243a6818ba915f345ae4f9567d8501ac9d0c37
|
|
| MD5 |
38aa2d3ecc4adfeb2ae175c7cfad0921
|
|
| BLAKE2b-256 |
5789ab46955b9c343290ca9941e406b8d5c323757bdfcbcb015b642d350f4bc6
|
Provenance
The following attestation bundles were made for iconsole_plus-0.1.4-py3-none-any.whl:
Publisher:
publish.yml on christopher-david-smith/iconsole-plus
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
iconsole_plus-0.1.4-py3-none-any.whl -
Subject digest:
bfc2f2d10b0e2cbf0ba8d12cca243a6818ba915f345ae4f9567d8501ac9d0c37 - Sigstore transparency entry: 2146674224
- Sigstore integration time:
-
Permalink:
christopher-david-smith/iconsole-plus@a1ec4e8204c4489329602e71b50885453b7db283 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/christopher-david-smith
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a1ec4e8204c4489329602e71b50885453b7db283 -
Trigger Event:
push
-
Statement type: