THttpServer and a web page autoupdate?

Dear ROOT experts,

I’m running a data quality monitoring job with THttpServer rendering the histograms.
I’m setting the URL=http://localhost:8877/win4/?monitoring=2000 in hope that the page would be updated every two seconds. That doesn’t happen. I can update the page manually by clicking on a “Reload RBrowser” icon, but an automatic update seems to be disabled.

The outcome doesn’t depend on whether I’m trying to display a browser page or a page displaying a canvas with a histogram drawn on it.

Most likely, I’m not specifying all needed options, so I’d appreciate an expert advice on how to specify a ‘refresh page’ behavior.

– thanks, regards, Pasha

_ROOT Version: 6.32.08
_Platform: alma linux 9
_Compiler:gcc13


Hi,

You are showing screenshot of RBrowser.

This kind of application does not support monitoring URL parameter.
But you can simply use TCanvas functionality like:

c->Modified();
c->Update();

And call this every time when you want to update drawing in the RBrowser.
Most convenient way is to use TTimer to configure regular actions in the ROOT.

Regards,
Sergey

Sergey, thanks a lot !