Camera API Current time

Hello,

Where can I find the camera current date time on the API?
Thank You

do you need something like https://<cam_ip>/api/json/status/camera/uptime/timestamp ?

@Andrius, do yo know why in some cameras I get this error?
{
“errors” :
[
{
“code” : 2,
“message” : “Error: json_get(): No object or key is not in object.”,
“module” : 3,
“origin” : 1
},
{
“code” : 2,
“message” : “repository.json_get(), request_id=43380: core function returnd error.”,
“module” : 4,
“origin” : 1
},
{
“code” : 1,
“message” : “HTTPFrontend Error: json_get() failed.”,
“module” : 7,
“origin” : 1
}
],
“get” : false,
“status” : 404
}

Thank You!

It probably is related to FW version the camera is runing.

API/JSON does only exist on models x4 and newer.
The more old fashioned but most compatible API would be
http://CamIP/control/rcontrol?action=gettext&message=$(TMS)

$(TMS) is a system wide Variable.
Anything listed in Camera Online help @ http://CamIP/help/help?longvariable
can be read this way.

Help for “rcontrol”
http://CamIP/control/rcontrol?list

1 Like

I tried both ways and it works.
Thank You all for the help

:facepunch:.