Page 1 of 1

Camera IDX

Posted: Wednesday 30 May 2018 18:57
by deennoo
Hello,

I try to use LUA to send a Camera Picture when a door is open more than 10 minutes and this is night time.

Trying to use this command

Code: Select all

commandArray['SendCamera:1'] = 'SubjectOfMessage AFTER 5'
From here : http://www.domoticz.com/wiki/LUA_commands#General

There is information :

Code: Select all

The number (1) in this case is the ID of the camera, not the name!
Where to found this number ? there is no number on camera setting, no idx easy to found except to explore domoticz db with sql browser, any idea is welcome.

I have a camera who is the 4th from high to low, or 2nd from low to high, but have number 6 on database

Re: Camera IDX

Posted: Wednesday 30 May 2018 19:26
by remb0
If you edit the camera, in the bar of your browser you see number.

Re: Camera IDX

Posted: Wednesday 30 May 2018 19:33
by SweetPants
remb0 wrote: Wednesday 30 May 2018 19:26 If you edit the camera, in the bar of your browser you see number.
Yes, but is this the ID of the camera or the row number of the selected camera?

Re: Camera IDX

Posted: Wednesday 30 May 2018 20:05
by remb0
ID. mine is 6 and I don't have 6 rows. you can also use F12 developer mode in the browser.

Re: Camera IDX

Posted: Friday 01 June 2018 14:12
by deennoo
THX,

I could be better if Camera comes on Devices tab (like scenes and group do).