TrueGear-CLI is a third-party command-line interface tool for communicating with TrueGear devices via Bluetooth Low Energy (BLE).
It is capable of accepting and forwarding incoming messages via WebSocket protocols.
-
Install Rust and Cargo from rustup.rs.
-
Clone this repository:
git clone https://github.com/xuan25/TrueGearCLI.git
-
Navigate to the project directory:
cd TrueGearCLI -
Build the project using Cargo:
cargo build --release
-
Turn on your TrueGear device and ensure Bluetooth is enabled on your computer.
-
Run TrueGear-CLI:
cargo run --release
It will then connect to the TrueGear device via BLE automatically.
You may see the following output:
Successfully connected to peripheral: "Name: Truegear_C*" Listening on: 127.0.0.1:18233 -
Connect to the WebSocket server at
ws://127.0.0.1:18233/v1/tact/and send JSON-formatted effect commands.See the WebSocket Protocol for more details on the WebSocket API.
You can run truegearcli --help to see all available command-line options:
Usage: truegear-cli [OPTIONS]
Options:
-l, --listen-addr <LISTEN_ADDR>
Address to listen on for WebSocket connections [default: 127.0.0.1:18233]
-e, --electical-effect-factor <ELECTICAL_EFFECT_FACTOR>
Strength factor of the Electical effect (usually between 0.0 to 1.5) [default: 1]
-v, --verbose
Enable verbose logging
-h, --help
Print help
-V, --version
Print version