Real-Time Clock Settings
Requires the "rtc" feature.
rtc/time
The current time on the Real-Time Clock.
# $HOST e.g. warp-AbCd
Read
curl http://$HOST/rtc/time
{
"year": 2024,
"month": 5,
"day": 3,
"hour": 12,
"minute": 38,
"second": 43,
"weekday": 5
}
Write
curl http://$HOST/rtc/time -d '{
"year": 2024,
"month": 5,
"day": 3,
"hour": 12,
"minute": 38,
"second": 43,
"weekday": 5
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/rtc/time
{
"year": 2024,
"month": 5,
"day": 3,
"hour": 12,
"minute": 38,
"second": 43,
"weekday": 5
}
Write
With MQTT on $PREFIX/rtc/time_update
mosquitto_pub -h $BROKER -t $PREFIX/rtc/time_update -m '{
"year": 2024,
"month": 5,
"day": 3,
"hour": 12,
"minute": 38,
"second": 43,
"weekday": 5
}'
| Name | Description |
|---|---|
yearint | The year. 2000 to 2099 |
monthint | The month. 1 to 12 |
dayint | The day. 1 to 31 |
hourint | The hour. 0 to 23 |
minuteint | The minute. 0 to 59 |
secondint | The second. 0 to 59 |
weekdayint | The weekday. 0 (Monday) to 6 (Sunday). |
rtc/config
The Real-Time Clock configuration.
# $HOST e.g. warp-AbCd
Read
curl http://$HOST/rtc/config
{ "auto_sync": false }
Write
curl http://$HOST/rtc/config -d '{ "auto_sync": false }'
or abbreviated:
curl http://$HOST/rtc/config -d 'false'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/rtc/config
{ "auto_sync": false }
Write
With MQTT on $PREFIX/rtc/config_update
mosquitto_pub -h $BROKER -t $PREFIX/rtc/config_update -m '{ "auto_sync": false }'
or abbreviated:
mosquitto_pub -h $BROKER -t $PREFIX/rtc/config_update -m 'false'
| Name | Description |
|---|---|
auto_syncbool | Specifies whether the time on the RTC should be automatically set when loading the web interface, if no network time synchronization is available.
|
rtc/time
The current time on the Real-Time Clock.
# $HOST e.g. warp2-AbCd
Read
curl http://$HOST/rtc/time
{
"year": 2024,
"month": 5,
"day": 3,
"hour": 12,
"minute": 38,
"second": 43,
"weekday": 5
}
Write
curl http://$HOST/rtc/time -d '{
"year": 2024,
"month": 5,
"day": 3,
"hour": 12,
"minute": 38,
"second": 43,
"weekday": 5
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp2/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/rtc/time
{
"year": 2024,
"month": 5,
"day": 3,
"hour": 12,
"minute": 38,
"second": 43,
"weekday": 5
}
Write
With MQTT on $PREFIX/rtc/time_update
mosquitto_pub -h $BROKER -t $PREFIX/rtc/time_update -m '{
"year": 2024,
"month": 5,
"day": 3,
"hour": 12,
"minute": 38,
"second": 43,
"weekday": 5
}'
| Name | Description |
|---|---|
yearint | The year. 2000 to 2099 |
monthint | The month. 1 to 12 |
dayint | The day. 1 to 31 |
hourint | The hour. 0 to 23 |
minuteint | The minute. 0 to 59 |
secondint | The second. 0 to 59 |
weekdayint | The weekday. 0 (Monday) to 6 (Sunday). |
rtc/config
The Real-Time Clock configuration.
# $HOST e.g. warp2-AbCd
Read
curl http://$HOST/rtc/config
{ "auto_sync": false }
Write
curl http://$HOST/rtc/config -d '{ "auto_sync": false }'
or abbreviated:
curl http://$HOST/rtc/config -d 'false'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp2/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/rtc/config
{ "auto_sync": false }
Write
With MQTT on $PREFIX/rtc/config_update
mosquitto_pub -h $BROKER -t $PREFIX/rtc/config_update -m '{ "auto_sync": false }'
or abbreviated:
mosquitto_pub -h $BROKER -t $PREFIX/rtc/config_update -m 'false'
| Name | Description |
|---|---|
auto_syncbool | Specifies whether the time on the RTC should be automatically set when loading the web interface, if no network time synchronization is available.
|
rtc/time
The current time on the Real-Time Clock.
# $HOST e.g. warp3-AbCd
Read
curl http://$HOST/rtc/time
{
"year": 2024,
"month": 5,
"day": 3,
"hour": 12,
"minute": 38,
"second": 43,
"weekday": 5
}
Write
curl http://$HOST/rtc/time -d '{
"year": 2024,
"month": 5,
"day": 3,
"hour": 12,
"minute": 38,
"second": 43,
"weekday": 5
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp3/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/rtc/time
{
"year": 2024,
"month": 5,
"day": 3,
"hour": 12,
"minute": 38,
"second": 43,
"weekday": 5
}
Write
With MQTT on $PREFIX/rtc/time_update
mosquitto_pub -h $BROKER -t $PREFIX/rtc/time_update -m '{
"year": 2024,
"month": 5,
"day": 3,
"hour": 12,
"minute": 38,
"second": 43,
"weekday": 5
}'
| Name | Description |
|---|---|
yearint | The year. 2000 to 2099 |
monthint | The month. 1 to 12 |
dayint | The day. 1 to 31 |
hourint | The hour. 0 to 23 |
minuteint | The minute. 0 to 59 |
secondint | The second. 0 to 59 |
weekdayint | The weekday. 0 (Monday) to 6 (Sunday). |
rtc/config
The Real-Time Clock configuration.
# $HOST e.g. warp3-AbCd
Read
curl http://$HOST/rtc/config
{ "auto_sync": false }
Write
curl http://$HOST/rtc/config -d '{ "auto_sync": false }'
or abbreviated:
curl http://$HOST/rtc/config -d 'false'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp3/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/rtc/config
{ "auto_sync": false }
Write
With MQTT on $PREFIX/rtc/config_update
mosquitto_pub -h $BROKER -t $PREFIX/rtc/config_update -m '{ "auto_sync": false }'
or abbreviated:
mosquitto_pub -h $BROKER -t $PREFIX/rtc/config_update -m 'false'
| Name | Description |
|---|---|
auto_syncbool | Specifies whether the time on the RTC should be automatically set when loading the web interface, if no network time synchronization is available.
|
rtc/time
The current time on the Real-Time Clock.
# $HOST e.g. wem-AbCd
Read
curl http://$HOST/rtc/time
{
"year": 2024,
"month": 5,
"day": 3,
"hour": 12,
"minute": 38,
"second": 43,
"weekday": 5
}
Write
curl http://$HOST/rtc/time -d '{
"year": 2024,
"month": 5,
"day": 3,
"hour": 12,
"minute": 38,
"second": 43,
"weekday": 5
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. wem/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/rtc/time
{
"year": 2024,
"month": 5,
"day": 3,
"hour": 12,
"minute": 38,
"second": 43,
"weekday": 5
}
Write
With MQTT on $PREFIX/rtc/time_update
mosquitto_pub -h $BROKER -t $PREFIX/rtc/time_update -m '{
"year": 2024,
"month": 5,
"day": 3,
"hour": 12,
"minute": 38,
"second": 43,
"weekday": 5
}'
| Name | Description |
|---|---|
yearint | The year. 2000 to 2099 |
monthint | The month. 1 to 12 |
dayint | The day. 1 to 31 |
hourint | The hour. 0 to 23 |
minuteint | The minute. 0 to 59 |
secondint | The second. 0 to 59 |
weekdayint | The weekday. 0 (Monday) to 6 (Sunday). |
rtc/config
The Real-Time Clock configuration.
# $HOST e.g. wem-AbCd
Read
curl http://$HOST/rtc/config
{ "auto_sync": false }
Write
curl http://$HOST/rtc/config -d '{ "auto_sync": false }'
or abbreviated:
curl http://$HOST/rtc/config -d 'false'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. wem/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/rtc/config
{ "auto_sync": false }
Write
With MQTT on $PREFIX/rtc/config_update
mosquitto_pub -h $BROKER -t $PREFIX/rtc/config_update -m '{ "auto_sync": false }'
or abbreviated:
mosquitto_pub -h $BROKER -t $PREFIX/rtc/config_update -m 'false'
| Name | Description |
|---|---|
auto_syncbool | Specifies whether the time on the RTC should be automatically set when loading the web interface, if no network time synchronization is available.
|
rtc/time
The current time on the Real-Time Clock.
# $HOST e.g. wem2-AbCd
Read
curl http://$HOST/rtc/time
{
"year": 2024,
"month": 5,
"day": 3,
"hour": 12,
"minute": 38,
"second": 43,
"weekday": 5
}
Write
curl http://$HOST/rtc/time -d '{
"year": 2024,
"month": 5,
"day": 3,
"hour": 12,
"minute": 38,
"second": 43,
"weekday": 5
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. wem2/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/rtc/time
{
"year": 2024,
"month": 5,
"day": 3,
"hour": 12,
"minute": 38,
"second": 43,
"weekday": 5
}
Write
With MQTT on $PREFIX/rtc/time_update
mosquitto_pub -h $BROKER -t $PREFIX/rtc/time_update -m '{
"year": 2024,
"month": 5,
"day": 3,
"hour": 12,
"minute": 38,
"second": 43,
"weekday": 5
}'
| Name | Description |
|---|---|
yearint | The year. 2000 to 2099 |
monthint | The month. 1 to 12 |
dayint | The day. 1 to 31 |
hourint | The hour. 0 to 23 |
minuteint | The minute. 0 to 59 |
secondint | The second. 0 to 59 |
weekdayint | The weekday. 0 (Monday) to 6 (Sunday). |
rtc/config
The Real-Time Clock configuration.
# $HOST e.g. wem2-AbCd
Read
curl http://$HOST/rtc/config
{ "auto_sync": false }
Write
curl http://$HOST/rtc/config -d '{ "auto_sync": false }'
or abbreviated:
curl http://$HOST/rtc/config -d 'false'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. wem2/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/rtc/config
{ "auto_sync": false }
Write
With MQTT on $PREFIX/rtc/config_update
mosquitto_pub -h $BROKER -t $PREFIX/rtc/config_update -m '{ "auto_sync": false }'
or abbreviated:
mosquitto_pub -h $BROKER -t $PREFIX/rtc/config_update -m 'false'
| Name | Description |
|---|---|
auto_syncbool | Specifies whether the time on the RTC should be automatically set when loading the web interface, if no network time synchronization is available.
|
rtc/time
The current time on the Real-Time Clock.
# $HOST e.g. warp-AbCd
Read
curl http://$HOST/rtc/time
{
"year": 2024,
"month": 5,
"day": 3,
"hour": 12,
"minute": 38,
"second": 43,
"weekday": 5
}
Write
curl http://$HOST/rtc/time -d '{
"year": 2024,
"month": 5,
"day": 3,
"hour": 12,
"minute": 38,
"second": 43,
"weekday": 5
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/rtc/time
{
"year": 2024,
"month": 5,
"day": 3,
"hour": 12,
"minute": 38,
"second": 43,
"weekday": 5
}
Write
With MQTT on $PREFIX/rtc/time_update
mosquitto_pub -h $BROKER -t $PREFIX/rtc/time_update -m '{
"year": 2024,
"month": 5,
"day": 3,
"hour": 12,
"minute": 38,
"second": 43,
"weekday": 5
}'
| Name | Description |
|---|---|
yearint | The year. 2000 to 2099 |
monthint | The month. 1 to 12 |
dayint | The day. 1 to 31 |
hourint | The hour. 0 to 23 |
minuteint | The minute. 0 to 59 |
secondint | The second. 0 to 59 |
weekdayint | The weekday. 0 (Monday) to 6 (Sunday). |
rtc/config
The Real-Time Clock configuration.
# $HOST e.g. warp-AbCd
Read
curl http://$HOST/rtc/config
{ "auto_sync": false }
Write
curl http://$HOST/rtc/config -d '{ "auto_sync": false }'
or abbreviated:
curl http://$HOST/rtc/config -d 'false'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/rtc/config
{ "auto_sync": false }
Write
With MQTT on $PREFIX/rtc/config_update
mosquitto_pub -h $BROKER -t $PREFIX/rtc/config_update -m '{ "auto_sync": false }'
or abbreviated:
mosquitto_pub -h $BROKER -t $PREFIX/rtc/config_update -m 'false'
| Name | Description |
|---|---|
auto_syncbool | Specifies whether the time on the RTC should be automatically set when loading the web interface, if no network time synchronization is available.
|