10.10.2024, 13:04
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