jdonth
Posts: 7
Joined: Fri May 27, 2016 8:22 pm

Re: Minimal Kiosk Browser

Sat May 28, 2016 1:39 am

I can use either approach. If I use matchbox what are the config settings or if I use the non-window manager option what are the command line (or config) options? Thank you for your assistance.

gkreidl
Posts: 6345
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Minimal Kiosk Browser

Sat May 28, 2016 5:02 am

jdonth wrote:I can use either approach. If I use matchbox what are the config settings or if I use the non-window manager option what are the command line (or config) options? Thank you for your assistance.
With a window manager:
-CKAV...
without
-CKANMV..
If your screen size is not 1920x1080, you have to add the matching size number in the second case.
Add J to enable Javascript and E to enable cookies, if you need them.

"C" (commands enabled) is only needed, if you use HTML files from your home folder and want to use the command interface.

Add the keyboard shortcuts you need, at least "q" to close the browser.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

jdonth
Posts: 7
Joined: Fri May 27, 2016 8:22 pm

Re: Minimal Kiosk Browser

Sat May 28, 2016 2:10 pm

So close but it still doesn't work.

I have this line in my rc.local: xinit /home/pi/kiosk

and the contents of the /home/pi/kiosk file is:
#!/bin/bash
matchbox-window-manager &
kweb -CKAVJH+-zbhrqfpoklgtjneduwxyavcsmi#?!., http://google.com
exit 0

Thoughts?

stretch
Posts: 38
Joined: Sat Sep 15, 2012 8:53 am

Re: Minimal Kiosk Browser

Sat May 28, 2016 3:32 pm

gkreidl wrote:
stretch wrote: Thanks for that i've gone back to minimum and installed xorg, xinit, lxterminal, tint2, xterm, youtube-dl and kweb. When i startx I get a simple terminal window where I enter the kweb options and the page opens. How do I exit kweb while in kiosk mode? how do I boot into X and start kweb automatically?
You should use a kiosk script and xinit. In your case the kiosk script only contains
kweb -options url
Include at least one keyboard command in the options string: q
Then you can close kweb with ALT+q
You'll find more details in chapter 15 of the manual.
I'm up and running now apart from the fact I have a white vertical bar on the right side of the screen.

stretch
Posts: 38
Joined: Sat Sep 15, 2012 8:53 am

Re: Minimal Kiosk Browser

Sat May 28, 2016 3:33 pm

jdonth wrote:So close but it still doesn't work.

I have this line in my rc.local: xinit /home/pi/kiosk

and the contents of the /home/pi/kiosk file is:
#!/bin/bash
matchbox-window-manager &
kweb -CKAVJH+-zbhrqfpoklgtjneduwxyavcsmi#?!., http://google.com
exit 0

Thoughts?
I don't use a window-manaher at all just have xorg installed. Do you have X running? my script is

#!/bin/sh
sudo startx &
kweb -KAVMNRq http://www.domain.com

gkreidl
Posts: 6345
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Minimal Kiosk Browser

Sat May 28, 2016 3:52 pm

stretch wrote: I'm up and running now apart from the fact I have a white vertical bar on the right side of the screen.
One pixel vertical line or more?
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

gkreidl
Posts: 6345
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Minimal Kiosk Browser

Sat May 28, 2016 3:54 pm

stretch wrote:
I don't use a window-manaher at all just have xorg installed. Do you have X running? my script is

#!/bin/sh
sudo startx &
kweb -KAVMNRq http://www.domain.com
Why "sudo startx"?
And on a full Raspbian system this will start a desktop.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

jdonth
Posts: 7
Joined: Fri May 27, 2016 8:22 pm

Re: Minimal Kiosk Browser

Sat May 28, 2016 4:12 pm

I have my kiosk mode kweb working. I used option "6" (1366x768) on a screen size of 1360x768 and its' close enough.

I have several questions (if you have the time):
1) Why do I need to use a window manager?
2) If I don't, what features do I lose by not using one.
3) By not using a WM do I gain in memory or performance?
4) Any way to set a custom screen size rather than 0-9?

Thank you very much. I am enjoying using kweb.
Joe

gkreidl
Posts: 6345
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Minimal Kiosk Browser

Sat May 28, 2016 4:56 pm

jdonth wrote:I have my kiosk mode kweb working. I used option "6" (1366x768) on a screen size of 1360x768 and its' close enough.

