mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
avg min/max added, forgotten </ul> (MSGFile and ECMDDevice) added
git-svn-id: https://svn.fhem.de/fhem/trunk@1733 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0ef56ed23b
commit
ad5811d850
@ -4640,7 +4640,9 @@ To send the data, both send or write could be used.<br>
|
||||
<code>set myMsg send myMail</code><br>
|
||||
<code>set myMail clear</code><br>
|
||||
</ul><br>
|
||||
<a name="MSGMailVattr"></a>
|
||||
</ul>
|
||||
|
||||
<a name="MSGMailattr"></a>
|
||||
<b>Attributes</b>
|
||||
<ul>
|
||||
Almost all of these attributes are not optional, most of them could set at definition.<br>
|
||||
@ -6290,6 +6292,7 @@ Attributes:<br>
|
||||
The <code>perl command</code> acts on <code>$_</code>. The result of the perl command is the
|
||||
final result of the get or set command.
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
<a name="ECMDDevice"></a>
|
||||
<h3>ECMDDevice</h3>
|
||||
@ -9337,7 +9340,9 @@ KlikAanKlikUit, NEXA, CHACON, HomeEasy UK. <br> You need to define an RFXtrx433
|
||||
<h3>average</h3>
|
||||
<ul>
|
||||
|
||||
Compute additional average_day and average_month values.
|
||||
Compute additional average, minimum and maximum values for current day and
|
||||
month.
|
||||
|
||||
<br>
|
||||
|
||||
<a name="averagedefine"></a>
|
||||
@ -9349,29 +9354,43 @@ KlikAanKlikUit, NEXA, CHACON, HomeEasy UK. <br> You need to define an RFXtrx433
|
||||
The syntax for <regexp> is the same as the
|
||||
regexp for <a href="#notify">notify</a>.<br>
|
||||
If it matches, and the event is of the form "eventname number", then this
|
||||
module computes the daily and monthly average, and generates an event of
|
||||
the form
|
||||
module computes the daily and monthly average, maximum and minimum values
|
||||
and generates events of the form
|
||||
<ul>
|
||||
<device> <eventname>_avg_day: <computed_average>
|
||||
</ul>
|
||||
<ul>
|
||||
<device> <eventname>_min_day: <minimum day value>
|
||||
</ul>
|
||||
<ul>
|
||||
<device> <eventname>_max_day: <maximum day value>
|
||||
</ul>
|
||||
and
|
||||
<ul>
|
||||
<device> <eventname>_avg_month: <computed_average>
|
||||
</ul>
|
||||
<ul>
|
||||
<device> <eventname>_min_month: <minimum month value>
|
||||
</ul>
|
||||
<ul>
|
||||
<device> <eventname>_max_month: <maximum month value>
|
||||
</ul>
|
||||
|
||||
at the beginning of the next day or month respectively.<br>
|
||||
The current average and the cumulated values are stored in the device
|
||||
readings.
|
||||
The current average, minimum, maximum and the cumulated values are stored
|
||||
in the device readings.
|
||||
</ul>
|
||||
<br>
|
||||
|
||||
Example:<PRE>
|
||||
# Compute the average for the temperature events of the ws1 device
|
||||
# Compute the average, minimum and maximum for the temperature events of
|
||||
# the ws1 device
|
||||
define avg_temp_ws1 average ws1:temperature.*
|
||||
|
||||
# Compute the average for each temperature event
|
||||
# Compute the average, minimum and maximum for each temperature event
|
||||
define avg_temp_ws1 average .*:temperature.*
|
||||
|
||||
# Compute the average for all temperature and humidity events
|
||||
# Compute the average, minimum and maximum for all temperature and humidity events
|
||||
# Events:
|
||||
# ws1 temperature: 22.3
|
||||
# ws1 humidity: 67.4
|
||||
@ -9396,11 +9415,15 @@ KlikAanKlikUit, NEXA, CHACON, HomeEasy UK. <br> You need to define an RFXtrx433
|
||||
<li><a href="#disable">disable</a></li>
|
||||
</ul>
|
||||
|
||||
<a name="KM271events"></a>
|
||||
<a name="averageevents"></a>
|
||||
<b>Generated events:</b>
|
||||
<ul>
|
||||
<li><eventname>_avg_day: $avg_day
|
||||
<li><eventname>_avg_month: $avg_month
|
||||
<li><eventname>_min_day: $min_day
|
||||
<li><eventname>_min_month: $min_month
|
||||
<li><eventname>_max_day: $max_day
|
||||
<li><eventname>_max_month: $max_month
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user