mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-07 06:48:43 +00:00
statistics: docu
git-svn-id: https://svn.fhem.de/fhem/trunk@11125 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
fb36ca8093
commit
b47fb0e930
@ -890,11 +890,11 @@ sub statistics_doStatisticSpecialPeriod2 ($$$$$$)
|
|||||||
$result += $_;
|
$result += $_;
|
||||||
$counterHidden++;
|
$counterHidden++;
|
||||||
if ( $counterHidden == $periods[$counterPeriods] ) {
|
if ( $counterHidden == $periods[$counterPeriods] ) {
|
||||||
$counterPeriods++;
|
my $rName = $statReadingName.$periods[$counterPeriods];
|
||||||
my $rName = $statReadingName.$counterHidden;
|
|
||||||
my $rValue = sprintf "%.".$decPlaces."f", $result;
|
my $rValue = sprintf "%.".$decPlaces."f", $result;
|
||||||
statistics_Log $hash, 4, "Set '$rName = $rValue'";
|
statistics_Log $hash, 4, "Set '$rName = $rValue'";
|
||||||
readingsBulkUpdate($dev, $rName, $rValue, 1);
|
readingsBulkUpdate($dev, $rName, $rValue, 1);
|
||||||
|
$counterPeriods++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1280,17 +1280,17 @@ sub statistics_UpdateDevReading($$$$)
|
|||||||
<br>
|
<br>
|
||||||
Creates for the given delta reading additional singular readings of the given numbers of a period (Hour, Day, Month)
|
Creates for the given delta reading additional singular readings of the given numbers of a period (Hour, Day, Month)
|
||||||
<br>
|
<br>
|
||||||
Regular expressions <u>cannot</u> be used. More readings and/or period can be added but have to be separated by comma (without spaces).
|
Regular expressions <u>cannot</u> be used. Additional readings or additional periods can be defined but have to be separated by a comma (without spaces).
|
||||||
<br>
|
<br>
|
||||||
<dt>Example:</dt>
|
<dt>Example:</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<code>attr Statistik specialDeltaPeriod Wettersensor:rain:Hour:48:72:96</code>
|
<code>attr Statistik specialDeltaPeriod Wettersensor:rain:Hour:06:72:96</code>
|
||||||
<br>
|
<br>
|
||||||
This will add 3 additional readings for the rain of the last 48, 72, 96 hours.
|
This will create 3 additional readings for the rain of the last 6, 72 and 96 hours.
|
||||||
<br>
|
<br>
|
||||||
<code>attr Statistik specialDeltaPeriod Wettersensor:rain:Hour:48,Wettersensor:rain:Day:30,EZaehler:energy:Month:6:12</code>
|
<code>attr Statistik specialDeltaPeriod Wettersensor:rain:Hour:48,Wettersensor:rain:Day:30,EZaehler:energy:Month:6:12</code>
|
||||||
<br>
|
<br>
|
||||||
This will add 4 additional readings for the rain of the last 48 hours and the last 30 Days and the energy consumtion of the last 6 and 12 months.
|
This will create 4 additional readings for the rain of the last 48 hours and the last 30 Days and the energy consumtion of the last 6 and 12 months.
|
||||||
</dd>
|
</dd>
|
||||||
</li><br>
|
</li><br>
|
||||||
<li><code>specialDeltaPeriodHours</code>
|
<li><code>specialDeltaPeriodHours</code>
|
||||||
@ -1452,9 +1452,9 @@ sub statistics_UpdateDevReading($$$$)
|
|||||||
<br>
|
<br>
|
||||||
<dt>Beispiel:</dt>
|
<dt>Beispiel:</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<code>attr Statistik specialDeltaPeriod Wettersensor:rain:Hour:48:72:96</code>
|
<code>attr Statistik specialDeltaPeriod Wettersensor:rain:Hour:06:72:96</code>
|
||||||
<br>
|
<br>
|
||||||
Dies erzeugt 3 zusätzliche Werte für die Regenmenge in den letzten 48, 72, 96 Stunden.
|
Dies erzeugt 3 zusätzliche Werte für die Regenmenge in den letzten 6, 72, 96 Stunden.
|
||||||
<br>
|
<br>
|
||||||
<code>attr Statistik specialDeltaPeriod Wettersensor:rain:Hour:48,Wettersensor:rain:Day:30,EZaehler:energy:Month:6:12</code>
|
<code>attr Statistik specialDeltaPeriod Wettersensor:rain:Hour:48,Wettersensor:rain:Day:30,EZaehler:energy:Month:6:12</code>
|
||||||
<br>
|
<br>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user