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

Find and share HowTos to various installations / configurations!
Search

Post Reply
8 posts • Page 1 of 1
Sector97
Posts: 13
Joined: Thu Feb 02, 2023 3:26 am

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

Post 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.

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

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

Post 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

gschijndel
Posts: 373
Joined: Tue Jan 15, 2019 3:12 pm

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

Post 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

Sector97
Posts: 13
Joined: Thu Feb 02, 2023 3:26 am

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

Post by Sector97 »

Cheers, thank you for all the suggestions.

gschijndel
Posts: 373
Joined: Tue Jan 15, 2019 3:12 pm

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

Post by gschijndel »

If the logviewer is opened with openLogViewer it should be possible to dock it

Sector97
Posts: 13
Joined: Thu Feb 02, 2023 3:26 am

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

Post 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.

dposokhov
Posts: 3
Joined: Mon Oct 04, 2021 10:11 am

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

Post 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

gschijndel
Posts: 373
Joined: Tue Jan 15, 2019 3:12 pm

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

Post 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.

Post Reply
8 posts • Page 1 of 1