How to set up a Raspberry Pi Kiosk - Launch a Fullscreen Webpage on Boot!

Thanks! I’ve decided to go a different route. But I let KI create a script - and it worked with xprintidle. :slight_smile:

2 Likes

Great guide! Thanks!

Implemented all for X11, boots ok, navigates to correct webpage etc, but I’m struggling with xdotool. I’m extremely fresh with this so fairly sure it’s a user issue!

I’ve tried to create a script to scroll down on webpage to view a specific, static location.

Tried using “click 5” and also “key Down”. Both work fine when I execute, but behave strangely on boot. Seems to repeat itself scolling way down after some time. Even delayed startup to give system time to wake up

sleep 90
xdotool key Down Down Down Down
done

Any help would be awesome!

Hey @Ross242430, welcome to the forums!

From my understanding adding done to this kind of script can result in the lines above it being treated as a loop which could be the cause of your issues.

I would try changing this code to something like this:

#!/bin/bash
sleep 90
xdotool key Down Down Down Down

and see if that changes anything.

Hope this helps! :slight_smile:

3 Likes

Thank you so much! I’ll try this as soon as i get home in a week. I spent far too long trying to find a solution to this before reaching out! Will let you know if it works. :blush:

3 Likes

Hi, I could use some help. I have followed the instructions and have been able to replicate this kiosk using the URL in the tutorial. However, I get the following error when I put the website I am trying to use.
“Unable to load display URL = ‘/?major=4’ . it may be incomplete or missing some details. Please share the screenshot with support”

I am able to put the URL in Chromium and bring up the webpage. Below is a copy of my script.

sleep 4
/bin/chromium-browser --kiosk --ozone-platform=wayland --start-maximized --noerrdialogs --disable-infobars --enable-features=OverlayScrollbar MangoDisplay &

I put zeros where to replace the numbers of my actual webpage for privacy. Any assistance would be much appreciated.

You have not included the page that you want to display. The url should be something like https://portal.mangodisplay.com/page1?major=4&minor=00000&macaddress=MD0000000000

Hey @Justin285177, welcome to the community!

From what I can see you may have more luck if you put your URL inside of quotation marks to ensure the whole thing is read as expected.

I would give this script format a go (changing the URL to your specific page).

sleep 4 /bin/chromium-browser --kiosk --ozone-platform=wayland --start-maximized --noerrdialogs --disable-infobars --enable-features=OverlayScrollbar "https://portal.mangodisplay.com/?major=0&minor=00000&macaddress=MD0000000000" &

Hope this helps!

1 Like

hello i followed raspberry-pi-kiosk-mode-setup is there a way to get a on screen keyboard to popup in kiosk mode can not figure it out!

thanks

Hello

I did everything as described in the instructions but somehow the autostart function doesn’t work. But if I run the file directly, everything works as it should. But when I restart pi nothing is executed but only the desktop is displayed. Could anyone help me with what I could do?
Thanks

Hi Daniel,

You will be able to get an onscreen keyboard for your setup by following this guide: Touch Screen Configuration: Kiosk mode + virtual keyboard setup

Hi there, I’m following this to set up a catalog kiosk for a library. however i need to block people from accessing the social links on the webpage. is there a way for me to whitelist/blacklist domains?

1 Like

Hey @Zedzzzzzz,

Unfortunately, this doesn’t seem to be something that the Wayland software is capable of. The standard way to blacklist domains is by using a DNS blocker but in your case, this may be a few steps too complex.

My recommendation would be to locally edit the webpage to remove the links, then save the page as a HTML doc on the Pi. Depending on the specifics of the webpage you are trying to display this may require some trial and error but this method seems easier than the alternative to me.

1 Like

how to install keyboard on-screen ,i have installed last raspberry OS full on an raspberry pi 4 and display 2 raspberry,i did what you answer to Daniel285938 on dec2024,but does not work,thanks for the help

1 Like

Hey @sergio293956, welcome to the forums!

The commands to install this particular on-screen keyboard are as follows

sudo apt-get upgrade
sudo apt-get install onboard
sudo apt install at-spi2-core
sudo apt-get install onboard 

Did you encounter any errors when running these commands or when following the rest of the install guide?

Hi,
have you found a solution for your issue? I am having exactly the same after a clean install.
Running the script manually opens up the browser just fine. Restarting is just showing the desktop.

I have to answer myself.
I am no expert to Raspberry Pi and was searching documentation for kiosk setups for a while before posting here, without finding a working solution for my issue. However, I now found the final hint.

In the raspi-config “Advanced Options”, “A6 Wayland”, Wayland can be activated. Although it is mentioned to be active automatically in current setups, it obviously was not for me.
After doing so, the autostart did run just fine.

1 Like

Hi @Markus295309

Great to hear that you managed to get that one sorted :slight_smile:

1 Like

Hello

I did everything as described in the instructions and it all works but like Tismo279665 at the very begin of the thread my program stops working and chromium closes going back to my desktop, the pi does not crash or shut off. i would like this to run continually, I checked my Pi temps and all is in normal range only thing this pi runs is the kiosk and a fan. the script that i have running is :Sleep 4
/bin/chromium-browser --kiosk --ozone-platform=wayland --start-maximized --noerrdialogs --disable-infobars --enable-features=OverlayScrollbar http://flightaware.com/(My Flight1) http://flightaware.com(MyFlight2) http://windy.com(MyLocation) &

1 Like

Hi @Emmanuel296244, welcome to the forums!

It looks like you are trying to display a live flight map, which is awesome! This will be a fairly graphically heavy activity for the Pi and will use a fair amount of resources. Potentially more than your Pi has available. Would you be able to tell us more about the specific Pi model you are using?

As for your script itself, I have a few minor suggestions. The ‘Sleep 4’ line is case sensitive and should be ‘sleep 4’ in lowercase for best results. I would try and run this with only one website at a time to see if that changes anything. I tested this out on one of our Pi 5s and didn’t run into any issues with the following script.

sleep 4
/bin/chromium-browser --kiosk --ozone-platform=wayland --start-maximized --noerrdialogs --disable-infobars --enable-features=OverlayScrollbar https://www.flightaware.com/live/airport_status_bigmap.rvt?airport=KATL &

This is using the Hartsfield-Jackson Intl Airport in Atlanta, which is apparently the busiest airport in the world, which would not have been my guess! Hopefully, the large amount of traffic will act as a bit of a stress test for this one.

Hope this helps! :slight_smile:

2 Likes

Thank you,
I will try running one at a time, if that is the issue would there be a way to open one tab “windy.com” for 30Sec - close tab - open another tab “Flightaware.com” and so on in a loop. then only one tab would be open at a time.
For the ASA Flight Tracking and History - FlightAware addresses I have it directed to two different flights 55 and 86, every day the flight takes off with the same flight numbers so it refreshes and grabs the newest flight info. I’m not so much looking at a whole airport area map if that helps.
I am using a Pi 4 Model B Rev 1.4
updated to bookworm
Ram 7.6G - Used 499M - Free 6.3G