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/02/24 18:45]
buldogwtf [Config]
datetime_v6_0 [2015/03/24 08:43]
pilino1234 Added information about new ntp server settings
Line 77: Line 77:
 |X|Unix timestamp| |X|Unix timestamp|
 |LT, L, LL, LLL, LLLL|Locale dependent date and time representation| |LT, L, LL, LLL, LLLL|Locale dependent date and time representation|
 +
 +Example Formatting:
 +
 +<​code>​
 +"​gui":​ {
 +                "​datetime":​ {
 +                        "​name":​ "​Time",​
 +                        "​group":​ [ "​Group"​ ],
 +                        "​format":​ "​HH:​mm:​ss"​
 +                }
 +}
 +</​code>​
 +In this example, only the time is shown in the GUI (24h notation)
  
 ==== Notes ==== ==== Notes ====
Line 83: 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)