I have several questions (if you have the time):
1) Why do I need to use a window manager?
2) If I don't, what features do I lose by not using one.
3) By not using a WM do I gain in memory or performance?
4) Any way to set a custom screen size rather than 0-9?

Thank you very much. I am enjoying using kweb.
Joe
I use a few window manager commands (maximize, full screen and new windpw), which won't work without a window manager (therefor the N, M and R options).
Using it without a window manager has not been thoroughly tested.
No, the resolutions are hard coded. It would require a minimal code change and recompile to add a custom resolution (replacing one of the others).
All this is not needed if you use a window manager because it will use the maximal screen size automatically.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

jdonth
Posts: 7
Joined: Fri May 27, 2016 8:22 pm

Re: Minimal Kiosk Browser

Sat May 28, 2016 5:57 pm

I removed the "6" option and added the matchbox WM back into the kiosk script which is called by /etc/rc.local
  • file /etc/rc.local:
    xinit /home/pi/kiosk

    file /home/pi/kiosk:
    #!/bin/bash
    matchbox-window-manager -use_titlebar no -use_cursor no &
    kweb -CKAVJHA+-zbhrqfpoklgtjneduwxyavcsmi#?!., http://google.com
    exit 0
...and it does not display properly on a 1360 x 768 TV. Could it be the TV? I tried it on two other TVs (both at 1920x1080) and that resolution worked (both with and without the Window Manager).

stretch
Posts: 38
Joined: Sat Sep 15, 2012 8:53 am

Re: Minimal Kiosk Browser

Sat May 28, 2016 6:51 pm

gkreidl wrote:
stretch wrote: I'm up and running now apart from the fact I have a white vertical bar on the right side of the screen.
One pixel vertical line or more?
Not sure is there any command I can do to remove? I also have black lines the same width left top and bottom (which I would expect) but not sure why the right one is in white, it's fine during boot.

stretch
Posts: 38
Joined: Sat Sep 15, 2012 8:53 am

Re: Minimal Kiosk Browser

Sat May 28, 2016 6:57 pm

gkreidl wrote:
stretch wrote:
I don't use a window-manaher at all just have xorg installed. Do you have X running? my script is

#!/bin/sh
sudo startx &
kweb -KAVMNRq http://www.domain.com
Why "sudo startx"?
And on a full Raspbian system this will start a desktop.
To start xorg

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Minimal Kiosk Browser

Sat May 28, 2016 7:02 pm

stretch wrote:
gkreidl wrote:
stretch wrote:
I don't use a window-manaher at all just have xorg installed. Do you have X running? my script is

#!/bin/sh
sudo startx &
kweb -KAVMNRq http://www.domain.com
Why "sudo startx"?
And on a full Raspbian system this will start a desktop.
To start xorg
Never start Xorg with sudo !!! Very bad things can happen with permissions.
There are 10 types of people: those who understand binary and those who don't.

stretch
Posts: 38
Joined: Sat Sep 15, 2012 8:53 am

Re: Minimal Kiosk Browser

Sat May 28, 2016 9:01 pm

kusti8 wrote: Never start Xorg with sudo !!! Very bad things can happen with permissions.
I'm aware of permissions it was merely to get things working, nothing bad happened and is now run as pi.

jdonth
Posts: 7
Joined: Fri May 27, 2016 8:22 pm

Re: Minimal Kiosk Browser

Sun May 29, 2016 2:25 am

Any chance we can get instructions to compile our own version of kweb?

I need to use a non-standard screen size and I can't get it to work (see previous posts) with or without a Window Manager (Matchbox) so I thought I could "roll my own" version with my custom screen size and skip the WM.

Any thoughts, suggestions or ideas?

gkreidl
Posts: 6345
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Minimal Kiosk Browser

Sun May 29, 2016 4:23 am

jdonth wrote:Any chance we can get instructions to compile our own version of kweb?

I need to use a non-standard screen size and I can't get it to work (see previous posts) with or without a Window Manager (Matchbox) so I thought I could "roll my own" version with my custom screen size and skip the WM.

Any thoughts, suggestions or ideas?
Check the manual, chapter 2, for source download and compile instructions (replace the version number by 1.7.1).
After modifying the sources run

Code: Select all

make
sudo make install
The hardest part is getting all the development files. Start with libwebkitgtk-dev, libwebkitgtk-common-dev, libwebkitgtk-3.0-dev.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

jdonth
Posts: 7
Joined: Fri May 27, 2016 8:22 pm

Re: Minimal Kiosk Browser

Sun May 29, 2016 9:57 pm

