Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lacop/walkmon
WalkingPad BLE logger
https://github.com/lacop/walkmon
Last synced: 16 days ago
JSON representation
WalkingPad BLE logger
- Host: GitHub
- URL: https://github.com/lacop/walkmon
- Owner: lacop
- License: mit
- Created: 2024-03-30T17:51:20.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-03-30T17:58:01.000Z (9 months ago)
- Last Synced: 2024-03-30T18:50:56.750Z (9 months ago)
- Language: Rust
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Walkmon
Read-only monitoring of the *Xiaomi KingSmith WalkingPad A1*. Periodically reads current speed, distance and step count via BLE. For now, it just prints the values to stdout, with the eventual goal of some sort of persistent logging.
## Build
Just `cargo build --release`. For cross-comping for Raspberry Pi, use [cross](https://github.com/cross-rs/cross) with:
```sh
TARGET=aarch64-unknown-linux-gnu
cross build --release --target=${TARGET}
scp target/${TARGET}/release/walkmon rpi-host:
```## Demo
```console
$ ./walkmon
Scanning for Bluetooth adapters...
Scanning for WalkingPad...
Discovered device: Some(PeripheralProperties { ..snip.. })
Connecting to WalkingPad...
Reading data from WalkingPad...
Press Ctrl+C to stop.
Speed: 2.0 km/h, Time: 1:38:27, Distance: 3.280 m, Steps: 6219
Speed: 2.0 km/h, Time: 1:38:28, Distance: 3.280 m, Steps: 6220
Speed: 2.0 km/h, Time: 1:38:29, Distance: 3.280 m, Steps: 6221
^C
Stopping...
```