OpenTracksApp / OpenTracks

OpenTracks is a sport tracking application that completely respects your privacy.
https://OpenTracksApp.com
Apache License 2.0
1.04k stars 188 forks source link

Support for power meters (of smart trainers) #498

Closed ChristophWurst closed 3 years ago

ChristophWurst commented 3 years ago

Is your feature request related to a problem? Please describe.

During off season I cycle mostly indoors on my semi smart turbo trainer Tacx Satori Smart. It sends power data via BLE just like a bike power meter (crank/pedals) does.

Describe the solution you'd like I'd like to see a setting for power meters, display of current power on the record page as well as power curves in the reports.

On https://www.bluetooth.com/specifications/gatt/ the sensor is listed as Cycling Power Profile and Cycling Power Service, so I'm assuming this is also standardized like the cadence and speed sensors.

Describe alternatives you've considered n/a

Additional context IMO a follow-up to the speed/cadence sensor support https://github.com/OpenTracksApp/OpenTracks/issues/16.

dennisguse commented 3 years ago

I just finished an appointment to test the implementation of https://github.com/OpenTracksApp/OpenTracks/pull/444 with real hardware and I did some small mistakes, but now it works. At the moment, we only extract the currently applied power and nothing else (like cadence, speed etc.) from cycling power sensors.

PS: UI is still a TODO as the power meter UI just lays on to of the cadence UI (which is not hidden if no sensor is connected).

@ChristophWurst Just in time :partying_face: Can you test this with the mentioned device?

ChristophWurst commented 3 years ago

Sure, happy to give it a test and report back :)

dennisguse commented 3 years ago

@ChristophWurst Just one important note as you mentioned a home trainer (which is probably used indoors): while the sensor data will be shown, we only record (store it in the database) when a GPS coordinate is stored. So, no GPS signal, no diagrams, statistics, export etc.

dennisguse commented 3 years ago

Powermeter support is implemented, indoor use will be taken care of in #500.