L-VIS User Manual
189
LOYTEC
Version 6.2
LOYTEC electronics GmbH
10.3.4 E-mail
The e-mail function can be combined with the other AST features. The format of an e-mail
is defined through
e-mail templates
. An e-mail template defines the recipients, the e-mail
text, value parameters inserted into the text and triggers, which invoke the transmission of
an e-mail. An e-mail template can also specify one or more files to be sent along as an
attachment.
A prerequisite to sending e-mails is the configuration of an e-mail account on the device.
This can be done through the web interface or in the project settings (see section 11.6). It is
recommended to use the e-mail server of your internet service provider or the company
SMTP server on the intranet. For public mailers, enable the required authentication. SMTP
over SSL as well as TLS is supported for using Hotmail, Gmail, or Yahoo.
The amount of generated e-mails can be limited using a token bucket algorithm. The
transmission of e-mails can be disabled altogether by using a special data point. That data
point can be scheduled or modified over the network.
If an e-mail cannot be sent (e.g. the mail server is not reachable), the mail delivery is retried
up to 24 times every 30 minutes.
10.3.5 Historic Filters
For certain applications historic values of a given base data point, both recent and far into
the past, can be of interest. This can be accomplished with
historic filters
. Historic filters
allow processing historic values of the base data point according to a filter function. One or
more such functions can be defined per base data point. The result of the historic filter is
written to
historicFilter
property relations. For each historic filter function a time period
can be defined at which the base value is sampled, e.g., every first of the month at
midnight, and how many samples ago. Historic filters can be created for any analog, binary,
or multi-state data point. It is not necessary to create a trend log.
The following sampling periods can be defined:
Value every
x
minutes aligned to full hour (
x
= 1, 2, 5, 10, 15, 20, 30 min), 0 or 1
samples ago,
Hourly value at full hour, 0..24 samples ago,
Daily value at HH:MM:SS of the day, 0..60 samples ago,
Weekly value at HH:MM:SS on weekday (Mon..Sun), 0..10 samples ago,
Monthly value at HH:MM:SS on day of month (1..31), 0..24 samples ago,
Yearly value at HH:MM:SS on DD/MM of the year, 0..5 samples ago.
By using historic filter data points it is possible to implement numerous calculations on
historic values of the base data point. For example it is possible to create two filter data
points with a daily sampling period recording the energy consumption at midnight, one
holding the most current sample (today at midnight) and the other the previous sample
(previous day at midnight). This is shown in Figure 8. Those historic filter relations can be
processed in a math object to calculate the consumption of the previous day.