Websockets - noob 'how to' guide for my Dashboard learning project

Yes, that is basically how the built-in Dashboard app does it. Just that it also has some extra system access to create a menu and so on.

:slight_smile:

1 Like

Hey @markus. Can you help me to understand how to serve out the html from the hub directly please? Not only would it save me some hassle with my Pi but I'm thinking it may also solve some CORS issues I'm facing. Thank you!

First, just the HTML? To also serve graphics objects etc becomes rather complex.

For serving the HTML you use OAuth endpoints from an App, the HubiGraph App is a good example of that being done:

https://github.com/tchoward/Hubitat/blob/master/hubitat_legacy_line_graph.groovy

It is to late for a better example, but maybe this will serve as a start? Ask again if not. :slight_smile:

1 Like

Thanks. Nearly 2am mate, sleeeeep.

1 Like