Resource | ID | Access Type | Multiple Instances | Mandatory | Type | Description |
---|---|---|---|---|---|---|
Hostname | 0 | R,W | Single | Optional | String | This resource type returns the hostname of the gateway. |
Timezone | 1 | R,W | Single | Optional | String | This resource type returns the default timezone. |
DNS Server List | 2 | R,W | Single | Optional | String | This resource type returns a list of DNS Servers used by this system. |
NTP Server List | 3 | R,W | Single | Optional | String | This resource type returns a list of NTP Servers. |
Name | Type | Required | Default | Description |
---|---|---|---|---|
hostname | string | no | OpenWrt | The hostname for this system. Avoid points, even if they are within single or double quotes. For example 'my.hostname' will show only the 'my' part. |
timezone | string | no | UTC | The time zone that date and time should be rendered in by default. |
Name | Type | Required | Default | Description |
---|---|---|---|---|
server | list of hostnames | no | none | Defines the pool of NTP servers to poll the time from. If the list is empty, the builtin NTP daemon is not started. |
Name | Type | Required | Default | Description |
---|---|---|---|---|
enable_server | boolean | no | 0 | You can put busybox-ntpd in client mode only: by defining at least one host to server and puting enable_server 0 client & server mode: by putting enable_server to 1, (busybox-ntpd listens to UDP 123 by default), server mode only: by not defining any servers in the config and just put enable_server 1 (ntpd will answer with the time of the router) |