djdex87
Posts: 2
Joined: Tue Oct 14, 2014 5:34 pm

Automatic Network Manager pop up in Kiosk Mode

Tue Oct 14, 2014 6:04 pm

Hello!

I'm new to the forum and to raspbian as well so I hope this question won't count as a 'basic' question which I shouldn't ask here:)
I searched google for an anwser but couldn't really find anything useful on this topic.

My problem is the following:

I want my Raspberry Pi to boot a browser in Kiosk mode without loading the GUI. That so far, I have achieved. Additionaly, I want it to display the network manager every time when there's no wifi connection established because of the lacking WPA password. I plan it to be a portable platform for surfing the net only, so the wifi networks and the passwords will change often.

To make things clearer:

1. Raspbian boots
2. Starts browser
3. Tries to connect with wifi -> a) if successful nothing happens (browser connects to predifined website)
b) if wifi manager in the background cannot connect (caused by the wrong password or the
complete lack of it) the network manager pops up allowing the user to choose the
right network and enter the new password.

I know that a python script is needed to make this work, but I just don't know it well enough yet, to write it on my own without help.

So any advice would be really appreciated.

(Hope my "Engrish" wasn't too bad, and my question is still understandable :)

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

Re: Automatic Network Manager pop up in Kiosk Mode

Wed Oct 15, 2014 7:17 am

You don't need Python. A simple script will do, something like

Code: Select all

#!/bin/bash
x=`ping -c1 google.com 2>&1 | grep unknown`
if [ ! "$x" = "" ]; then
wpa_gui
fi
Minimal Kiosk Browser supports executing commands hidden into web pages (html files only!). You could create a homepage file that executes this command if the browser is started (and it may redirect afterwards to any other html file or web address, if you like).
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

djdex87
Posts: 2
Joined: Tue Oct 14, 2014 5:34 pm

Re: Automatic Network Manager pop up in Kiosk Mode

Wed Oct 15, 2014 2:07 pm

@gkreidl

Thanks for the fast anwser. I will definitely try that!

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

Re: Automatic Network Manager pop up in Kiosk Mode

Wed Oct 15, 2014 2:12 pm

djdex87 wrote:@gkreidl

Thanks for the fast anwser. I will definitely try that!
PM me if you need help setting it up. But start with the manual first so I don't have to explain everything.
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

vinicius5581
Posts: 1
Joined: Tue Jul 07, 2020 9:43 am

Re: Automatic Network Manager pop up in Kiosk Mode

Tue Aug 04, 2020 4:32 am

Does this technique still work? I have this exact scenario in hands, where I have a raspberry that autoboots and opens the browser.

I would like to have it ask the user to enter their wifi information if not connected and get back to the browser.

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

Re: Automatic Network Manager pop up in Kiosk Mode

Tue Aug 04, 2020 6:50 am

vinicius5581 wrote:
Tue Aug 04, 2020 4:32 am
Does this technique still work? I have this exact scenario in hands, where I have a raspberry that autoboots and opens the browser.

I would like to have it ask the user to enter their wifi information if not connected and get back to the browser.
Yes.

But the old webkit engine used by kweb is falling far behind regarding "modern websites".
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 “Beginners”