Controller is VeraPlus (FW 1.7.5186 (7.31))
Configuring NTP to use a time server (UPS backed QNAP NAS) running on my internal network as well as the default time servers (N.openwrt.pool.ntp.or g). Result would be the controller configuring its date and time using the NAS if my Internet connection is not operating.
The operating system configuration file is /etc/config/system (space added in ‘org’ to prevent the editor forming a hyperlink):
config system
option hostname ‘MiOS_NNNNNNNN’
option timezone ‘CST6CDT,M3.2.0,M11.1.0’
config timeserver ‘ntp’
list server ‘0.openwrt.pool.ntp.or g’
list server ‘1.openwrt.pool.ntp.or g’
list server ‘2.openwrt.pool.ntp.or g’
list server ‘3.openwrt.pool.ntp.o rg’
option enabled ‘1’
option enable_server ‘0’
I have two choices. Make a backup of the system file, then add a line in the system file for the NAS:
list server '192.168.1.200’
then reboot the controller (or restart the NTP daemon)
or
Issue the following commands:
uci add_list system.ntp.server=‘192.168.1.200’
uci commit system
then reboot the controller (or restart the NTP daemon)
Both choices should accomplish the same outcome, correct?
Sources: Clock Validity - Reactor
[OpenWrt Wiki] NTP
[OpenWrt Wiki] NTP client / NTP server
[OpenWrt Wiki] Ntpclient configuration