Skip to main content

Real-Time Clock Settings

Requires the "rtc" feature.

rtc/time

The current time on the Real-Time Clock.

Example
# $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
}'
NameDescription
year
int

The year. 2000 to 2099

month
int

The month. 1 to 12

day
int

The day. 1 to 31

hour
int

The hour. 0 to 23

minute
int

The minute. 0 to 59

second
int

The second. 0 to 59

weekday
int

The weekday. 0 (Monday) to 6 (Sunday).




rtc/config

The Real-Time Clock configuration.

Example
# $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'
NameDescription
auto_sync
bool

Specifies whether the time on the RTC should be automatically set when loading the web interface, if no network time synchronization is available.

  • true - The RTC time is automatically set to the system time of the device that accessed the web interface.
  • false - The RTC time is only set manually.