Page 1 of 1

Where to get ID for SendCamera

Posted: Monday 18 December 2017 22:45
by domopi
Hi,

the wiki page for LUA:
http://www.domoticz.com/wiki/LUA_commands#General

has following info:
commandArray['SendCamera:1'] = 'SubjectOfMessage AFTER 5' -- This is equal to 'Send camera snapshot with subject "Subject of Message" after 5 seconds. The number (1) in this case is the ID of the camera, not the name!

But I can't find any info on how to actually get the ID, or I'm missing it.
The Camera page doesn't show it and the camera's aren't listed in Devices.
This is probably a simple question but one I can't seem to find the answer for.

Thanks for your help.

Re: Where to get ID for SendCamera

Posted: Tuesday 19 December 2017 17:20
by domopi
To debug another issue I'm having I needed to download and open domoticz.db.
There is a table in the database (Cameras) which stores the ID so I managed to get it from there.
Would be handy if someone knows a way through the webinterface though :)

Re: Where to get ID for SendCamera

Posted: Tuesday 19 December 2017 17:36
by emme
the ID is shown in the camera setup table
ciao
M