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 .
Send camera snapshot with LUA
Moderator: leecollings
-
- Posts: 3
- Joined: Monday 07 March 2016 14:03
- Target OS: -
- Domoticz version:
- Contact:
- gizmocuz
- Posts: 2352
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: Send camera snapshot with LUA
If things are possible with blockly, go for blockly, it is faster then calling lua scripts
Quality outlives Quantity!
-
- Posts: 722
- Joined: Friday 02 October 2015 12:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Finland
- Contact:
Re: Send camera snapshot with LUA
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...gizmocuz wrote:If things are possible with blockly, go for blockly, it is faster then calling lua scripts
-
- Posts: 13
- Joined: Monday 20 March 2017 13:28
- Target OS: -
- Domoticz version:
- Contact:
Re: Send camera snapshot with LUA
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.
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.
Who is online
Users browsing this forum: No registered users and 0 guests