SauceLLC / sauce4zwift

Sauce for Zwift™
GNU General Public License v3.0
114 stars 26 forks source link

More info on built-in webserver #2

Closed stuartlynne closed 2 years ago

stuartlynne commented 2 years ago

Can you provide some more information on what data is available via the built-in webserver and how to use it?

Thanks!

mayfield commented 2 years ago

Here's a simple websocket demo in python

https://github.com/SauceLLC/sauce4zwift-python-client

And the HTTP REST API is pretty simple, just go to http://locahost:1080/api and it will show you a list of resources that you can drill into. It's all JSON. The RPC API is rather propriatary but really simple. I'd just open one of the windows on a browser and poke around with devtools to see how I'm using it. Non of the JS is transpiled or minified.