BangleApps/apps/blecsc
thyttan 2d25812228 chore: rm semicolons at end of clkinfo + settings
This was done in response to 9185793042 (commitcomment-148439450) .
2024-10-30 20:20:44 +01:00
..
ChangeLog blecsc 0.05: Fix <1 event/second issue 2024-06-12 11:22:25 +01:00
README.md Finally merge two broken Bluetooth Cycle Speed sensor apps to use one library that 'just works' (I hope!) - added clockinfo and recoder functionality 2024-05-17 16:08:11 +01:00
blecsc.js blecsc 0.05: Fix <1 event/second issue 2024-06-12 11:22:25 +01:00
clkinfo.js chore: rm semicolons at end of clkinfo + settings 2024-10-30 20:20:44 +01:00
icons8-cycling-48.png Finally merge two broken Bluetooth Cycle Speed sensor apps to use one library that 'just works' (I hope!) - added clockinfo and recoder functionality 2024-05-17 16:08:11 +01:00
metadata.json blecsc 0.05: Fix <1 event/second issue 2024-06-12 11:22:25 +01:00
recorder.js Finally merge two broken Bluetooth Cycle Speed sensor apps to use one library that 'just works' (I hope!) - added clockinfo and recoder functionality 2024-05-17 16:08:11 +01:00
settings.js Finally merge two broken Bluetooth Cycle Speed sensor apps to use one library that 'just works' (I hope!) - added clockinfo and recoder functionality 2024-05-17 16:08:11 +01:00

README.md

BLE Cycling Speed Sencor (CSC)

Displays data from a BLE Cycling Speed and Cadence sensor.

Other than in the original version of the app, total distance is not stored on the Bangle, but instead is calculated from the CWR (cumulative wheel revolutions) reported by the sensor. This metric is, according to the BLE spec, an absolute value that persists throughout the lifetime of the sensor and never rolls over.

Settings

Accessible from Settings -> Apps -> BLE CSC

Here you can set the wheel diameter

Development

var csc = require("blecsc").getInstance();
csc.on("status", txt => {
  print("##", txt);
  E.showMessage(txt);
});
csc.on("data", e => print(e));
csc.start();

The data event contains:

  • cwr/ccr => wheel/crank cumulative revs
  • lwet/lcet => wheel/crank last event time in 1/1024s
  • wrps/crps => calculated wheel/crank revs per second
  • wdt/cdt => time period in seconds between events
  • wr => wheel revs
  • kph => kilometers per hour