Openhabian Web browser starting using LCD touch panel

Hello Community.
There is LCD touch panel that I use with Raspberry PI where OpenHAB server is running. But when I switch on raspberry, LCD touch panel display only console. But I want to display web browser with OpenHAB UI instead of this console. I have read a lot of topics on this Forum and do a lot of things (install raspberrypi-ui-mods, web browser…) but hothing help. What must I do to comply this task ?

Below is my setup for running a RPi based touchscreen setup (based on Debian). Key parts are:

  1. Launch X-Windows (check that you have the user created)
  2. Launch a fullscreen chrome with the HABPanel URL

Hope that helps get you started. Otherwise ask away.

Thank you for your answer, but I can’t open your links. Can you describe in detail what should I do ?

Github appears to be down. Give them a moment and the links should work.

If you use DietPi, there is an option in the menu to start Chromium in kiosk mode.

I added a delay / sleep to allow openHAB2 to start and set the URL to

http://127.0.0.1:8080/habpanel/index.html

I’ve also learnt how to do it and now I have a BeagleBone Black (Debian 9) starting up with just a Chromium browser in an Xinit session.

Can you describe it in detail ?

Github does not work yet. Can you describe it manually ?

It’s super easy if you use the DietPi version of Debian for your Pi.

There is an option in the config menu to start Chromium, which prompts you for the URL.

If you want to add a delay, you only need to add a sleep command into the chromium auto startup script.

Alternatively, a simple Google search returns all kinds of in depth explanations on how to achieve a stand alone chromium browser, with all the different application options.

https://www.google.com/search?client=ms-android-tmobile-gb&sxsrf=ALeKk02rC5krZagWHHetp9tOrFb9UbU5Ag%3A1594627548231&ei=3BUMX7rRDZrS1fAP1YaP2AU&q=raspberry+pi+chromium+kiosk+autostart&oq=dietpi+chromium+kiosk

If you want to see how it’s done in DietPi, there’s a link to the point in the video at the end of this topic post

I use OpenHABian. Is it possible (to achieve a stand alone chromium browser) with OpenHABian ?

In theory, yes.

  • I don’t have a Raspberry Pi

  • I therefore don’t use Openhabian OS image.

However

If you can install chromium & xinit using apt-get, then it’s just a matter of creating a method of auto starting chromium with xinit with the options you want.

  • Screen resolution
  • other Chromium options
  • Ending with the URL

Which needs a command line along the lines of :-

xinit /usr/bin/chromium-browser --kiosk --url http://127.0.0.1:8080/habpanel/index.html

I’m happy to zip up the service file and scripts I use (when I get to my office), on the strict understanding that I can’t support you much further, for the simple reason that I’m not entirely sure how I’ve achieved it in the first place.

However, I try to write scripts so that I can return to them later, so I’d like to think that they are easy enough to reverse engineer.

links now updated.

1 Like

It seems to me that it works. I do following instruction:
file sudo nano /etc/rc.local
and then add following line:
xinit /usr/bin/chromium-browser --no-sandbox --no-first-run --window-size=1920,1080 --noerrdialogs --start-fullscreen
–start-maximized --disable-notifications --disable-infobars --kiosk --incognito http://localhost:8080 &

But it will be good for me to see your ZIP with scripts.

1 Like

Links don’t find yet.

Excellent.

:confetti_ball:

Pop a

sleep 5m

Command before the chromium line, just so that it gives openHAB2 time to start up.

I’ll upload the zip, when I get to my office

Hi

For what they are worth, the files I use are in this ZIP

http://mdar.co.uk/dl/forum_assets/chromiumstart.zip

I hope they are of use to you.

Regards,

Stuart

1 Like

Thank you

1 Like