[Swansea Hackspace] Raspberry Pi - kiosk mode

Emyr Morris em at preseli.com
Fri Jan 23 22:30:18 GMT 2015


thank you - big help!

Em

On 23 January 2015 at 22:15, Justin Mitchell <justin at discordia.org.uk>
wrote:

> On Fri, 2015-01-23 at 21:54 +0000, Emyr Morris wrote:
> > yessss.... ajax - I was hoping to avoid ajax
> >
> <script
> src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js
> "></script>
>
> <script type="text/javascript">
>
> function keepalive()
> {
>         $.get("http://localhost/cgi-bin/keepalive.cgi");
> }
>
> // when document finishes loading,
> // set a timer to call keepalive every 30 seconds
> $(document).ready(function(){
>         window.setInterval(keepalive, 30000);
> });
>
> </script>
>
>
> the keepalive.cgi can just be a simple as 'touch /tmp/keepalive.log'
>
> then a cron job can test the timestamp and act accordingly
>
>
> _______________________________________________
> Hackspace mailing list
> Hackspace at swansea.hackspace.org.uk
> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace
>



-- 
This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.

Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn gyfrinachol
ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt yn unig.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://swansea.hackspace.org.uk/pipermail/hackspace/attachments/20150123/89850ab8/attachment.html>


More information about the Hackspace mailing list