OGN-receiver-RPI-image icon indicating copy to clipboard operation
OGN-receiver-RPI-image copied to clipboard

Add timezone as parameter in configuration file

Open snip opened this issue 3 years ago • 1 comments

This will allow the nightly reboot to occurs during night on all location.

Or this can be detected approximately from longitude value.

snip avatar May 25 '22 08:05 snip

As a workaround, in OGN-receiver.conf it is possible to set runAtBoot parameter to update the timezone and request cron service restart. Example:

runAtBoot="$(timedatectl set-timezone Europe/Paris && service cron restart)" # Allow a specific script to be run at boot time

Europe/Paris needs to be replaced with your expected timezone.

Tips:

  • to check current timezone settings: timedatectl
  • to list all possible timezones: timedatectl list-timezones
  • If you do not have command line access i put on the following link, list of available TZ: https://gist.githubusercontent.com/snip/448a3b6df2008328cadb9426c88f8493/raw/gistfile1.txt

snip avatar Jun 16 '22 19:06 snip