Email Camera Snapshot  [Solved]

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Email Camera Snapshot  [Solved]

Post by waaren »

elgringo wrote: Saturday 03 October 2020 11:45 Yes this does work
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
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest