Page 1 of 1

refresh browser scheduled

Posted: 11 Aug 2022, 10:42
by brutus
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

refresh browser scheduled

Posted: 11 Aug 2022, 13:36
by fanthom
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

refresh browser scheduled

Posted: 12 Aug 2022, 05:17
by brutus
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.