From f320682ed88d5d5ddbd191c31369b86c492361fc Mon Sep 17 00:00:00 2001 From: GazHay Date: Mon, 25 Nov 2024 19:37:45 +0000 Subject: [PATCH] Update README.md v2 --- README.md | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index fbe6d47..670707b 100644 --- a/README.md +++ b/README.md @@ -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) @@ -10,7 +20,17 @@ ## Data injected into sauce4zwift (into the "self" athelete) ``` -{ "KICKRgear":{"cr":,"gr":}, "KICKRpower":, "KICKRgrade":, "KICKRtiltLock": } +{ + "KICKRgear":{"cr":,"gr":}, + "KICKRpower":, + "KICKRgrade":, + "KICKRtiltLock":, + "KICKRbrake":, + "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 @@ -22,10 +42,6 @@ const char* password = ""; const char* serverName = "http://: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 @@ -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. -