User Tools

Site Tools


datetime_v6_0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
datetime_v6_0 [2015/03/22 15:30]
john2015 [Formatting]
datetime_v6_0 [2015/03/24 08:43]
pilino1234 Added information about new ntp server settings
Line 81: Line 81:
  
 <​code>​ <​code>​
 +"​gui":​ {
                 "​datetime":​ {                 "​datetime":​ {
                         "​name":​ "​Time",​                         "​name":​ "​Time",​
                         "​group":​ [ "​Group"​ ],                         "​group":​ [ "​Group"​ ],
                         "​format":​ "​HH:​mm:​ss"​                         "​format":​ "​HH:​mm:​ss"​
-                }, +                } 
 +}
 </​code>​ </​code>​
-In this example, only the time is showed ​in the GUI (24h notation)+In this example, only the time is shown in the GUI (24h notation)
  
 ==== Notes ==== ==== Notes ====
Line 96: Line 96:
  
 The weekday id counts day 1 as Sunday The weekday id counts day 1 as Sunday
 +
 +==== Nightly ====
 +ntpserver has been removed from the datetime id. Instead, ntp-server are defined in the settings section of config.json in an array like this:
 +
 +<​code>​
 +"​ntp-servers":​ [ "​0.nl.pool.ntp.org",​ "​1.nl.pool.ntp.org",​ ... ],
 +"​ntp-sync":​ 1
 +</​code>​
 +
 +Both the datetime and sunriseset protocol will use the ntp time to adjust
 +their time when needed.
 +
 +
datetime_v6_0.txt · Last modified: 2015/11/27 21:09 (external edit)