CODESYS - the IEC 61131-3 automation software

PiCam stream in webvisu
Page 1 of 1

Author:  Edwin Schwellinger [ Mon Jul 28, 2014 9:24 pm ]
Post subject:  PiCam stream in webvisu


maybe some of you need the info how a PiCam stream could be inserted in the CODESYS webvisu.
Sure the official element in the visu will come to the 3.5SP6 release (end of the year)
but this is an example how to use it now: give us an RPi Cam Web Interface this is also nice to play around with the mode/settings for raspistill and raspivid: ... 43&t=63276

sudo apt-get update
sudo apt-get dist-upgrade
sudo rpi-update

git clone
cd RPi_Cam_Web_Interface
chmod u+x
./ install

after reboot you could execute the RPi_Cam_Web_Interface by
this is hosted by apache webserver independent from webvisu (this we use to check all settings of the cam)

Using the stream in our CODESYS webpage:
copy webvisuwithcameraoverlay.htm (edit in that file the IP address of the pi) to the pi into the 'visu' directory (by codesys filebrowser)
instead of calling your CODESYS Wevisu http://ip_adress_pi:8080/webvisu.htm use now http://ip_adress_pi:8080/webvisuwithcameraoverlay.htm


Author:  fixstuff555 [ Fri Feb 13, 2015 6:53 am ]
Post subject:  Re: PiCam stream in webvisu


Is this feature possible yet? Is there an example project with a webcam embedded in the visualization?

I tried following the first post, with the address, but all I get is a empty box along with the rest of my visualization. I did edit the htm file with the ip address updated in it (attached also)

I remember mention of this feature being better integrated into SP6 somewhere. I have seen the webpage object in the toolbox, but if I embed the image, using these variables for my parameters, i can't get video working. This test address is working for me, I can view either in mjpeg streaming, or h.264. I have the resolution set to 320x240 at 30fps.

showurl: BOOL:=TRUE;

Any advice on how to proceed? I've tried everything I know for now.

Author:  Edwin Schwellinger [ Fri Feb 13, 2015 8:10 am ]
Post subject:  Re: PiCam stream in webvisu


we'll release (next week) with the 3.5.SP6 Package an example beside the other new features, Piface LCD etc..


Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited