-
-
Notifications
You must be signed in to change notification settings - Fork 40
SS2K Overlay #286
Replies: 2 comments · 10 replies
-
That's actually pretty cool! Would there be a way to show connected devices and perhaps the power table as well? How about future ability to change settings and other things from the ui? |
Beta Was this translation helpful? Give feedback.
All reactions
-
We can show there everything that we get out of the logs, also connected Devices and power table. Electron works on Windows, Linux and MacOS if you ran Zwift on Tablet it's not a good solution. |
Beta Was this translation helpful? Give feedback.
All reactions
-
I run Zwift on Windows. Not sure what the userbase primarily uses, but at a minimum (SS2K Overlay) seems like a great and easy diagnostic tool. I've never built anything with Electron, but I looked over the code and it seems to be all pretty easy Javascript, so that's very nice. After doing some research on it today, would it be worthwhile (or feasible) to think about using Apache Cordova for this? I've never worked with it either, but it seems similar to Electron and if it did everything you need it to, it might allow a same code base native SS2K settings app for Windows, Mac, iOS and Android once we built out all the features. Edit: and maybe Cordova is getting outdated? If Electron or Cordova supports BLE, we might have the ability to do some of this via the custom characteristic vv. SmartSpin2k/src/BLE_Server.cpp Lines 500 to 811 in fedebad
|
Beta Was this translation helpful? Give feedback.
All reactions
-
For the overlay I must be able to create a window on top of Zwift without border , menu, frames, ... BEL could work with nobel and electron, for PWA I think its not implemented. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Yes, PWA Is probably the best way. I think they're all competing for the same space and it was hard for me to tell which has the most support and user base with limited research. Will PWA allow the always on top window in windows Zwift that you like? |
Beta Was this translation helpful? Give feedback.
All reactions
-
Possibly we could create a TCP socket on the SS2K as well. I'm not certain if that causes issues with the BLE and it would need to be tested. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Not sure it a PWA would stay always on top. A PWA is more or less a web application running in the browser. But a simple workaround would be to open zwift and move the pwa-window over the zwift screen. Yes TCP socket would maybe be the best solution or a web socket, but I saw the discussion to integrate AsyncWebServer an the problems 😒. A HTTP based communication would be nice because its supported well by browsers. |
Beta Was this translation helpful? Give feedback.
All reactions
-
We could always try testing it (asynchronous web server) again . There's been a lot of changes in the last year. @h2zero , do you know if NimBLE and async are working well together nowadays? |
Beta Was this translation helpful? Give feedback.
All reactions
-
Also, I was thinking you could use the existing http get method within the app to get the config data via JSON or make a new http handler that sends the JSON via debug output (udp). |
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
I haven't done any recent testing with async + BLE might be time to try it again. |
Beta Was this translation helpful? Give feedback.
All reactions
-
I think I have an answer: h2zero/NimBLE-Arduino#323 (comment) |
Beta Was this translation helpful? Give feedback.
All reactions
-
Dang! There it is again 😅 |
Beta Was this translation helpful? Give feedback.
-
I've create an electron app to show smart spin 2k data during workout.
https://github.com/MarkusSchneider/SmartSpin2kOverlay
The data is collected via UDP (from the logs).
@doudar if you think this is interesting, you could add it to the https://github.com/SmartSpin2k repository and we can work together on the app.
We can also display any other data like Shifter step / Gear in simulation mode or what every we want to collect.
Any feedback is welcome.
Greetings
Markus
Beta Was this translation helpful? Give feedback.
All reactions