[Swansea Hackspace] Raspberry Pi - kiosk mode

Justin Mitchell justin at discordia.org.uk
Fri Jan 23 21:41:25 GMT 2015


On Fri, 2015-01-23 at 20:28 +0000, Emyr Morris wrote:

> I was hoping to have something monitor chromium and if it detected
> that the browser had frozen / stopped responding or hadn't refreshed
> for a certain period of time, it would close the browser and re-open
> it
> 
> 
> I thought I had found an example a few months ago and bookmarked it,
> but I can not for the life of me find the example again.
> 
> 
> for example, I have a web page that is refreshed every 5 mins, if
> chromium has not refreshed in 10 mins it needs to be restarted.
> 
> 
> currently I am using a very simple 
> <meta http-equiv="refresh" content="120">
> to reload the page,
> I would value advice. Thanks

If there is a webserver on the pi have some javascript polling a simple
cgi script (a bash script would do) via ajax, so it isnt disturbing the
main page.

its easy enough to check that a process is still running from a shell
script, but thats no indication that the page involved is still
running/reloading. 

Whilst there may be some cache and status files that belong to the
browser, i dont imagine that it would be a terribly reliable indication
of anything.

as an aside, those kind of page reloads are awefully klunky and
disruptive, if you need any guidance on ajax, jquery, and other more
modern stuff I or one of the others will gladly help i'm sure.






More information about the Hackspace mailing list