- 31 Jan 2024
- Print
- PDF
Configuration File Settings
- Updated on 31 Jan 2024
- Print
- PDF
Inside the PARCtagEmailer folder, locate the “PARCTagEmailerConfig.xml” file and open it for editing.
Within the .xml configuration file, the there are several parameters that can be changed. Each option is described in a comment above the declaration.
<!-- The SMTP server name -->
<smtpServer>mail.capstonetechnology.com</smtpServer>
<!-- The user if authentication is required. Otherwise, leave blank -->
<smtpUser></smtpUser>
<!-- The password if authentication is required. Otherwise, leave blank -->
<smtpPassword></smtpPassword>
<!-- EmailReport defines a single email with a list of tags. Multiple EmailReport nodes can be defined to send out additional reports -->
<emailReport>
<!-- Subject line for email -->
<subject>test hourly email 1</subject>
<!-- the header will be shown at the top of the email -->
<header>Test Email Header</header>
<!-- The frequency to send out the report. NextSend will determine when the report is sent, and will be updated to nextSend + SendIntervalSeconds to get the next send time -->
<sendIntervalSeconds>3600</sendIntervalSeconds>
<!-- Set to True to only email the report mon-fri -->-->
<onlySendOnWeekdays>True</onlySendOnWeekdays>
<!-- The last send time for this report. This is updated by the PARC Tag Emailer -->
<lastSent>12/30/2015 6:00:00 AM</lastSent>
<!-- The next time the report will be emailed. This timestamp is also used as the endtime for any raw/processed tag reads -->
<nextSend>12/31/2015 6:00:00 AM</nextSend>
<!-- the list of emails to send the report to. Separate emails with a ";" -->
<emailTo>user@capstonetechnology.com</emailTo>
<!-- the email address to show in the From field -->
<emailFrom>parcserv@capstonetechnology.com</emailFrom>
<!-- The list of tags to email. The defined OPC server must be able to access all of the tags in the list -->
<!-- Tags will be outputted in the order defined -->
<tags opcServer="gtcphda://camdev2/ctc.opchda.1">
After defining global parameters, configure the tags that will be emailed.
<tag>
<!-- full PARCView UTag -->
<tagName>CAMAS.PM1MX.MX41.BWT.LAVG-PV</tagName>
<!-- description to show above the tagname -->
<description>PM1 BWT Current Value</description>
<!-- processed/raw/last-->
<readMode>last</readMode>
<formatMask>0.00</formatMask>
</tag>
<tag>
<!-- full PARCView UTag -->
<tagName>CAMAS.PM1MX.MX41.BWT.LAVG-PV</tagName>
<!-- description to show above the tagname -->
<description>PM1 BWT LAST HOURLY AVERAGE</description>
<!-- processed/raw/last-->
<readMode>Processed</readMode>
<!-- only applicable for processed readmode -->
<aggregate>TIMEAVERAGE</aggregate>
<!-- how many seconds to offset the read start time. use -ve number to go into the past. only applicable for processed/raw aggregate readmode -->
<startOffsetSeconds>-3600</startOffsetSeconds>
<!-- how many seconds to offset the read end time (if 0, readEndTime = NextSend). use -ve number to go into the past. only applicable for processed/raw aggregate readmode -->
<endOffsetSeconds>0</endOffsetSeconds>
<!-- step size for processed readMode. Use 0 to return one value for the entire interval -->
<resolutionSeconds>0</resolutionSeconds>
<formatMask>0.00</formatMask>
</tag>
<tag>
<!-- full PARCView UTag -->
<tagName>CAMAS.PM1MX.MX41.BWT.LAVG-PV</tagName>
<!-- description to show above the tagname -->
<description>PM1 BWT LAST HOUR AVERAGE 5 MINUTE AVERAGE</description>
<!-- processed/raw/last-->
<readMode>Processed</readMode>
<!-- only applicable for processed readmode -->
<aggregate>TIMEAVERAGE</aggregate>
<!-- how many seconds to offset the read start time. use -ve number to go into the past. only applicable for processed/raw aggregate readmode -->
<startOffsetSeconds>-3600</startOffsetSeconds>
<!-- how many seconds to offset the read end time (if 0, readEndTime = NextSend). use -ve number to go into the past. only applicable for processed/raw aggregate readmode -->
<endOffsetSeconds>0</endOffsetSeconds>
<!-- step size for processed readMode. Use 0 to return one value for the entire interval -->
<resolutionSeconds>300</resolutionSeconds>\
<formatMask>0.00</formatMask>
</tag>
<tag>
<!-- full PARCView UTag -->
<tagName>CAMAS.PM1MX.MX41.BWT.LAVG-PV</tagName>
<!-- description to show above the tagname -->
<description>PM1 BWT LAST HOUR RAW DATA</description>
<!-- processed/raw/last-->
<readMode>Raw</readMode>
<!-- how many seconds to offset the read start time. use -ve number to go into the past. only applicable for processed/raw aggregate readmode -->
<startOffsetSeconds>-3600</startOffsetSeconds>
<!-- how many seconds to offset the read end time (if 0, readEndTime = NextSend). use -ve number to go into the past. only applicable for processed/raw aggregate readmode -->
<endOffsetSeconds>0</endOffsetSeconds>
<formatMask>0.00</formatMask>
</tag>