This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

API Control camera Vivotek
#8
Replace parse function in the script with the following code. The script will send ON to 1/1/1 each time the camera detects you.
Code:
local function parse(resp)
  resp = json.pdecode(resp)
 
  if resp.type == 'person' then
    if resp.name == 'luan thanh' then
      gpr.write('1/1/1', true)
    end
  end
end
Reply


Messages In This Thread
API Control camera Vivotek - by luanpt - 29.09.2024, 12:06
RE: API Control camera Vivotek - by admin - 30.09.2024, 07:43
RE: API Control camera Vivotek - by luanpt - 01.10.2024, 02:13
RE: API Control camera Vivotek - by admin - 02.10.2024, 11:52
RE: API Control camera Vivotek - by luanpt - 05.10.2024, 05:32
RE: API Control camera Vivotek - by admin - 07.10.2024, 06:33
RE: API Control camera Vivotek - by luanpt - 10.10.2024, 10:01
RE: API Control camera Vivotek - by admin - 10.10.2024, 13:04
RE: API Control camera Vivotek - by luanpt - 12.10.2024, 05:09

Forum Jump: