12.10.2024, 05:09
(10.10.2024, 13:04)admin Wrote: 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.I checked, tested everything works perfectly.
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
Thank you very much