2

I have my Pi3 running Jessie 8 set to boot Chromium into Kiosk mode calling a web published Google slide show and it works correctly as it did with Wheezy. The next step is to refresh the web page every 15 minutes to load any changes that have been made to the slide show. In the past I added a cronjob to call a script which used xdotool to execute "Ctrl+F5" keys. I have the cronjob running and it will call the refresh.sh file but it will not send the key command for refresh.

My refresh.sh file code is attached below

 #refresh chromium 
export DISPLAY=:0.0
xdotool key "ctrl+F5"
2

Perhaps the easiest solution would be to install an auto refresh extension in chromium itself.

Alternatively, this SO answer suggests the following JS code to reload current page every 15 minutes:

javascript:_x=setInterval(function(){open(location.href, 'otherWindow')}, 1000*60*15)

Copy this code into your address bar and hit Enter. To stop refreshing, close the tab and open it again.

| improve this answer | |
  • 1
    I have tried many different extensions and they require user intervention to start them and that is not an option. This kiosk needs to boot to the published google slide show and refresh without anyone touching the Pi. There will be many of these kiosks setup and to connect to each one every day would take far to long. – ecmeccjon Dec 22 '16 at 14:21
  • @ecmeccjon Then I presume you save the URL of your site in browser preferences as the homepage? Try saving the JS as the home page instead, replacing location.href with the site URL. – Dmitry Grigoryev Dec 22 '16 at 20:40
  • @ecmeccjon did you solve your problem? how? – user63457 Aug 31 '17 at 13:47
1

I have the cronjob running and it will call the refresh.sh file but it will not send the key command for refresh.

Since this is a kiosk, a better idea would be to include something like this in your .xinit:

(
    sleep 900
    xdotool key "ctrl+F5"
) &

Before the chromium invocation.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.