Time Syncronization - MiCasaVerde:
Installing the NTP client
Optionally you can install the ntpclient also. Run the following commands to install the NTP client by ssh:
opkg update
opkg install ntpclient
The ntp servers are define in this file : /etc/config/ntpclient
To edit the file you can use vim editor:
vim /etc/config/ntpclient
To view the current entries in it type:
cat /etc/config/ntpclient
Note: Please remember to keep the same format of the file when you edit it.
Check if Vera can connect to the default ntp servers :
BASE_NTP_SRV="openwrt.pool.ntp.org"; for i in 0 1 2 3 5; do NTP_SRV="$i.$BASE_NTP_SRV"; echo -n "$NTP_SRV : "; ntpclient -c 1 -p 123 -h $NTP_SRV || echo "FAILED"; done
Force ntpclient to re-read the ntp servers and to do a time sync :
/etc/init.d/ntpclient restart
To check if the ntp client is running use this command :
ps fax | grep ntp
If you see this message then you've successfully installed the NTP client:
4188 root 1068 S /usr/sbin/ntpclient -i 600 -s -l -D -p 123 -h 0.openwrt.pool.ntp.org
14454 root 1672 S grep ntp
Inga kommentarer:
Skicka en kommentar