Page 1 of 1

Is it possible to Embed the OA Log Viewer into a page or panel

Posted: Mon Nov 13, 2023 12:25 am
by Sector97
I was wondering if there was an easy way to embed the OA Log viewer (pictured in the link into a page/pnl either as an embedded module or child panel.
https://postimg.cc/kDW8hSPN

There are a couple of test pages we use for development and it would nice to incorporate the Log Viewer into these pages directly for testing and debugging purposes. It's a small thing but it would be helpful in cutting down all the window juggling.

Re: Is it possible to Embed the OA Log Viewer into a page or panel

Posted: Wed Nov 22, 2023 3:52 pm
by leoknipp
The log viewer is an own executable "WCCOAtoolLogViewer" and cannot be embedded into to a runtime panel.

Best Regards
Leopold Knipp
Senior Support Specialist

Re: Is it possible to Embed the OA Log Viewer into a page or panel

Posted: Thu Nov 23, 2023 1:29 pm
by gschijndel
Perhaps it is cheaper to buy and add a second monitor to the system, than spending time on getting everything on a single monitor.

However here are some ideas to prevent the window juggling:
  • Perhaps the logviewer can be made visible by lowering the module
  • Put the windows side by side
  • Create your own logviewer, the FileSystemWatcher can help with that

Re: Is it possible to Embed the OA Log Viewer into a page or panel

Posted: Mon Nov 27, 2023 1:15 am
by Sector97
Cheers, thank you for all the suggestions.

Re: Is it possible to Embed the OA Log Viewer into a page or panel

Posted: Thu Jan 04, 2024 7:34 am
by gschijndel
If the logviewer is opened with openLogViewer it should be possible to dock it

Re: Is it possible to Embed the OA Log Viewer into a page or panel

Posted: Mon May 27, 2024 3:19 am
by Sector97
@gschijndel regarding your statement "If the logviewer is opened with openLogViewer it should be possible to dock it"

Would you be able to provide an example please on how to do this programmatically.

The docs https://www.winccoa.com/documentation/ ... iewer.html
seem to indicate it should be possible:

"The Log Viewer will either be docked to the module it was opened for or displayed as a separate window. The separate window can be docked manually, the docking state will not be changed in code, so the Log Viewer will open as separate window again after it is closed."

But I'm unsure how to do this in code. Any help would be appreciated.

Re: Is it possible to Embed the OA Log Viewer into a page or panel

Posted: Wed Jun 19, 2024 10:07 pm
by dposokhov
Installing OBS will help. And then you need to make a panel WebView_ewo1 with a script

main()
{
this.url("http://localhost:5000/"); // docker run --rm -p5000:5000 ghcr.io/niek/obs-web
}



1.Installation of OBS Studio:

Download and install OBS Studio from the official website.


2.Installation of the OBS-WebSocket Plugin:

Download and install the OBS-WebSocket plugin from the official repository.


3.Configuration of OBS Studio:

Open OBS Studio and add a screen capture source for your application.
Configure the streaming settings.


4.Configuration of OBS-WebSocket:

In OBS Studio, go to Tools -> WebSocket Server Settings.
Enable the WebSocket server and set the port (default is 4455).


5.Using the Docker:

docker run --rm -p5000:5000 ghcr.io/niek/obs-web


This command will start a server on port 5000, which can be used to interact with OBS-WebSocket.


Now I have problems with OpenGL 2.0 but I hope it's only my local problems. This solution perfectly works in browser

Re: Is it possible to Embed the OA Log Viewer into a page or panel

Posted: Thu Jun 20, 2024 1:44 pm
by gschijndel
It seems that the function has been updated with 3.20, it looks like it has an optional argument to force the logviewer to be docked.
The translator 2.0 has a docked logviewer (it does not use the optional argument), so now the documentation seems to be correct.