avg min/max added, forgotten </ul> (MSGFile and ECMDDevice) added
git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@1733 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -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 myMsg send myMail</code><br>
|
||||||
<code>set myMail clear</code><br>
|
<code>set myMail clear</code><br>
|
||||||
</ul><br>
|
</ul><br>
|
||||||
<a name="MSGMailVattr"></a>
|
</ul>
|
||||||
|
|
||||||
|
<a name="MSGMailattr"></a>
|
||||||
<b>Attributes</b>
|
<b>Attributes</b>
|
||||||
<ul>
|
<ul>
|
||||||
Almost all of these attributes are not optional, most of them could set at definition.<br>
|
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
|
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.
|
final result of the get or set command.
|
||||||
</ul>
|
</ul>
|
||||||
|
</ul>
|
||||||
|
|
||||||
<a name="ECMDDevice"></a>
|
<a name="ECMDDevice"></a>
|
||||||
<h3>ECMDDevice</h3>
|
<h3>ECMDDevice</h3>
|
||||||
@@ -9337,7 +9340,9 @@ KlikAanKlikUit, NEXA, CHACON, HomeEasy UK. <br> You need to define an RFXtrx433
|
|||||||
<h3>average</h3>
|
<h3>average</h3>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
Compute additional average_day and average_month values.
|
Compute additional average, minimum and maximum values for current day and
|
||||||
|
month.
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<a name="averagedefine"></a>
|
<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
|
The syntax for <regexp> is the same as the
|
||||||
regexp for <a href="#notify">notify</a>.<br>
|
regexp for <a href="#notify">notify</a>.<br>
|
||||||
If it matches, and the event is of the form "eventname number", then this
|
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
|
module computes the daily and monthly average, maximum and minimum values
|
||||||
the form
|
and generates events of the form
|
||||||
<ul>
|
<ul>
|
||||||
<device> <eventname>_avg_day: <computed_average>
|
<device> <eventname>_avg_day: <computed_average>
|
||||||
</ul>
|
</ul>
|
||||||
|
<ul>
|
||||||
|
<device> <eventname>_min_day: <minimum day value>
|
||||||
|
</ul>
|
||||||
|
<ul>
|
||||||
|
<device> <eventname>_max_day: <maximum day value>
|
||||||
|
</ul>
|
||||||
and
|
and
|
||||||
<ul>
|
<ul>
|
||||||
<device> <eventname>_avg_month: <computed_average>
|
<device> <eventname>_avg_month: <computed_average>
|
||||||
</ul>
|
</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>
|
at the beginning of the next day or month respectively.<br>
|
||||||
The current average and the cumulated values are stored in the device
|
The current average, minimum, maximum and the cumulated values are stored
|
||||||
readings.
|
in the device readings.
|
||||||
</ul>
|
</ul>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
Example:<PRE>
|
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.*
|
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.*
|
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:
|
# Events:
|
||||||
# ws1 temperature: 22.3
|
# ws1 temperature: 22.3
|
||||||
# ws1 humidity: 67.4
|
# 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>
|
<li><a href="#disable">disable</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<a name="KM271events"></a>
|
<a name="averageevents"></a>
|
||||||
<b>Generated events:</b>
|
<b>Generated events:</b>
|
||||||
<ul>
|
<ul>
|
||||||
<li><eventname>_avg_day: $avg_day
|
<li><eventname>_avg_day: $avg_day
|
||||||
<li><eventname>_avg_month: $avg_month
|
<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>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user