more advanced E-mail notification?

Moderator: leecollings

Post Reply
Evelen
Posts: 234
Joined: Thursday 09 July 2015 12:03
Target OS: Linux
Domoticz version: 2.4538
Location: Norway
Contact:

more advanced E-mail notification?

Post by Evelen »

Hi.
I made this in domoticz to warn me if it's fire:
Image

But I want a more advanced email, and whit other info in it like this:
TO: me
SUBJECT: Fire in the badroom!

Hi.
The fire alarm in the bedroom is triggered
The temperature in the room is currently <insert temp from a sensor>.

have a nice day!
- Domoticz
Is this Posible?
ThinkPad
Posts: 890
Joined: Tuesday 30 September 2014 8:49
Target OS: Linux
Domoticz version: beta
Location: The Netherlands
Contact:

Re: more advanced E-mail notification?

Post by ThinkPad »

Not with a standard Blockly-event i'm afraid.

I think you have to create Bash-script for that. In the Bash-script you can use something like this:

Code: Select all

echo "MAILBODYHERE" | mail -s "SUBJECTHERE" -r "YOUR NAME<[email protected]>" -aFrom:[email protected] [email protected]
I am not active on this forum anymore.
alfred_j_kwak
Posts: 110
Joined: Friday 20 September 2013 18:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.3530
Location: Finland
Contact:

Re: more advanced E-mail notification?

Post by alfred_j_kwak »

Do you need mailserver if you'd like to send mail?
rgroothuis
Posts: 347
Joined: Friday 03 April 2015 17:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: more advanced E-mail notification?

Post by rgroothuis »

Why not switching over to a push notification system? Those messages are being displayed straight on your phone. An email is easy to be missed. And especially emails with "there is a fire" message you don't want to miss :D

I'm using Telegram, I really like this and can recommend it. Works perfectly.
Evelen
Posts: 234
Joined: Thursday 09 July 2015 12:03
Target OS: Linux
Domoticz version: 2.4538
Location: Norway
Contact:

Re: more advanced E-mail notification?

Post by Evelen »

alfred_j_kwak wrote:Do you need mailserver if you'd like to send mail?
Yep, but not necessarily your own.
Your ISP probably has a server, you can use
rgroothuis wrote:Why not switching over to a push notification system? Those messages are being displayed straight on your phone. An email is easy to be missed. And especially emails with "there is a fire" message you don't want to miss :D

I'm using Telegram, I really like this and can recommend it. Works perfectly.
Maybe, but i use push on E-Mail anyway.
alfred_j_kwak
Posts: 110
Joined: Friday 20 September 2013 18:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.3530
Location: Finland
Contact:

Re: more advanced E-mail notification?

Post by alfred_j_kwak »

OK. I do some more reading. Here is some info about command line email in Ubuntu: http://askubuntu.com/questions/522431/h ... mmand-line

Doesn't seem too difficult. I suppose that Domoticz have something already configured for mail sending.
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: more advanced E-mail notification?

Post by Egregius »

I would suggest a Telegram Bot. Quite easy to configure because you only need to call a URL to send a message. Almost every scripting language supports that.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest