Page 1 of 1

Time/clock sync schedule

Posted: 21 Jun 2022, 06:12
by CLSpl
My kiosk, for some reason, has a time offset of a few seconds after a few hours after booting, which causes a lot of confusion for users of the app running on it.

If possible, I need help configuring a schedule that will update the clock from NTP every hour.
I am not sure what the scheduled_action should look like. I would like to update the time from the default public NTP server.

Time/clock sync schedule

Posted: 22 Jun 2022, 07:06
by fanthom
Hello CLSpl,

As per our documentation:
https://porteus-kiosk.org/parameters.html#run_command

You could modify this parameter value:

Code: Select all

run_command=( while true; do sleep 1h; wget http://domain.com/files/video.mp4 -O /opt/storage/video.mp4; killall firefox; done; ) &
Thanks

Time/clock sync schedule

Posted: 26 Jun 2022, 05:02
by tome
Maybe this: ntpdate -s time.nist.gov && hwclock -w