Time Synchronization
ntp/state
The state of network time synchronization.
| Name | Description |
|---|---|
syncedbool | Indicates whether the device was able to synchronize its time via NTP. |
timeint | A Unix timestamp in minutes indicating the device's current time, or 0 if no time synchronization exists |
ntp/config
The configuration of network time synchronization.
# $HOST e.g. warp-AbCd
Read
curl http://$HOST/ntp/config
{
"enable": true,
"use_dhcp": true,
"timezone": "Europe/Berlin",
"server": "time.cloudflare.com",
"server2": "ptbtime3.ptb.de"
}
Write
curl http://$HOST/ntp/config -d '{
"enable": true,
"use_dhcp": true,
"timezone": "Europe/Berlin",
"server": "time.cloudflare.com",
"server2": "ptbtime3.ptb.de"
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/ntp/config
{
"enable": true,
"use_dhcp": true,
"timezone": "Europe/Berlin",
"server": "time.cloudflare.com",
"server2": "ptbtime3.ptb.de"
}
Write
With MQTT on $PREFIX/ntp/config_update
mosquitto_pub -h $BROKER -t $PREFIX/ntp/config_update -m '{
"enable": true,
"use_dhcp": true,
"timezone": "Europe/Berlin",
"server": "time.cloudflare.com",
"server2": "ptbtime3.ptb.de"
}'
| Name | Description |
|---|---|
enablebool | Specifies whether the device should synchronize its time via NTP. The obtained time is used to determine the start times of tracked charging sessions and in the event log. |
use_dhcpbool | Specifies whether the device should receive NTP servers via DHCP. Only works if DHCP is used for IP address assignment. |
timezonestring | The timezone in which the device is located. e.g. "Europe/Berlin" |
serverstring | IP address or hostname of the time server to use |
server2string | IP address or hostname of the alternative time server to use |
ntp/state
The state of network time synchronization.
| Name | Description |
|---|---|
syncedbool | Indicates whether the device was able to synchronize its time via NTP. |
timeint | A Unix timestamp in minutes indicating the device's current time, or 0 if no time synchronization exists |
ntp/config
The configuration of network time synchronization.
# $HOST e.g. warp2-AbCd
Read
curl http://$HOST/ntp/config
{
"enable": true,
"use_dhcp": true,
"timezone": "Europe/Berlin",
"server": "time.cloudflare.com",
"server2": "ptbtime3.ptb.de"
}
Write
curl http://$HOST/ntp/config -d '{
"enable": true,
"use_dhcp": true,
"timezone": "Europe/Berlin",
"server": "time.cloudflare.com",
"server2": "ptbtime3.ptb.de"
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp2/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/ntp/config
{
"enable": true,
"use_dhcp": true,
"timezone": "Europe/Berlin",
"server": "time.cloudflare.com",
"server2": "ptbtime3.ptb.de"
}
Write
With MQTT on $PREFIX/ntp/config_update
mosquitto_pub -h $BROKER -t $PREFIX/ntp/config_update -m '{
"enable": true,
"use_dhcp": true,
"timezone": "Europe/Berlin",
"server": "time.cloudflare.com",
"server2": "ptbtime3.ptb.de"
}'
| Name | Description |
|---|---|
enablebool | Specifies whether the device should synchronize its time via NTP. The obtained time is used to determine the start times of tracked charging sessions and in the event log. |
use_dhcpbool | Specifies whether the device should receive NTP servers via DHCP. Only works if DHCP is used for IP address assignment. |
timezonestring | The timezone in which the device is located. e.g. "Europe/Berlin" |
serverstring | IP address or hostname of the time server to use |
server2string | IP address or hostname of the alternative time server to use |
ntp/state
The state of network time synchronization.
| Name | Description |
|---|---|
syncedbool | Indicates whether the device was able to synchronize its time via NTP. |
timeint | A Unix timestamp in minutes indicating the device's current time, or 0 if no time synchronization exists |
ntp/config
The configuration of network time synchronization.
# $HOST e.g. warp3-AbCd
Read
curl http://$HOST/ntp/config
{
"enable": true,
"use_dhcp": true,
"timezone": "Europe/Berlin",
"server": "time.cloudflare.com",
"server2": "ptbtime3.ptb.de"
}
Write
curl http://$HOST/ntp/config -d '{
"enable": true,
"use_dhcp": true,
"timezone": "Europe/Berlin",
"server": "time.cloudflare.com",
"server2": "ptbtime3.ptb.de"
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp3/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/ntp/config
{
"enable": true,
"use_dhcp": true,
"timezone": "Europe/Berlin",
"server": "time.cloudflare.com",
"server2": "ptbtime3.ptb.de"
}
Write
With MQTT on $PREFIX/ntp/config_update
mosquitto_pub -h $BROKER -t $PREFIX/ntp/config_update -m '{
"enable": true,
"use_dhcp": true,
"timezone": "Europe/Berlin",
"server": "time.cloudflare.com",
"server2": "ptbtime3.ptb.de"
}'
| Name | Description |
|---|---|
enablebool | Specifies whether the device should synchronize its time via NTP. The obtained time is used to determine the start times of tracked charging sessions and in the event log. |
use_dhcpbool | Specifies whether the device should receive NTP servers via DHCP. Only works if DHCP is used for IP address assignment. |
timezonestring | The timezone in which the device is located. e.g. "Europe/Berlin" |
serverstring | IP address or hostname of the time server to use |
server2string | IP address or hostname of the alternative time server to use |
ntp/state
The state of network time synchronization.
| Name | Description |
|---|---|
syncedbool | Indicates whether the device was able to synchronize its time via NTP. |
timeint | A Unix timestamp in minutes indicating the device's current time, or 0 if no time synchronization exists |
ntp/config
The configuration of network time synchronization.
# $HOST e.g. wem-AbCd
Read
curl http://$HOST/ntp/config
{
"enable": true,
"use_dhcp": true,
"timezone": "Europe/Berlin",
"server": "time.cloudflare.com",
"server2": "ptbtime3.ptb.de"
}
Write
curl http://$HOST/ntp/config -d '{
"enable": true,
"use_dhcp": true,
"timezone": "Europe/Berlin",
"server": "time.cloudflare.com",
"server2": "ptbtime3.ptb.de"
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. wem/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/ntp/config
{
"enable": true,
"use_dhcp": true,
"timezone": "Europe/Berlin",
"server": "time.cloudflare.com",
"server2": "ptbtime3.ptb.de"
}
Write
With MQTT on $PREFIX/ntp/config_update
mosquitto_pub -h $BROKER -t $PREFIX/ntp/config_update -m '{
"enable": true,
"use_dhcp": true,
"timezone": "Europe/Berlin",
"server": "time.cloudflare.com",
"server2": "ptbtime3.ptb.de"
}'
| Name | Description |
|---|---|
enablebool | Specifies whether the device should synchronize its time via NTP. The obtained time is used to determine the start times of tracked charging sessions and in the event log. |
use_dhcpbool | Specifies whether the device should receive NTP servers via DHCP. Only works if DHCP is used for IP address assignment. |
timezonestring | The timezone in which the device is located. e.g. "Europe/Berlin" |
serverstring | IP address or hostname of the time server to use |
server2string | IP address or hostname of the alternative time server to use |
ntp/state
The state of network time synchronization.
| Name | Description |
|---|---|
syncedbool | Indicates whether the device was able to synchronize its time via NTP. |
timeint | A Unix timestamp in minutes indicating the device's current time, or 0 if no time synchronization exists |
ntp/config
The configuration of network time synchronization.
# $HOST e.g. wem2-AbCd
Read
curl http://$HOST/ntp/config
{
"enable": true,
"use_dhcp": true,
"timezone": "Europe/Berlin",
"server": "time.cloudflare.com",
"server2": "ptbtime3.ptb.de"
}
Write
curl http://$HOST/ntp/config -d '{
"enable": true,
"use_dhcp": true,
"timezone": "Europe/Berlin",
"server": "time.cloudflare.com",
"server2": "ptbtime3.ptb.de"
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. wem2/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/ntp/config
{
"enable": true,
"use_dhcp": true,
"timezone": "Europe/Berlin",
"server": "time.cloudflare.com",
"server2": "ptbtime3.ptb.de"
}
Write
With MQTT on $PREFIX/ntp/config_update
mosquitto_pub -h $BROKER -t $PREFIX/ntp/config_update -m '{
"enable": true,
"use_dhcp": true,
"timezone": "Europe/Berlin",
"server": "time.cloudflare.com",
"server2": "ptbtime3.ptb.de"
}'
| Name | Description |
|---|---|
enablebool | Specifies whether the device should synchronize its time via NTP. The obtained time is used to determine the start times of tracked charging sessions and in the event log. |
use_dhcpbool | Specifies whether the device should receive NTP servers via DHCP. Only works if DHCP is used for IP address assignment. |
timezonestring | The timezone in which the device is located. e.g. "Europe/Berlin" |
serverstring | IP address or hostname of the time server to use |
server2string | IP address or hostname of the alternative time server to use |
ntp/state
The state of network time synchronization.
| Name | Description |
|---|---|
syncedbool | Indicates whether the device was able to synchronize its time via NTP. |
timeint | A Unix timestamp in minutes indicating the device's current time, or 0 if no time synchronization exists |
ntp/config
The configuration of network time synchronization.
# $HOST e.g. warp-AbCd
Read
curl http://$HOST/ntp/config
{
"enable": true,
"use_dhcp": true,
"timezone": "Europe/Berlin",
"server": "time.cloudflare.com",
"server2": "ptbtime3.ptb.de"
}
Write
curl http://$HOST/ntp/config -d '{
"enable": true,
"use_dhcp": true,
"timezone": "Europe/Berlin",
"server": "time.cloudflare.com",
"server2": "ptbtime3.ptb.de"
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/ntp/config
{
"enable": true,
"use_dhcp": true,
"timezone": "Europe/Berlin",
"server": "time.cloudflare.com",
"server2": "ptbtime3.ptb.de"
}
Write
With MQTT on $PREFIX/ntp/config_update
mosquitto_pub -h $BROKER -t $PREFIX/ntp/config_update -m '{
"enable": true,
"use_dhcp": true,
"timezone": "Europe/Berlin",
"server": "time.cloudflare.com",
"server2": "ptbtime3.ptb.de"
}'
| Name | Description |
|---|---|
enablebool | Specifies whether the device should synchronize its time via NTP. The obtained time is used to determine the start times of tracked charging sessions and in the event log. |
use_dhcpbool | Specifies whether the device should receive NTP servers via DHCP. Only works if DHCP is used for IP address assignment. |
timezonestring | The timezone in which the device is located. e.g. "Europe/Berlin" |
serverstring | IP address or hostname of the time server to use |
server2string | IP address or hostname of the alternative time server to use |