Page 1 of 1

Send camera snapshot by email when frontdoor is opened

Posted: Monday 22 February 2016 22:49
by Awst6000
Hi,

First let me explain the current situation:
- I have 2 Elro C903IP cams beside the frontdoor.
- I have a Kaku AMST-606 magnet contact connected to the frontdoor.
- I already added the Elro cams to Domoticz and I can see the camerapictures (With a timed refresh) in Dashticz.

What I want:
- Send an email with a snapshot of the cams attached when the frontdoor is opened. (Seperate mails are okay)

Where I'm stuck:
- Within Domoticz the camera's don't seem to be present at all. In the Camera-menu I can add the Kaku AMST-606 magnet contact. In the notications tab of the AMST-606 I can let send an email notification. But where can I set the camera snapshots to be an email attachment?

Txs.
Tom

Re: Send camera snapshot by email when frontdoor is opened

Posted: Tuesday 23 February 2016 20:35
by Moppersmurf
Hi Tom,

I have the following settings. I have made a smart mailbox with a doorsensor.
I've the sensor is triggered Domoticz sends an e-mail with a screenshot. My doorbell works the same way but still have to install it.

In settings tab e-mail you have to add your settings tick both boxes at the bottom
camera Domoticz1.png
camera Domoticz1.png (135.27 KiB) Viewed 5549 times


Since I have my camera above the door i've put a delay on the screenshot. It sends a screenshot 2 seconds later. I usually see the peron who dropped the mail in the screenshot. You can do this here (add the settings to the camera you want to use):
camera Domoticz.png
camera Domoticz.png (139.56 KiB) Viewed 5549 times
Lastly I also made a blockly which sends me a e-mail. Like:
camera Domoticz2.png
camera Domoticz2.png (13.65 KiB) Viewed 5549 times
But the blockly isn't really necessary. Because you now get 2 mails. One that says mailbox on and the screenshot. I wish I could change the name of this e-mail but have not had time to check this out.

Re: Send camera snapshot by email when frontdoor is opened

Posted: Wednesday 24 February 2016 1:55
by HoLeeShiet
Wouln't it be faster if you receive a screenshot via Telegram then e-mail?

Re: Send camera snapshot by email when frontdoor is opened

Posted: Wednesday 24 February 2016 21:56
by Moppersmurf
I have Domoticz running on my Synology. I don't have Telegram. I do have a clone Webogram but can't get ik working.

Re: Send camera snapshot by email when frontdoor is opened

Posted: Thursday 25 February 2016 15:55
by Awst6000
Hi Moppersmurf,

Thanks for the explanation. I'll try this coming weekend.

In the meantime I noticed that Dashticz is responding slow when I added the 2 camera's to Domoticz.
Unfortunately Rob (Dashticz) is very busy with other things, so I don't dare asking him for advice.

Tom

Re: Send camera snapshot by email when frontdoor is opened

Posted: Thursday 25 February 2016 21:47
by Awst6000
Hi Moppersmurf,

I\m following your screenshots to get it working.

1)
I re-added both Elro camera's again.
(I deleted them because Domoticz and Dashticz respond both a lot slower with the camera's activated, although Domoticz runs on a HP i5 quad core machine)

2) I added the Kaku magnetic to both camera's in the camera menu.

3)
I configured email: Stuur camerabeelden als bijlage (Gmail)
Oops: I mostly use Hotmail. It looks like this is a showstopper :-)

But still nothing happens.
- Do I have to configure 'notification' to the Kaku magnetic contact?
- I'm using Hotmail.

Tom

Edit: I have to be a little more patient.
I checked my special mailbox again and I saw that I had lots of mails with camera images as attachment. So it works :-)
But still I'm a bit worried about the decreased performance of Domoticz and Dashticz.

Re: Send camera snapshot by email when frontdoor is opened

Posted: Friday 26 February 2016 9:50
by Awst6000
A question that doesn't really belong here:
Is it possible to disable the camera's show up in Dashticz? They appear as a switch.
Maybe this helps to get the performance of Domoticz/Dashticz back again.

As I mentioned earlier in this thread: Rob is very busy with other things, so I don't want to disturb him with this.

Tom

Re: Send camera snapshot by email when frontdoor is opened

Posted: Tuesday 08 March 2016 13:14
by Awst6000
Hi,
To prevent performance-issues with 2 cams added to Domoticz/Dashticz, I took a dedicated Raspberry B for this purpose.
This Raspberry toggles a virtual switch on my main Domoticz throught Json.

Problem is that this Raspberry is way too slow. (On the photo I'm already far away when the snapshot is taken when I close the frontdoor) :-)
What kind of hardware do I need?
Txs.

Re: Send camera snapshot by email when frontdoor is opened

Posted: Wednesday 16 March 2016 10:29
by Awst6000
Hi,
I tested 'Send camera snapshot by email when frontdoor is opened' on a Windows i5 quadcore machine, but still the response of Domoticz decreases a lot.
When I click on some Tabs of Domoticz I get the message that there is a long-running script.

What went wrong?
Txs

Re: Send camera snapshot by email when frontdoor is opened

Posted: Friday 18 March 2016 20:05
by gerritv
I have long delays all the time when switching tabs. Windows 10, Edge browser, i7 HP Laptop.
I will do some profiling in VS2015 to see where the time is being spent. CPU % doesn't register above 0 on Domoticz process so it must be pure 'waiting for something'.
I have 1 camera configured with a dummy switch to trigger (learning Domoticz while waiting for my hardware to arrive)

Gerrit

Re: Send camera snapshot by email when frontdoor is opened

Posted: Friday 18 March 2016 22:44
by gerritv
Awst6000 wrote:Hi,
I tested 'Send camera snapshot by email when frontdoor is opened' on a Windows i5 quadcore machine, but still the response of Domoticz decreases a lot.
When I click on some Tabs of Domoticz I get the message that there is a long-running script.

What went wrong?
Txs
Is the longest delay when you click on Switches tab? in 150 seconds of running and clicking on Switch tab a few times I see WaitForMultipleObjects as the most called function (with 74% of the execution time). There is a lot of time spent in the boost library. Not sure I can unravel it though :-(

Re: Send camera snapshot by email when frontdoor is opened

Posted: Monday 21 March 2016 15:57
by Awst6000
Hi,
Yes, clicking on the Switches-tab takes the most waiting time.