Page 1 of 1
Event with Camera Snapshot slow
Posted: Monday 18 December 2017 10:45
by Shyam
Hello,
I've set up an event so that when the door bell is pressed, the chime is sounded, a pushover notification is sent and a snapshot from the camera is emailed. The issue I have is when I added the snapshot send part, it slowed the event right down. It now takes around 20-30seconds, therefore the chime sound is delayed.
Is there a way to make this more efficient? maybe with lua?
Re: Event with Camera Snapshot slow
Posted: Wednesday 20 December 2017 10:17
by Shyam
anyone?
Re: Event with Camera Snapshot slow
Posted: Wednesday 20 December 2017 12:50
by lost
Shyam wrote: ↑Wednesday 20 December 2017 10:17anyone?
Maybe changing your logic to have time consuming stuff (the snapshot) done at the end (after ringing the bell)?
Don't think going with Lua will change anything if snapshot takes time. Or find a way to make snapshot a background operation.
Anyway, with so much delay & only 1 snapshot, you'll most probably miss your ringer.
IMO, you should rely on your camera internal capture (able to trigger on movement & send several photos/ short video) to send captures to a FTP (usually, cams include this feature) on the machine hosting Domoticz. When the ring is activated, retrieve the last files (a few seconds before ring) that have been captured : You have better chance to be able to identify anyone (i.e. at least 1 photo centered/face in frond of cam...) doing this way.
Re: Event with Camera Snapshot slow
Posted: Wednesday 20 December 2017 16:40
by Shyam
lost wrote: ↑Wednesday 20 December 2017 12:50
Shyam wrote: ↑Wednesday 20 December 2017 10:17anyone?
Maybe changing your logic to have time consuming stuff (the snapshot) done at the end (after ringing the bell)?
Don't think going with Lua will change anything if snapshot takes time. Or find a way to make snapshot a background operation.
Anyway, with so much delay & only 1 snapshot, you'll most probably miss your ringer.
IMO, you should rely on your camera internal capture (able to trigger on movement & send several photos/ short video) to send captures to a FTP (usually, cams include this feature) on the machine hosting Domoticz. When the ring is activated, retrieve the last files (a few seconds before ring) that have been captured : You have better chance to be able to identify anyone (i.e. at least 1 photo centered/face in frond of cam...) doing this way.
Thanks for that, Thats a good solution, I'll try it out!