I would lite to acquire a camera ip image and video and display in Codesys visualization.
The main problems are with Codesys Webbrowser that is not working.
System description:
Codesys for raspberry pi4
IP Camera
Trials done:
- Ip settings by variable PLC_PRG.sPath (see image var path and attached project)
- IP settings manually : 'http://192.168.0.3/'(see image manual path and attached project)
- IP settings manually : "http://192.168.0.3/" (see image manual path2 and attached project)
- IP settings manually : http://192.168.0.3/ (see image manual path 3 and attached project)
IP accessible by RPI 4 Web browser (see Raspberry web browser image)
Probems found:
Webbrowser not working in any case.
I would like to know how to how to let Codesys Webbrowser works.
Thats the webbrowser in the IDE not the webbrowser of the raspi.
Please dont use google.com for your tests, they don't allow a browser to be included in a html site with the iframe tag.
Please also check the browser developer console for any errors.
Best regards,
Marcel
Last edit: m.prestel 2022-02-17
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is your aim to access the visualization through the CODESYS Devlopment System?
Or is your aim to access the visualization from the development PC, using the Web Visualization? So that means you open Google Chrome and type
http://<raspberryIP>:8080/webvisu.htm
For me, even after I fiddled with your CAMERA .project a bit, I was only able to get WebVisu to work.
Cheers,
i-campbell
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
after many trials i did not find a way to overcome the issue with https websites.
I have done many tests with differents browsers, without any success.
can you please help me in how to show the camera website in the webbrowser tool?
I have attached some images.
please take a look.
the firefox windows translation is below:
Cannot open this page in Firefox
To protect your security, 192.168.0.3 does not allow Firefox to display the page when it is included within another site. To view this page you need to open it in a new window.
I would lite to acquire a camera ip image and video and display in Codesys visualization.
The main problems are with Codesys Webbrowser that is not working.
System description:
Trials done:
- Ip settings by variable PLC_PRG.sPath (see image var path and attached project)
- IP settings manually : 'http://192.168.0.3/'(see image manual path and attached project)
- IP settings manually : "http://192.168.0.3/" (see image manual path2 and attached project)
- IP settings manually : http://192.168.0.3/ (see image manual path 3 and attached project)
Probems found:
I would like to know how to how to let Codesys Webbrowser works.
Can someone help me please?
Thanks you all
Last edit: dagi89 2022-02-05
Is it possible that CODESYS and the raspi are in different networks?
Is 'http://192.168.0.3/' reachable by a browser on your desktop/laptop?
Is it possible to show something different in the CODESYS webbrowser? E.g. this forum?
Last edit: m.prestel 2022-02-07
Dear m.prestel
i hove done many tests using the same LAN
Now i can access camera from PC and from Raspberry, all by stati ip.
Even this the webbrowser is not working.
Please dou you have an additional advice?
Thanks a lot.
dagi89
I ask you again, is it possible to display other websites like this forum in the webbrowser?
Yes i have tried with google and wikipedia and no way to see the web page.
You are setting show to TRUE?
Yes.. I have forced manually.
I attach some images
Last edit: dagi89 2022-02-16
Thats the webbrowser in the IDE not the webbrowser of the raspi.
Please dont use google.com for your tests, they don't allow a browser to be included in a html site with the iframe tag.
Please also check the browser developer console for any errors.
Best regards,
Marcel
Last edit: m.prestel 2022-02-17
Hi @dagi89 ,
Is your aim to access the visualization through the CODESYS Devlopment System?
Or is your aim to access the visualization from the development PC, using the Web Visualization? So that means you open Google Chrome and type
For me, even after I fiddled with your CAMERA .project a bit, I was only able to get WebVisu to work.
Cheers,
i-campbell
Thanks you all,
I managed to overcome the problem with the WebVisu visualizzation,
unfortunately works only with http websites, no way to work with https.
I am tring to follow the following links:
https://help.codesys.com/api-content/2/core_visualization/3.5.17.0/en/_visu_execute_webvisu/
https://forge.codesys.com/forge/talk/Runtime/thread/0451764381/
to change WebVisu from to HTTP to HTTPS hooping that that the webbrowser will work with https websites.
Thanks you.
Dagi89
Dear all,
after many trials i did not find a way to overcome the issue with https websites.
I have done many tests with differents browsers, without any success.
can you please help me in how to show the camera website in the webbrowser tool?
I have attached some images.
please take a look.
the firefox windows translation is below:
Cannot open this page in Firefox
To protect your security, 192.168.0.3 does not allow Firefox to display the page when it is included within another site. To view this page you need to open it in a new window.
Thanks you all,
Best regards.
Daniele.
Not much we can do here.
The website you are trying to use does not allow being included in another website.
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options for the header 192.168.0.3 is sending to your browser.
Best regards,
Marcel