Temperature email alert

9 years 2 months ago #416 by VasilijHCN
How to create email alert @ send command to relay node ?
(i.e. if temperature hit 31*C then notify by email, and send off command to relay node)

Please Log in or Create an account to join the conversation.

9 years 2 months ago - 9 years 2 months ago #423 by EasyIoT
Replied by EasyIoT on topic Temperature email alert

VasilijHCN wrote: How to create email alert @ send command to relay node ?
(i.e. if temperature hit 31*C then notify by email, and send off command to relay node)


Email alter is supported in beta0_7b1 only. Example (settings for gmail):

-settings - call in Setup, correct email and password-call only once
EmailHelper.SetupSmtp("This email address is being protected from spambots. You need JavaScript enabled to view it.", "password", "smtp.gmail.com", 587, true);

-send email:
EmailHelper.SendEmail("This email address is being protected from spambots. You need JavaScript enabled to view it.", "This email address is being protected from spambots. You need JavaScript enabled to view it.", "subject test", "test message");

Please Log in or Create an account to join the conversation.

9 years 2 months ago #485 by jilldris
Replied by jilldris on topic Temperature email alert
I don't get it to send any email. Have set it up with my gmail account so there should not so many possibilites to do wrong.
Does this work for others?
Is there a way to debug the Emailhelper?

Please Log in or Create an account to join the conversation.

9 years 1 month ago #506 by EasyIoT
Replied by EasyIoT on topic Temperature email alert

jilldris wrote: I don't get it to send any email. Have set it up with my gmail account so there should not so many possibilites to do wrong.
Does this work for others?
Is there a way to debug the Emailhelper?


I've just tested. It works on windows machine, but it doesn't work on RPi. I think, that RPi firewall is blocking 587 port. I see no reason in EasyIoT server, beacuse Win and RPi code for email helper is identical.
The following user(s) said Thank You: jilldris

Please Log in or Create an account to join the conversation.

9 years 1 month ago #623 by tonyn79
Replied by tonyn79 on topic Temperature email alert
I had trouble with gmail. I got an email from google saying that they blocked unauthoized signin. It gave me option to lower security but I choose to set it up with an outlook.com address.

Please Log in or Create an account to join the conversation.

9 years 1 month ago #629 by EasyIoT
Replied by EasyIoT on topic Temperature email alert

tonyn79 wrote: I had trouble with gmail. I got an email from google saying that they blocked unauthoized signin. It gave me option to lower security but I choose to set it up with an outlook.com address.


On which platform? Win or RPi? Google sometimes limits number of send emails per minute. Also be careful to use the same email account in SetupSmtp and sender in SendEmail.

Please Log in or Create an account to join the conversation.

Time to create page: 0.302 seconds

Forum latest

  • No posts to display.