Send camera snapshot with LUA

Post Reply
joeygermeraad
Posts: 3
Joined: Monday 07 March 2016 15:03
Target OS: -
Domoticz version:
Contact:

Send camera snapshot with LUA

Post by joeygermeraad » Wednesday 16 March 2016 18:49

Hey guys,

I was looking for a way to gather a snapshot with a lua command.
I see that there is a command within the blockly interface to send a snapshot by email (which works fine btw, but email is a little slow..). So i'm curious if i'm overlooking some possibility withing the commandarray to retreive the snapshot. Because it feels a bit strange that its possible within the blockly but not available within LUA :P.

User avatar
gizmocuz
Posts: 8605
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi
Domoticz version: beta
Location: Top of the world
Contact:

Re: Send camera snapshot with LUA

Post by gizmocuz » Wednesday 16 March 2016 20:28

If things are possible with blockly, go for blockly, it is faster then calling lua scripts
Quality outlives Quantity!

Nautilus
Posts: 753
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi
Domoticz version: beta
Location: Finland
Contact:

Re: Send camera snapshot with LUA

Post by Nautilus » Tuesday 21 June 2016 12:49

gizmocuz wrote:If things are possible with blockly, go for blockly, it is faster then calling lua scripts
Any idea how significant the performance difference is between blocky and lua? Always thought they'd be about as fast and have preferred lua because it's easier to make quick changes etc...

cyclops1982
Posts: 18
Joined: Monday 20 March 2017 14:28
Target OS: -
Domoticz version:
Contact:

Re: Send camera snapshot with LUA

Post by cyclops1982 » Sunday 23 April 2017 22:42

Just wanted to let people know that this /is/ possible:

commandArray['SendCamera:1'] = 'House on FIRE!! AFTER 1'

The nr 1 is actually the 'id' of the camera, so NOT the name. The "House on FIRE!!" is the subject of the notification/email that you get and the 'AFTER 1' is just the time after which the snapshot is taken.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests