roguedarkjedi / dogcam-ai

The AI based camera focus controller for dogcam
MIT License
1 stars 0 forks source link

Add global messages to clients #21

Closed roguedarkjedi closed 3 years ago

roguedarkjedi commented 3 years ago

Specifically this asks for the ability to push streamer status messages to websocket clients allowing for some amount of debugging without having to log into the box itself and look at the command line console

roguedarkjedi commented 3 years ago

Going back through this code, AI connects to the local ws instance, and as such, doesn't need to worry about sending to all clients, it just needs to send status updates. We can do this easily via the main thread should we want to.

Easiest method is to have the streamer have a function that returns a status string of some sort, which clears upon pulling in the main file. Slight overhead for string functionality but overall not difficult to accomplish.

roguedarkjedi commented 3 years ago

This is done in the base project and implemented for this as well