Page 1 of 1

Camera surveillance parameters exposed on JSON interface

Posted: Friday 10 April 2020 10:53
by FrancescoS
Hello,

I encountered the need to modify from a script or a plugin surveillance camera settings in domoticz.
It seems to me that parameters are not exposed.

Would it be possible to do it in one of the next release?

The scenario i am using it , is where the camera after reboot changes its listening port, so having this updatable would be great.

Thank you

Re: Camera surveillance parameters exposed on JSON interface

Posted: Friday 10 April 2020 11:20
by waaren
FrancescoS wrote: Friday 10 April 2020 10:53 I encountered the need to modify from a script or a plugin surveillance camera settings in domoticz.
Is this what you are looking for ? (image url is base64 encoded)

Code: Select all


http://<domoticzIP:domoticzPort>/json.htm?type=cameras

http://<domoticzIP:domoticzPort>/json.htm?type=command&param=addcamera&address=192.168.192.111&port=19765&name=test&enabled=true&imageurl=aW1hZ2UuanBn&protocol=0

http://<domoticzIP:domoticzPort>/json.htm?type=command&param=updatecamera&address=192.168.192.111&port=19767&name=test&enabled=true&idx=1&imageurl=aW1hZ2UuanBn&protocol=0

Re: Camera surveillance parameters exposed on JSON interface

Posted: Friday 10 April 2020 11:34
by FrancescoS
yes!

thank you!