Implemented as native dzVents function in version 3.0.13 (domoticz 2020.2 build 12394)
snapshot(cameraID(s) or camera Name(s): Function. Sends email with a camera snapshots if email is configured and set for attachments in Domoticz. Send 1 or multiple camerIDs -names in ; separated string or array.
See examples below
Code: Select all
dz.snapshot() -- defaults to id = 1, subject domoticz
dz.snapshot(1,'dz') -- 1 camera, Subject = dz
dz.snapshot('1;2;3') -- ; separated string with 3 cameras. Subject = domoticz
dz.snapshot({1,4,7}) -- table with 3 cameras by ID. Subject = domoticz
dz.snapshot('test;test2') -- ; separated string. Subject = domoticz
dz.snapshot({'test', 'test2'}) -- table with 2 cameras by name. Subject = domoticz
dz.snapshot({'test', 'test2'}, 'Garden') -- table with 2 cameras by name. Subject = Garden