Camera IDX

Post Reply
deennoo
Posts: 942
Joined: Wednesday 10 December 2014 14:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Camera IDX

Post by deennoo » Wednesday 30 May 2018 18:57

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
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / ESP8266 / MQTT / BLE
http://domo-attitude.fr

User avatar
remb0
Posts: 1002
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Camera IDX

Post by remb0 » Wednesday 30 May 2018 19:26

If you edit the camera, in the bar of your browser you see number.

SweetPants
Posts: 2409
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V4.10278
Location: The Netherlands
Contact:

Re: Camera IDX

Post by SweetPants » Wednesday 30 May 2018 19:33

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?
Ubuntu 16.04.5 LTS, Intel NUC, MySensors 2.3.0-alpha, Pro Mini 3.3/8M RFM69(HW), ESP8266 (SDK2.2.0), Sonoff, RFLink, RFXcom, MQTT, NodeRed, Domoticz Beta (from source)

User avatar
remb0
Posts: 1002
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Camera IDX

Post by remb0 » Wednesday 30 May 2018 20:05

ID. mine is 6 and I don't have 6 rows. you can also use F12 developer mode in the browser.

deennoo
Posts: 942
Joined: Wednesday 10 December 2014 14:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Re: Camera IDX

Post by deennoo » Friday 01 June 2018 14:12

THX,

I could be better if Camera comes on Devices tab (like scenes and group do).
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / ESP8266 / MQTT / BLE
http://domo-attitude.fr

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests