Forum Home › Forums › Understanding the Software › Automatic Control Module – Send eMail
- This topic has 8 replies, 2 voices, and was last updated 6 years, 1 month ago by Mikhail.
-
AuthorPosts
-
January 29, 2018 at 5:17 pm #3064yotoolParticipant
I tried to search for this information and came up empty.
Is there any further documentation (ideally including some examples) of how to have the (A)utomatic (C)ontrol (M)odules send a email when an input channel goes above (or below) a certain value?
I believe that I have the “Channel Data Trigger” part figured out. It appears that you attach a “Command” to the parent trigger. I am however stuck at how you enter the properties of a “Command” for a simple outgoing email.
In the SCADA Aministrator application/db I have the an “email device”, installed by default, sitting at device #41. I cannot seem to, intuitively at least, figure out how I form the properties of an email “command”.
I know it takes a lot of time, but a detailed description of the module, including a few key examples,would be a huge help. The current documentation of the ACM is extremely high-level.
Here is a screen shot of my ACM coniguration:
January 30, 2018 at 12:03 pm #3067MikhailModeratorFirst off all, make sure that emails are successfully sent by Communicator only.
Go to the Device libraries page of Communicator, find KpEmail.dll and read the format of a command that is needed. This is a binary command with a string value.
When it is done, write in this topic to continue. In case of errors, provide logs or screenshots.January 30, 2018 at 12:05 pm #3068MikhailModeratorSimple example of a command in the module settings:
your_email@gmail.com;subject;textJanuary 30, 2018 at 12:07 pm #3069MikhailModeratorYou should check the logs of:
ACM,
Communication line #41January 30, 2018 at 12:08 pm #3070MikhailModeratorYou definitely right about the documentation ))
January 30, 2018 at 6:10 pm #3072yotoolParticipantThanks Mikhail.
I got her going now… Nice work on this email outgoing communication line.
Two settings I noticed:
1) Needed to use the gmail TLS port as was installed by Rapid SCADA set at port 587 (not SSL 465).
2) Needed to set gmail account settings”
“Allow less secure apps:” ON
Some apps and devices use less secure sign-in technology, which could leave your account vulnerable. You can turn off access for these apps (which we recommend) or choose to use them despite the risks.******************************************
One more question though:
******************************************Is there any way to dynamically access/reference a channel’s value in the email “Subject” or email “message body”, or would one need to have separate “Triggers” for this type of dynamic email content functionality and have the fixed email content associated with each separate trigger?
January 31, 2018 at 10:47 am #3076MikhailModeratorYes, port 587 is entered by default in the configuration, and it works.
Answer:
Definitely. See available variables at http://doc.rapidscada.net/content/en/modules/mod-auto-control.html
Example: your_email@gmail.com;subject;{Now} Name: {CnlName}, value: {CnlVal}January 31, 2018 at 10:49 am #3077MikhailModeratorhave the fixed email content associated with each separate trigger?
You should create commands for each trigger. May be I don’t understand the question.
January 31, 2018 at 10:50 am #3078MikhailModeratorUse address book in Communicator to manage subscribers.
-
AuthorPosts
- You must be logged in to reply to this topic.