Robust network examiner
Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
Robust network examiner
Hi.
Trying to get a tablet computer to work reliably over wifi with Porteus Kiosks for digital signage purposes.
The problem is now that Porteus Kiosk V4.7 and eralier executes the web browser even if there was a problem with the connection (to the internet). So the result is a browser window dispalying that it cannot connect to the specific site.
This is definately a no-go with digital signage purposes and kiosk applications too.
I hope Porteus Kiosk could in the very near future test reliably the connection before launching the browser.
And if the connection is lost, then there should be functions first to re-init the connection and if that does not work then restart the Kiosk after x number of failed attempts.
Ping destinations, Re-init retry times and timers should be user configurable with config file.
Kind regards,
Jan
Trying to get a tablet computer to work reliably over wifi with Porteus Kiosks for digital signage purposes.
The problem is now that Porteus Kiosk V4.7 and eralier executes the web browser even if there was a problem with the connection (to the internet). So the result is a browser window dispalying that it cannot connect to the specific site.
This is definately a no-go with digital signage purposes and kiosk applications too.
I hope Porteus Kiosk could in the very near future test reliably the connection before launching the browser.
And if the connection is lost, then there should be functions first to re-init the connection and if that does not work then restart the Kiosk after x number of failed attempts.
Ping destinations, Re-init retry times and timers should be user configurable with config file.
Kind regards,
Jan
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Robust network examiner
Hello Jan,
"I hope Porteus Kiosk could in the very near future test reliably the connection before launching the browser."
This function is implemented already, see here:
http://porteus-kiosk.org/parameters.html#homepage_check
"And if the connection is lost, then there should be functions first to re-init the connection"
This is default if you use dhcp. I have tested this scenario many times by powering off the access point. Connection was always reinitialized properly by wpa_supplicant and dhcpcd.
"and if that does not work then restart the Kiosk after x number of failed attempts."
This could be implemented in a 'run_command=' parameter (it can do pretty much everything) or through customized build.
"I hope Porteus Kiosk could in the very near future test reliably the connection before launching the browser."
This function is implemented already, see here:
http://porteus-kiosk.org/parameters.html#homepage_check
"And if the connection is lost, then there should be functions first to re-init the connection"
This is default if you use dhcp. I have tested this scenario many times by powering off the access point. Connection was always reinitialized properly by wpa_supplicant and dhcpcd.
"and if that does not work then restart the Kiosk after x number of failed attempts."
This could be implemented in a 'run_command=' parameter (it can do pretty much everything) or through customized build.
Please add [Solved] to your thread title if the solution was found.
Robust network examiner
Hi fanthom !
Unfortunately that can give false positives.
Would need to be abe to find for a specific code in the html to be sure it has connected succesfully.
Kind regards,
Jan
fanthom wrote: ↑21 Jun 2018, 16:59Hello Jan,
"I hope Porteus Kiosk could in the very near future test reliably the connection before launching the browser."
This function is implemented already, see here:
http://porteus-kiosk.org/parameters.html#homepage_check
Unfortunately that can give false positives.
Would need to be abe to find for a specific code in the html to be sure it has connected succesfully.
Kind regards,
Jan
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Robust network examiner
Not sure what you mean.
This function uses following command to determine if webpage is available:
If you need to search for specific content then only kiosk customization can help.
This function uses following command to determine if webpage is available:
Code: Select all
wget -q -U Mozilla --spider -T20 -t1 http://domain.com
Please add [Solved] to your thread title if the solution was found.
Robust network examiner
Hi.
If router is just booting up any http request may go to routers log-in page, so it would be essential to be able to be sure that the result is from the specific domain.
This can be done reliably only by getting some kind of signature from that domain.
Would be nice to have this kind of paramter option:
homepage_poll=https://domain.com/index.php?giveId=true 1234
Where 1234 is the expected result from https://domain.com/index.php?giveId=true
or
Where 1234 is the needle to be found in output of specific url like https://domain.com/index.php
If the exact value or needle is found then launch browser to home page
If router is just booting up any http request may go to routers log-in page, so it would be essential to be able to be sure that the result is from the specific domain.
This can be done reliably only by getting some kind of signature from that domain.
Would be nice to have this kind of paramter option:
homepage_poll=https://domain.com/index.php?giveId=true 1234
Where 1234 is the expected result from https://domain.com/index.php?giveId=true
or
Where 1234 is the needle to be found in output of specific url like https://domain.com/index.php
If the exact value or needle is found then launch browser to home page
Last edited by jet on 21 Jun 2018, 19:36, edited 1 time in total.
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Robust network examiner
Dont think many people would use it. You are first asking for it.
Please use 'run_command=' parameter to perform this check.
Please use 'run_command=' parameter to perform this check.
Please add [Solved] to your thread title if the solution was found.
Robust network examiner
Hi.
It would make Porteus Kiosk much more reliable, secure and user friendly and that is what really counts.
In the meanwhile, how to perform the task thru run_command (with exact commands)?
Kind regards,
Jan
It would make Porteus Kiosk much more reliable, secure and user friendly and that is what really counts.
In the meanwhile, how to perform the task thru run_command (with exact commands)?
Kind regards,
Jan
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Robust network examiner
Something like here:
Code: Select all
run_command=while true; do dunstify -C 100 2>/dev/null; wget -U Mozilla -T20 -t1 http://domain.com -O- | grep -q "your string" && break || { dunstify -r 100 -u critical "Homepage is not available"; sleep 9; }; done
Please add [Solved] to your thread title if the solution was found.
Robust network examiner
Thanks!!
Works great!
With this fix Porteus Kiosk is now much more robust!
Changed some of the values: Enough time for the connection to be established on slow connections, and long enough time before trying again so it would not be interpreted as brute force attack or similar.
-T40
-t2
sleep 60
I hope this would be implemented in next Porteus Kiosk release as homepage_poll
Will make a donation soon
Kind regards,
Jan
Works great!
With this fix Porteus Kiosk is now much more robust!
Changed some of the values: Enough time for the connection to be established on slow connections, and long enough time before trying again so it would not be interpreted as brute force attack or similar.
-T40
-t2
sleep 60
I hope this would be implemented in next Porteus Kiosk release as homepage_poll
Will make a donation soon
Kind regards,
Jan
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Robust network examiner
"I hope this would be implemented in next Porteus Kiosk release as homepage_poll"
Whats wrong with using 'run_command=' parameter? Using run_command you can configure every single detail how this task should be handled.
"Will make a donation soon "
Great - thank you in advance.
Whats wrong with using 'run_command=' parameter? Using run_command you can configure every single detail how this task should be handled.
"Will make a donation soon "
Great - thank you in advance.
Please add [Solved] to your thread title if the solution was found.
Robust network examiner
Nothing is wrong with it but would be great to have it as standard "right out of the box"
Or maybe there could be "a light version" implemented directly to 'homepage_check=' parameter as an optional second parameter like this:
homepage_check=Homepage is not available - please contact your administrator|StringToBeFound
Kind regards,
Jan
Robust network examiner
It seems that the configuration change checking is not working it it takes long time to get the internet access.
How to trigger it with cron?
Kind regards,
Jan
How to trigger it with cron?
Kind regards,
Jan
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Robust network examiner
Remote config is checked only during kiosk boot. You cant trigger it later on.
You need to fix your network i'm afraid.
You need to fix your network i'm afraid.
Please add [Solved] to your thread title if the solution was found.