====== Let's Make a ComfilePi HMI ====== When the ComfilePi is turned on, the web browser is automatically executed, and when WebVISU is displayed in full screen, it operates like an HMI. 1. The CODESYS executable file can be started automatically on power off and on. {{ :comfilepi:codesys:autostart.png?nolink |}} or {{ :comfilepi:codesys:autostart2.png?nolink |}} 2. Edit autostart file. ''sudo nano .config/lxsession/LXDE-pi/autostart'' {{ :comfilepi:codesys:editautostart.png?nolink |}} {{ :comfilepi:codesys:editautostart2.png?nolink |}} @xset s off @xset -dpms @xset s noblank @apropos chromium @chromium-browser -kiosk --start-fullscreen http://localhost:8080/webvisu.htm Type this to save it: ctrl+X, Y, Enter The result demonstrated in the video below
===== Hide Cursor ===== Hiding the cursor will make it appear more professional. 1. Install unclutter. sudo apt-get install unclutter 2. Edit Autostart file. sudo nano .config/lxsession/LXDE-pi/autostart {{ :comfilepi:codesys:hidecursor.jpg?nolink |}} Add this. @unclutter -idle 0.1 Check result
It is also possible to hide the mouse cursor permanently by adding using [[comfilepi:hide_the_mouse_cursor:index|this method]]. [[comfilepi:codesys:index|CODESYS with the ComfilePi]]