iaroslavn / peloton-bike-metrics-server

Web server that reads metrics (e.g. cadence, output) from Peloton® Bike screen and exposes them via REST API.
MIT License
40 stars 5 forks source link

peloton-bike-metrics-server

The code in this repository acquires Peloton® Bike metrics (such as cadence and output) by using Tesseract OCR to perform digit recognition on the projected screen from the Android table installed on the bike.
Metrics are exposed at /metrics REST endpoint so they can be consumed by a wide range of applications.

As an example, the code in this project can be used to integrate with zwack-bike to allow Peloton® Bike owners to take rides on Zwift.
Diagram of the project:
Diagram of the project

Requirements

Installation

Running the Peloton Bike Metrics Server

Debug Flags

Use -d or --debug flag to start the server in the debug mode:

python metrics-server.py -d

Use -p or --port flag to change the default web server port:

python metrics-server.py --port 5001

Known limitations

Donations

If you like this project, please consider doing the following:

BuyMeACoffee