refresh browser scheduled

'User made' tutorials related to Porteus Kiosk edition.
Official kiosk documentation can be find here: http://porteus-kiosk.org/documentation.html
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
brutus
Black ninja
Black ninja
Posts: 42
Joined: 20 May 2022, 06:10
Distribution: openSUSE

refresh browser scheduled

Post#1 by brutus » 11 Aug 2022, 10:42

Hi,

how can I refresh Chrome browser at specific times?
I know about the "refresh_webpage" parameter but how can I do it as a "scheduled_action"?

BR,
Michael

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

refresh browser scheduled

Post#2 by fanthom » 11 Aug 2022, 13:36

Michael,


You need to use this command:

Code: Select all

xdotool key F5
Sample:

Code: Select all

scheduled_action=Monday-13:00 Tuesday-13:00 Wednesday-13:00 Thursday-13:00 Friday-13:00 Saturday-13:00 Sunday-13:00 action:xdotool key F5; sleep 5h; xdotool key F5; sleep 4h; shutdown
So the first refresh is scheduled at 13.00, second at 18.00 and kiosk shutdown at 22.00.
You can use the 'rtc_wake=' parameter to wake the kiosk at e.g. 10:00 in the morning each day.

Its explained in kiosk documentation:
https://porteus-kiosk.org/parameters.ht ... led_action

Thanks
Please add [Solved] to your thread title if the solution was found.

brutus
Black ninja
Black ninja
Posts: 42
Joined: 20 May 2022, 06:10
Distribution: openSUSE

refresh browser scheduled

Post#3 by brutus » 12 Aug 2022, 05:17

Thank you! Very helpful.
"action:xdotool key F5" - that's what I was looking for. Also good to know how to handle different times with a 'one-liner' (sleep commands..). Interesting information.

Locked