Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
v2
  • Loading branch information
gazhay authored Nov 25, 2024
1 parent d47ae98 commit f320682
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## Complete rework version 2

- Rewrote most of the wifi and BLE connection code to make it more robust
- Improvements to on dongle display
- Improvements to sauce injection
- Added a query to the bike to get the teeth numbers of each ring.
- Inject the teeth into the athlete data on sauce.

- You still need to compile with very specific libs for arduino see notes below.

## This Fork

- Sketch updated for [Lilygo Dongle](https://www.lilygo.cc/products/t-dongle-s3)
Expand All @@ -10,7 +20,17 @@
## Data injected into sauce4zwift (into the "self" athelete)

```
{ "KICKRgear":{"cr":<frontgear>,"gr":<reargear>}, "KICKRpower":<power>, "KICKRgrade":<grade>, "KICKRtiltLock":<tilt> }
{
"KICKRgear":{"cr":<frontgear>,"gr":<reargear>},
"KICKRpower":<powerInWatts>,
"KICKRgrade":<inclineOfBikeIn%>,
"KICKRtiltLock":<tiltLockBoolean>,
"KICKRbrake":<BrakeInfo>,
"KICKRconfig":{
"front":[30,39,50], // chainring teeth counts
"rear":[21,19,18,17,16,15,14,13,12,11] // rear cog teethcounts
}
}
```

You *must* configure these lines for your own use
Expand All @@ -22,10 +42,6 @@ const char* password = "<yourPassword>";
const char* serverName = "http://<sauceServer>:1080/api/rpc/v1/updateAthleteData";
```

You *may* have to increase the timeout value here if your network is slow (value is ms)

```http.setConnectTimeout(100);```


# kickrbike_display
Wahoo Kickr Bike external display
Expand All @@ -36,19 +52,20 @@ Runs on LiLyGo T-Display.
* ~~chainrings/cassette display~~ (commented out on this version)
* lock / unlock display

* now with gear teeth counts too


enjoy~

# Recent arduino versions issues

It appears that recent versions of the board firmware and TFT lib are incompatible.
I can get them to compile and upload firmware with
I can get them to compile and upload firmware with

* esp32 v2.0.12
* TFT_eSPI v2.5.0

You will also need Arduino IDE v2.2.1 (the latest will compile but TFT screen will be blank)

The issue is reported to [Lilygo](https://github.com/Xinyuan-LilyGO/T-Dongle-S3/issues/26) but they don't seem to be monitoring or responding.
The issue is reported to [Lilygo](https://github.com/Xinyuan-LilyGO/T-Dongle-S3/issues/26) but they don't seem to be monitoring or responding.
Anyone with more knowledge is free to PR anything that may help, but I don't have the time to continue bug hunting.

0 comments on commit f320682

Please sign in to comment.