|
Last updated: 2026/1/7 17:23:15 |
||
|
Path To |
Name |
Description/Function |
|
/api/time |
/datetime |
Gets the current date and time on the camera as a unix timestamp. |
|
/api/time |
/datetime/{millis} |
Set the current date and time on the camera. |
|
/api/time |
/day |
Gets the current day. |
|
/api/time |
/hour |
Gets the current hour. |
|
/api/time |
/minute |
Gets the current minute. |
|
/api/time |
/month |
Gets the current month. |
|
/api/time |
/now |
Gets the current date and time on the camera as a DateTime. |
|
/api/time |
/ntp/disable |
Enable manual time. |
|
/api/time |
/ntp/drift |
Gets the current NTP drift in ms. |
|
/api/time |
/ntp/driftthreshold |
Gets the NTP drift threshold in ms. |
|
/api/time |
/ntp/driftthreshold/{value} |
Sets the NTP drift threshold in ms. |
|
/api/time |
/ntp/enable |
Enable auto time. |
|
/api/time |
/ntp/isenabled |
Query for clock mode is auto. |
|
/api/time |
/ntp/server |
Gets the current NTP server address. |
|
/api/time |
/ntp/server/{server} |
Set the NTP server address. |
|
/api/time |
/ntp/sync |
Synchronizes the camera with the configured NTP server. |
|
/api/time |
/second |
Gets the current second. |
|
/api/time |
/timezone |
Gets the current time zone on the camera. |
|
/api/time |
/timezone |
Set the current time zone on the camera. |
|
/api/time |
/year |
Gets the current year. |
/datetime
|
Description |
Gets the current date and time on the camera as a unix timestamp. |
|
Method |
Get |
|
Example |
|
|
Response |
The current date and time on the camera in milliseconds (since the UNIX Epoch 1767819081282 = January 1, 1970, at midnight UTC) |
|
Response Type |
Number |
|
Response Example |
(1769802445000 = Friday, January 30, 2026 4:17:25 PM GMT-03:30) |
/datetime/{millis}
|
Description |
Set the current date and time on the camera. |
|
Method |
Get |
|
Example |
|
|
Parameter(s): |
֍ Millis: A datetime to set. |
|
Response |
None |
/day
|
Description |
Gets the current day. |
|
Method |
Get |
|
Example |
|
|
Response |
The current day. |
|
Response Type |
Number |
|
Response Example |
|
/hour
|
Description |
Gets the current hour. |
|
Method |
Get |
|
Example |
|
|
Response |
The current hour. |
|
Response Type |
Number |
|
Response Example |
|
/minute
|
Description |
Gets the current minute. |
|
Method |
Get |
|
Example |
|
|
Response |
The current minute. |
|
Response Type |
Number |
|
Response Example |
|
/month
|
Description |
Gets the current month. |
|
Method |
Get |
|
Example |
|
|
Response |
The current month. |
|
Response Type |
Number |
|
Response Example |
|
/now
|
Description |
Gets the current date and time on the camera as a DateTime. |
|
Method |
Get |
|
Example |
|
|
Response |
The current date and time on the camera. |
|
Response Type |
DateTime |
|
Response Example |
|
/ntp/disable
|
Description |
Disengage from NTP server (enter time manually) |
|
Method |
Get |
|
Example |
|
|
Response |
None |
/ntp/drift
|
Description |
Gets the current NTP drift in ms. |
|
Method |
Get |
|
Example |
|
|
Response |
The ntp drift. |
|
Response Type |
Decimal |
|
Response Example |
|
/ntp/driftthreshold
|
Description |
Gets the NTP drift threshold in ms. |
|
Method |
Get |
|
Example |
|
|
Response |
The ntp drift threshold. |
|
Response Type |
Decimal |
|
Response Example |
|
/ntp/driftthreshold/{value}
|
Description |
Sets the NTP drift threshold in ms. |
|
Method |
Get |
|
Example |
|
|
Parameter(s): |
֍ Value: Values between 0 to 1 |
|
Response |
None |
/ntp/enable
|
Description |
Engage with NTP server (to automatically obtain accurate time) |
|
Method |
Get |
|
Example |
|
|
Response |
None |
/ntp/isenabled
|
Description |
Determine if time is being obtained from NTP server |
|
Method |
Get |
|
Example |
|
|
Response |
True if the camera is getting time from NTP Server |
|
Response Type |
Boolean |
|
Response Example |
|
/ntp/server
|
Description |
Gets the current NTP server address. |
|
Method |
Get |
|
Example |
|
|
Response |
The ntp server address. |
|
Response Type |
Text |
|
Response Example |
|
/ntp/server/{server}
|
Description |
Set the NTP server address. |
|
Method |
Get |
|
Example |
|
|
Parameter(s): |
֍ Server: Server address. |
|
Response |
None |
/ntp/sync
|
Description |
Synchronizes the camera with the configured NTP server. |
|
Method |
Get |
|
Example |
|
|
Response |
None |
/second
|
Description |
Gets the current second. |
|
Method |
Get |
|
Example |
|
|
Response |
The current second. |
|
Response Type |
Number |
|
Response Example |
|
/timezone
|
Description |
Gets the current time zone on the camera. |
|
Method |
Get |
|
Example |
|
|
Response |
The time zone. |
|
Response Type |
Text |
|
Response Example |
|
/timezone
|
Description |
Set the current time zone on the camera. |
|
Method |
Post |
|
Example |
|
|
Body |
https://en.wikipedia.org/wiki/List_of_tz_database_time_zones |
|
Response |
string |
|
Explanation |
See the table below for a list of all possible timezone values. |
/year
|
Description |
Gets the current year. |
|
Method |
Get |
|
Example |
|
|
Response |
The current year. |
|
Response Type |
Number |
|
Response Example |
|