Time/clock sync schedule

'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
CLSpl
Ronin
Ronin
Posts: 1
Joined: 05 Feb 2020, 16:58
Distribution: Kiosk

Time/clock sync schedule

Post#1 by CLSpl » 21 Jun 2022, 06:12

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.

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

Time/clock sync schedule

Post#2 by fanthom » 22 Jun 2022, 07:06

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
Please add [Solved] to your thread title if the solution was found.

tome
Contributor
Contributor
Posts: 675
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Russia is causing the immense damage to humanity
Contact:

Time/clock sync schedule

Post#3 by tome » 26 Jun 2022, 05:02

Maybe this: ntpdate -s time.nist.gov && hwclock -w
You have mind and feelings. Be wise and clever.

Locked