It's not an issue, that's why I'm not asking in Get Help section.
I have OctoPi (Version 1.0.0, running on Raspberry Pi 3 Model B Rev 1.2), with OctoPi (Version 1.11.5) and Classic Webcam plugin. I have also MQTT driven powering off of printer (plugins: MQTT/PSU Control/PSU Control - MQTT)
[env decription, not needed to read]
My webcam has its own light (which is fine), but its fully analog - powered from USB with only potentiometer to set brightness. I cannot switch the light off when printer is not in use, using any software solution.
So, as for now, I added simple service, which takes mqtt message (the same which turns off the printer) and cuts RPi USB ports power. When I (Octoprint or any mqtt client) sends mqtt message to power on the printer, my custom service turns on USB power and restarts webcamd.
The last part I need to do manually: reload stream in UI.
[end of description]
How to reload webcam stream in UI (periodically, on webcamd restart, or on any trigger?)?