I managed to get the program running at the proper screen size with the window manager. I missed in the documentation that I had to install the matchbox window manager. I'm sorry for the bandwidth to fix what was a user error.

Question: Can I "map" a key to a kweb command? I am using a wireless keypad to operate a web page in kiosk mode. I want to map a keypad key (+ or - for example) to the Alt-q command. Any way to do this?

Thanks!

gkreidl
Posts: 6345
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Minimal Kiosk Browser

Sun May 29, 2016 10:40 pm

jdonth wrote:
Question: Can I "map" a key to a kweb command? I am using a wireless keypad to operate a web page in kiosk mode. I want to map a keypad key (+ or - for example) to the Alt-q command. Any way to do this?

Thanks!
No.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

stretch
Posts: 38
Joined: Sat Sep 15, 2012 8:53 am

Re: Minimal Kiosk Browser

Mon May 30, 2016 1:27 pm

gkreidl wrote:
stretch wrote: I'm up and running now apart from the fact I have a white vertical bar on the right side of the screen.
One pixel vertical line or more?
It's more than one pixel wide so assume resolution or something? what can I change to ket rid of it? i'm using

kweb -KAVMNRq

gkreidl
Posts: 6345
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Minimal Kiosk Browser

Mon May 30, 2016 2:04 pm

Check overscan settings in /boot/config.txt
(try to disable it completely)
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

stretch
Posts: 38
Joined: Sat Sep 15, 2012 8:53 am

Re: Minimal Kiosk Browser

Mon May 30, 2016 5:59 pm

gkreidl wrote:Check overscan settings in /boot/config.txt
(try to disable it completely)
Ok just tried that and the bar got wider but set manual overscan for the right side and that's fixed it thanks.

levelcrow
Posts: 47
Joined: Tue Aug 12, 2014 5:04 pm

Re: Minimal Kiosk Browser

Sun Jun 05, 2016 3:27 pm

Are there still no plans to integrate tabs into Kweb?

Kweb has been my primary browser for a year now, I think it's great! But the only feature I really wish it had was tabs. I know the original aim of the Kweb browser was to provide the lightest weight browser possible; I just wish the option to turn on tabs were there - the only thing I really miss! :)

gkreidl
Posts: 6345
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Minimal Kiosk Browser

Sun Jun 05, 2016 3:42 pm

levelcrow wrote:Are there any plans to integrate tabs into Kweb?

Kweb has been my primary browser for a year now, I think it's great! But the only feature I really wish it had was tabs... :)
Sorry, but no. It will stay what it is, a "Minimal" browser. But that doesn't mean that development has stopped :-)
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

darkeagl
Posts: 4
Joined: Thu May 19, 2016 3:03 pm

Re: Minimal Kiosk Browser

Thu Jun 16, 2016 3:27 pm

gkreidl wrote:
darkeagl wrote:I have a problem with kweb.
I am running a Node.js server on a Pi 1 B+ on http://localhost:8080/
With epiphany I get the website in kiosk mode without a problem but when I want to run it with kweb or kweb3 -KJ I just get a screen with "Connection refused" and done.
What could be the problem, the waiting time before the browser opens didnt change so Node.js is up and running because from another pc from the same LAN I can open the page the same second the Pi tries to open it with kweb.

Any help appreciated.
Hard for me to tell without being able to test it. How do you start the node.js server and kweb(3)?
They both start with a script at boot. First the node.js with the webserver and after a few seconds kweb. And as I said the time in between is enough for other browsers but it doesnt show anython on kweb.

gkreidl
Posts: 6345
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Minimal Kiosk Browser

Thu Jun 16, 2016 5:02 pm

darkeagl wrote:
gkreidl wrote:
darkeagl wrote:I have a problem with kweb.
I am running a Node.js server on a Pi 1 B+ on http://localhost:8080/
With epiphany I get the website in kiosk mode without a problem but when I want to run it with kweb or kweb3 -KJ I just get a screen with "Connection refused" and done.
What could be the problem, the waiting time before the browser opens didnt change so Node.js is up and running because from another pc from the same LAN I can open the page the same second the Pi tries to open it with kweb.

Any help appreciated.
Hard for me to tell without being able to test it. How do you start the node.js server and kweb(3)?
They both start with a script at boot. First the node.js with the webserver and after a few seconds kweb. And as I said the time in between is enough for other browsers but it doesnt show anython on kweb.
Is this a message from the server (in the browser) or from XORG (console)?
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Return to “Raspberry Pi OS”